| File: | root/firefox-clang/dom/indexedDB/ActorsParent.cpp |
| Warning: | line 20817, 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/ArtificialFailure.h" | ||||
| 121 | #include "mozilla/dom/quota/Assertions.h" | ||||
| 122 | #include "mozilla/dom/quota/CachingDatabaseConnection.h" | ||||
| 123 | #include "mozilla/dom/quota/Client.h" | ||||
| 124 | #include "mozilla/dom/quota/ClientDirectoryLock.h" | ||||
| 125 | #include "mozilla/dom/quota/ClientDirectoryLockHandle.h" | ||||
| 126 | #include "mozilla/dom/quota/ClientImpl.h" | ||||
| 127 | #include "mozilla/dom/quota/ConditionalCompilation.h" | ||||
| 128 | #include "mozilla/dom/quota/Date.h" | ||||
| 129 | #include "mozilla/dom/quota/DecryptingInputStream_impl.h" | ||||
| 130 | #include "mozilla/dom/quota/DirectoryLock.h" | ||||
| 131 | #include "mozilla/dom/quota/DirectoryLockInlines.h" | ||||
| 132 | #include "mozilla/dom/quota/EncryptingOutputStream_impl.h" | ||||
| 133 | #include "mozilla/dom/quota/ErrorHandling.h" | ||||
| 134 | #include "mozilla/dom/quota/FileStreams.h" | ||||
| 135 | #include "mozilla/dom/quota/OriginScope.h" | ||||
| 136 | #include "mozilla/dom/quota/PersistenceScope.h" | ||||
| 137 | #include "mozilla/dom/quota/PersistenceType.h" | ||||
| 138 | #include "mozilla/dom/quota/PrincipalUtils.h" | ||||
| 139 | #include "mozilla/dom/quota/QuotaCommon.h" | ||||
| 140 | #include "mozilla/dom/quota/QuotaManager.h" | ||||
| 141 | #include "mozilla/dom/quota/QuotaObject.h" | ||||
| 142 | #include "mozilla/dom/quota/ResultExtensions.h" | ||||
| 143 | #include "mozilla/dom/quota/ThreadUtils.h" | ||||
| 144 | #include "mozilla/dom/quota/UniversalDirectoryLock.h" | ||||
| 145 | #include "mozilla/dom/quota/UsageInfo.h" | ||||
| 146 | #include "mozilla/fallible.h" | ||||
| 147 | #include "mozilla/glean/DomIndexedDBMetrics.h" | ||||
| 148 | #include "mozilla/ipc/BackgroundParent.h" | ||||
| 149 | #include "mozilla/ipc/BackgroundUtils.h" | ||||
| 150 | #include "mozilla/ipc/InputStreamParams.h" | ||||
| 151 | #include "mozilla/ipc/PBackgroundParent.h" | ||||
| 152 | #include "mozilla/ipc/PBackgroundSharedTypes.h" | ||||
| 153 | #include "mozilla/ipc/ProtocolUtils.h" | ||||
| 154 | #include "mozilla/mozalloc.h" | ||||
| 155 | #include "mozilla/storage/Variant.h" | ||||
| 156 | #include "nsBaseHashtable.h" | ||||
| 157 | #include "nsCOMPtr.h" | ||||
| 158 | #include "nsClassHashtable.h" | ||||
| 159 | #include "nsContentUtils.h" | ||||
| 160 | #include "nsDebug.h" | ||||
| 161 | #include "nsError.h" | ||||
| 162 | #include "nsEscape.h" | ||||
| 163 | #include "nsHashKeys.h" | ||||
| 164 | #include "nsIAsyncInputStream.h" | ||||
| 165 | #include "nsID.h" | ||||
| 166 | #include "nsIDUtils.h" | ||||
| 167 | #include "nsIDirectoryEnumerator.h" | ||||
| 168 | #include "nsIEventTarget.h" | ||||
| 169 | #include "nsIFile.h" | ||||
| 170 | #include "nsIFileProtocolHandler.h" | ||||
| 171 | #include "nsIFileStreams.h" | ||||
| 172 | #include "nsIFileURL.h" | ||||
| 173 | #include "nsIInputStream.h" | ||||
| 174 | #include "nsIOutputStream.h" | ||||
| 175 | #include "nsIProtocolHandler.h" | ||||
| 176 | #include "nsIRunnable.h" | ||||
| 177 | #include "nsISupports.h" | ||||
| 178 | #include "nsISupportsPriority.h" | ||||
| 179 | #include "nsISupportsUtils.h" | ||||
| 180 | #include "nsIThread.h" | ||||
| 181 | #include "nsIThreadInternal.h" | ||||
| 182 | #include "nsITimer.h" | ||||
| 183 | #include "nsIURIMutator.h" | ||||
| 184 | #include "nsIVariant.h" | ||||
| 185 | #include "nsLiteralString.h" | ||||
| 186 | #include "nsNetCID.h" | ||||
| 187 | #include "nsPrintfCString.h" | ||||
| 188 | #include "nsProxyRelease.h" | ||||
| 189 | #include "nsServiceManagerUtils.h" | ||||
| 190 | #include "nsStreamUtils.h" | ||||
| 191 | #include "nsString.h" | ||||
| 192 | #include "nsStringFlags.h" | ||||
| 193 | #include "nsStringFwd.h" | ||||
| 194 | #include "nsTArray.h" | ||||
| 195 | #include "nsTHashMap.h" | ||||
| 196 | #include "nsTHashSet.h" | ||||
| 197 | #include "nsTHashtable.h" | ||||
| 198 | #include "nsTLiteralString.h" | ||||
| 199 | #include "nsTStringRepr.h" | ||||
| 200 | #include "nsThreadPool.h" | ||||
| 201 | #include "nsThreadUtils.h" | ||||
| 202 | #include "nscore.h" | ||||
| 203 | #include "prinrval.h" | ||||
| 204 | #include "prio.h" | ||||
| 205 | #include "prsystem.h" | ||||
| 206 | #include "prthread.h" | ||||
| 207 | #include "prtime.h" | ||||
| 208 | #include "prtypes.h" | ||||
| 209 | #include "snappy/snappy.h" | ||||
| 210 | |||||
| 211 | struct JSContext; | ||||
| 212 | class JSObject; | ||||
| 213 | template <class T> | ||||
| 214 | class nsPtrHashKey; | ||||
| 215 | |||||
| 216 | #define IDB_DEBUG_LOG(_args) \ | ||||
| 217 | MOZ_LOG(IndexedDatabaseManager::GetLoggingModule(), LogLevel::Debug, _args)do { const ::mozilla::LogModule* moz_real_module = IndexedDatabaseManager ::GetLoggingModule(); if ((__builtin_expect(!!(mozilla::detail ::log_test(moz_real_module, LogLevel::Debug)), 0))) { mozilla ::detail::log_print(moz_real_module, LogLevel::Debug, MOZ_LOG_EXPAND_ARGS _args); } } while (0) | ||||
| 218 | |||||
| 219 | #if defined(MOZ_WIDGET_ANDROID) | ||||
| 220 | # define IDB_MOBILE | ||||
| 221 | #endif | ||||
| 222 | |||||
| 223 | // Helper macros to reduce assertion verbosity | ||||
| 224 | // AUUF == ASSERT_UNREACHABLE_UNLESS_FUZZING | ||||
| 225 | #ifdef DEBUG1 | ||||
| 226 | # ifdef FUZZING | ||||
| 227 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { MOZ_CrashSequence(__null, 227); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) NS_WARNING(__VA_ARGS__)NS_DebugBreak(NS_DEBUG_WARNING, __VA_ARGS__, nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 227) | ||||
| 228 | # else | ||||
| 229 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { MOZ_CrashSequence(__null, 229); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) MOZ_ASSERT(false, __VA_ARGS__)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" __VA_ARGS__ ")" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" __VA_ARGS__ ")"); do { MOZ_CrashSequence(__null, 229); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 230 | # endif | ||||
| 231 | # define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cond" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 231); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cond" ")"); do { MOZ_CrashSequence(__null, 231); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cond)) \ | ||||
| 232 | [](bool aCond) { \ | ||||
| 233 | if (MOZ_UNLIKELY(aCond)(__builtin_expect(!!(aCond), 0))) { \ | ||||
| 234 | NS_AUUF_OR_WARN(#cond)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" #cond ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 234); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" #cond ")"); do { MOZ_CrashSequence(__null, 234); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); \ | ||||
| 235 | } \ | ||||
| 236 | return aCond; \ | ||||
| 237 | }((cond)) | ||||
| 238 | #else | ||||
| 239 | # define NS_AUUF_OR_WARN(...)do { static_assert( mozilla::detail::AssertionConditionType< decltype(false)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(false))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("false" " (" ... ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 239); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" ... ")"); do { MOZ_CrashSequence(__null, 239); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) \ | ||||
| 240 | do { \ | ||||
| 241 | } while (false) | ||||
| 242 | # define NS_AUUF_OR_WARN_IF(cond)[](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "cond" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 242); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cond" ")"); do { MOZ_CrashSequence(__null, 242); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cond)) static_cast<bool>(cond) | ||||
| 243 | #endif | ||||
| 244 | |||||
| 245 | namespace mozilla { | ||||
| 246 | |||||
| 247 | namespace dom::indexedDB { | ||||
| 248 | |||||
| 249 | using namespace mozilla::dom::quota; | ||||
| 250 | using namespace mozilla::ipc; | ||||
| 251 | using mozilla::dom::quota::Client; | ||||
| 252 | |||||
| 253 | namespace { | ||||
| 254 | |||||
| 255 | class ConnectionPool; | ||||
| 256 | class Database; | ||||
| 257 | struct DatabaseActorInfo; | ||||
| 258 | class DatabaseFile; | ||||
| 259 | class DatabaseLoggingInfo; | ||||
| 260 | class DatabaseMaintenance; | ||||
| 261 | class Factory; | ||||
| 262 | class Maintenance; | ||||
| 263 | class OpenDatabaseOp; | ||||
| 264 | class TransactionBase; | ||||
| 265 | class TransactionDatabaseOperationBase; | ||||
| 266 | class VersionChangeTransaction; | ||||
| 267 | template <bool StatementHasIndexKeyBindings> | ||||
| 268 | struct ValuePopulateResponseHelper; | ||||
| 269 | |||||
| 270 | /******************************************************************************* | ||||
| 271 | * Constants | ||||
| 272 | ******************************************************************************/ | ||||
| 273 | |||||
| 274 | const int32_t kStorageProgressGranularity = 1000; | ||||
| 275 | |||||
| 276 | // Changing the value here will override the page size of new databases only. | ||||
| 277 | // A journal mode change and VACUUM are needed to change existing databases, so | ||||
| 278 | // the best way to do that is to use the schema version upgrade mechanism. | ||||
| 279 | const uint32_t kSQLitePageSizeOverride = | ||||
| 280 | #ifdef IDB_MOBILE | ||||
| 281 | 2048; | ||||
| 282 | #else | ||||
| 283 | 4096; | ||||
| 284 | #endif | ||||
| 285 | |||||
| 286 | static_assert(kSQLitePageSizeOverride == /* mozStorage default */ 0 || | ||||
| 287 | (kSQLitePageSizeOverride % 2 == 0 && | ||||
| 288 | kSQLitePageSizeOverride >= 512 && | ||||
| 289 | kSQLitePageSizeOverride <= 65536), | ||||
| 290 | "Must be 0 (disabled) or a power of 2 between 512 and 65536!"); | ||||
| 291 | |||||
| 292 | // Set to -1 to use SQLite's default, 0 to disable, or some positive number to | ||||
| 293 | // enforce a custom limit. | ||||
| 294 | const int32_t kMaxWALPages = 5000; // 20MB on desktop, 10MB on mobile. | ||||
| 295 | |||||
| 296 | // Set to some multiple of the page size to grow the database in larger chunks. | ||||
| 297 | const uint32_t kSQLiteGrowthIncrement = kSQLitePageSizeOverride * 2; | ||||
| 298 | |||||
| 299 | static_assert(kSQLiteGrowthIncrement >= 0 && | ||||
| 300 | kSQLiteGrowthIncrement % kSQLitePageSizeOverride == 0 && | ||||
| 301 | kSQLiteGrowthIncrement < uint32_t(INT32_MAX(2147483647)), | ||||
| 302 | "Must be 0 (disabled) or a positive multiple of the page size!"); | ||||
| 303 | |||||
| 304 | // The maximum number of threads that can be used for database activity at a | ||||
| 305 | // single time. Please keep in sync with the constants in | ||||
| 306 | // test_connection_idle_maintenance*.js tests | ||||
| 307 | const uint32_t kMaxConnectionThreadCount = 20; | ||||
| 308 | |||||
| 309 | static_assert(kMaxConnectionThreadCount, "Must have at least one thread!"); | ||||
| 310 | |||||
| 311 | // The maximum number of threads to keep when idle. Until we switch to the STS | ||||
| 312 | // pool, we can reduce the number of idle threads kept around thanks to the | ||||
| 313 | // grace timeout. | ||||
| 314 | const uint32_t kMaxIdleConnectionThreadCount = 1; | ||||
| 315 | |||||
| 316 | static_assert(kMaxConnectionThreadCount >= kMaxIdleConnectionThreadCount, | ||||
| 317 | "Idle thread limit must be less than total thread limit!"); | ||||
| 318 | |||||
| 319 | // The length of time that wanted idle threads will stay alive before being shut | ||||
| 320 | // down. | ||||
| 321 | const uint32_t kConnectionThreadMaxIdleMS = 30 * 1000; // 30 seconds | ||||
| 322 | |||||
| 323 | // The length of time that excess idle threads will stay alive before being shut | ||||
| 324 | // down. | ||||
| 325 | const uint32_t kConnectionThreadGraceIdleMS = 500; // 0.5 seconds | ||||
| 326 | |||||
| 327 | // The length of time that database connections will be held open after all | ||||
| 328 | // transactions have completed before doing idle maintenance. Please keep in | ||||
| 329 | // sync with the timeouts in test_connection_idle_maintenance*.js tests | ||||
| 330 | const uint32_t kConnectionIdleMaintenanceMS = 2 * 1000; // 2 seconds | ||||
| 331 | |||||
| 332 | // The length of time that database connections will be held open after all | ||||
| 333 | // transactions and maintenance have completed. | ||||
| 334 | const uint32_t kConnectionIdleCloseMS = 10 * 1000; // 10 seconds | ||||
| 335 | |||||
| 336 | #define SAVEPOINT_CLAUSE"SAVEPOINT sp;"_ns "SAVEPOINT sp;"_ns | ||||
| 337 | |||||
| 338 | // For efficiency reasons, kEncryptedStreamBlockSize must be a multiple of large | ||||
| 339 | // 4k disk sectors. | ||||
| 340 | static_assert(kEncryptedStreamBlockSize % 4096 == 0); | ||||
| 341 | // Similarly, the file copy buffer size must be a multiple of the encrypted | ||||
| 342 | // block size. | ||||
| 343 | static_assert(kFileCopyBufferSize % kEncryptedStreamBlockSize == 0); | ||||
| 344 | |||||
| 345 | constexpr auto kFileManagerDirectoryNameSuffix = u".files"_ns; | ||||
| 346 | constexpr auto kSQLiteSuffix = u".sqlite"_ns; | ||||
| 347 | constexpr auto kSQLiteJournalSuffix = u".sqlite-journal"_ns; | ||||
| 348 | constexpr auto kSQLiteSHMSuffix = u".sqlite-shm"_ns; | ||||
| 349 | constexpr auto kSQLiteWALSuffix = u".sqlite-wal"_ns; | ||||
| 350 | |||||
| 351 | // The following constants define all names of binding parameters in statements, | ||||
| 352 | // where they are bound by name. This should include all parameter names which | ||||
| 353 | // are bound by name. Binding may be done by index when the statement definition | ||||
| 354 | // and binding are done in the same local scope, and no other reasons prevent | ||||
| 355 | // using the indexes (e.g. multiple statement variants with differing number or | ||||
| 356 | // order of parameters). Neither the styles of specifying parameter names | ||||
| 357 | // (literally vs. via these constants) nor the binding styles (by index vs. by | ||||
| 358 | // name) should not be mixed for the same statement. The decision must be made | ||||
| 359 | // for each statement based on the proximity of statement and binding calls. | ||||
| 360 | constexpr auto kStmtParamNameCurrentKey = "current_key"_ns; | ||||
| 361 | constexpr auto kStmtParamNameRangeBound = "range_bound"_ns; | ||||
| 362 | constexpr auto kStmtParamNameObjectStorePosition = "object_store_position"_ns; | ||||
| 363 | constexpr auto kStmtParamNameLowerKey = "lower_key"_ns; | ||||
| 364 | constexpr auto kStmtParamNameUpperKey = "upper_key"_ns; | ||||
| 365 | constexpr auto kStmtParamNameKey = "key"_ns; | ||||
| 366 | constexpr auto kStmtParamNameObjectStoreId = "object_store_id"_ns; | ||||
| 367 | constexpr auto kStmtParamNameIndexId = "index_id"_ns; | ||||
| 368 | // TODO: Maybe the uses of kStmtParamNameId should be replaced by more | ||||
| 369 | // specific constants such as kStmtParamNameObjectStoreId. | ||||
| 370 | constexpr auto kStmtParamNameId = "id"_ns; | ||||
| 371 | constexpr auto kStmtParamNameValue = "value"_ns; | ||||
| 372 | constexpr auto kStmtParamNameObjectDataKey = "object_data_key"_ns; | ||||
| 373 | constexpr auto kStmtParamNameIndexDataValues = "index_data_values"_ns; | ||||
| 374 | constexpr auto kStmtParamNameData = "data"_ns; | ||||
| 375 | constexpr auto kStmtParamNameFileIds = "file_ids"_ns; | ||||
| 376 | constexpr auto kStmtParamNameValueLocale = "value_locale"_ns; | ||||
| 377 | constexpr auto kStmtParamNameLimit = "limit"_ns; | ||||
| 378 | |||||
| 379 | // The following constants define some names of columns in tables, which are | ||||
| 380 | // referred to in remote locations, e.g. in calls to | ||||
| 381 | // GetBindingClauseForKeyRange. | ||||
| 382 | constexpr auto kColumnNameKey = "key"_ns; | ||||
| 383 | constexpr auto kColumnNameValue = "value"_ns; | ||||
| 384 | constexpr auto kColumnNameAliasSortKey = "sort_column"_ns; | ||||
| 385 | |||||
| 386 | // The deletion marker file is created before RemoveDatabaseFilesAndDirectory | ||||
| 387 | // begins deleting a database. It is removed as the last step of deletion. If a | ||||
| 388 | // deletion marker file is found when initializing the origin, the deletion | ||||
| 389 | // routine is run again to ensure that the database and all of its related files | ||||
| 390 | // are removed. The primary goal of this mechanism is to avoid situations where | ||||
| 391 | // a database has been partially deleted, leading to inconsistent state for the | ||||
| 392 | // origin. | ||||
| 393 | constexpr auto kIdbDeletionMarkerFilePrefix = u"idb-deleting-"_ns; | ||||
| 394 | |||||
| 395 | const uint32_t kDeleteTimeoutMs = 1000; | ||||
| 396 | |||||
| 397 | #ifdef DEBUG1 | ||||
| 398 | |||||
| 399 | const int32_t kDEBUGThreadPriority = nsISupportsPriority::PRIORITY_NORMAL; | ||||
| 400 | const uint32_t kDEBUGThreadSleepMS = 0; | ||||
| 401 | |||||
| 402 | // Set to a non-zero number to enable debugging of transaction event targets. | ||||
| 403 | // It will cause sleeping after every transaction runnable! | ||||
| 404 | // | ||||
| 405 | // This can be useful for discovering race conditions related to switching to | ||||
| 406 | // another thread. Such races are usually avoided by using MozPromise or | ||||
| 407 | // RunAfterProcessingCurrentEvent. Chaos mode doesn't always help with | ||||
| 408 | // uncovering these issues, and only a precisely targeted sleep call can | ||||
| 409 | // simulate the problem. | ||||
| 410 | const uint32_t kDEBUGTransactionThreadSleepMS = 0; | ||||
| 411 | |||||
| 412 | // Make sure that we notice if we ever accidentally check in a non-zero value. | ||||
| 413 | # ifdef MOZILLA_OFFICIAL | ||||
| 414 | static_assert(kDEBUGTransactionThreadSleepMS == 0); | ||||
| 415 | # endif | ||||
| 416 | |||||
| 417 | #endif | ||||
| 418 | |||||
| 419 | /******************************************************************************* | ||||
| 420 | * Metadata classes | ||||
| 421 | ******************************************************************************/ | ||||
| 422 | |||||
| 423 | // Can be instantiated either on the QuotaManager IO thread or on a | ||||
| 424 | // versionchange transaction thread. These threads can never race so this is | ||||
| 425 | // totally safe. | ||||
| 426 | struct FullIndexMetadata { | ||||
| 427 | IndexMetadata mCommonMetadata = {0, nsString(), KeyPath(0), nsCString(), | ||||
| 428 | false, false, false}; | ||||
| 429 | |||||
| 430 | FlippedOnce<false> mDeleted; | ||||
| 431 | |||||
| 432 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullIndexMetadata)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<FullIndexMetadata>, "Reference-counted class " "FullIndexMetadata" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 432 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("FullIndexMetadata"), (uint32_t)(sizeof(*this))); return ( nsrefcnt)count; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 432); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 432 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("FullIndexMetadata")); if (count == 0) { delete (this ); return 0; } return count; } using HasThreadSafeRefCnt = std ::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt ; public: | ||||
| 433 | |||||
| 434 | private: | ||||
| 435 | ~FullIndexMetadata() = default; | ||||
| 436 | }; | ||||
| 437 | |||||
| 438 | using IndexTable = nsTHashMap<nsUint64HashKey, SafeRefPtr<FullIndexMetadata>>; | ||||
| 439 | |||||
| 440 | // Can be instantiated either on the QuotaManager IO thread or on a | ||||
| 441 | // versionchange transaction thread. These threads can never race so this is | ||||
| 442 | // totally safe. | ||||
| 443 | struct FullObjectStoreMetadata { | ||||
| 444 | ObjectStoreMetadata mCommonMetadata; | ||||
| 445 | IndexTable mIndexes; | ||||
| 446 | |||||
| 447 | // The auto increment ids are touched on both the background thread and the | ||||
| 448 | // transaction I/O thread, and they must be kept in sync, so we need a mutex | ||||
| 449 | // to protect them. | ||||
| 450 | struct AutoIncrementIds { | ||||
| 451 | int64_t next; | ||||
| 452 | int64_t committed; | ||||
| 453 | }; | ||||
| 454 | DataMutex<AutoIncrementIds> mAutoIncrementIds; | ||||
| 455 | |||||
| 456 | FlippedOnce<false> mDeleted; | ||||
| 457 | |||||
| 458 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(FullObjectStoreMetadata)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<FullObjectStoreMetadata>, "Reference-counted class " "FullObjectStoreMetadata" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 458); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 458 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("FullObjectStoreMetadata"), (uint32_t)(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 458); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 458 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("FullObjectStoreMetadata")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public:; | ||||
| 459 | |||||
| 460 | bool HasLiveIndexes() const; | ||||
| 461 | |||||
| 462 | FullObjectStoreMetadata(ObjectStoreMetadata aCommonMetadata, | ||||
| 463 | const AutoIncrementIds& aAutoIncrementIds) | ||||
| 464 | : mCommonMetadata{std::move(aCommonMetadata)}, | ||||
| 465 | mAutoIncrementIds{AutoIncrementIds{aAutoIncrementIds}, | ||||
| 466 | "FullObjectStoreMetadata"} {} | ||||
| 467 | |||||
| 468 | private: | ||||
| 469 | ~FullObjectStoreMetadata() = default; | ||||
| 470 | }; | ||||
| 471 | |||||
| 472 | using ObjectStoreTable = | ||||
| 473 | nsTHashMap<nsUint64HashKey, SafeRefPtr<FullObjectStoreMetadata>>; | ||||
| 474 | |||||
| 475 | static_assert( | ||||
| 476 | std::is_same_v< | ||||
| 477 | IndexOrObjectStoreId, | ||||
| 478 | std::remove_cvref_t<decltype(std::declval<const ObjectStoreGetParams&>() | ||||
| 479 | .objectStoreId())>>); | ||||
| 480 | static_assert(std::is_same_v< | ||||
| 481 | IndexOrObjectStoreId, | ||||
| 482 | std::remove_cvref_t<decltype(std::declval<const IndexGetParams&>() | ||||
| 483 | .objectStoreId())>>); | ||||
| 484 | |||||
| 485 | struct FullDatabaseMetadata final : AtomicSafeRefCounted<FullDatabaseMetadata> { | ||||
| 486 | DatabaseMetadata mCommonMetadata; | ||||
| 487 | nsCString mDatabaseId; | ||||
| 488 | nsString mFilePath; | ||||
| 489 | ObjectStoreTable mObjectStores; | ||||
| 490 | |||||
| 491 | IndexOrObjectStoreId mNextObjectStoreId = 0; | ||||
| 492 | IndexOrObjectStoreId mNextIndexId = 0; | ||||
| 493 | |||||
| 494 | public: | ||||
| 495 | explicit FullDatabaseMetadata(const DatabaseMetadata& aCommonMetadata) | ||||
| 496 | : mCommonMetadata(aCommonMetadata) { | ||||
| 497 | AssertIsOnBackgroundThread(); | ||||
| 498 | } | ||||
| 499 | |||||
| 500 | [[nodiscard]] SafeRefPtr<FullDatabaseMetadata> Duplicate() const; | ||||
| 501 | |||||
| 502 | MOZ_DECLARE_REFCOUNTED_TYPENAME(FullDatabaseMetadata)const char* typeName() const { return "FullDatabaseMetadata"; } size_t typeSize() const { return sizeof(*this); } | ||||
| 503 | }; | ||||
| 504 | |||||
| 505 | template <class Enumerable> | ||||
| 506 | auto MatchMetadataNameOrId(const Enumerable& aEnumerable, | ||||
| 507 | IndexOrObjectStoreId aId, | ||||
| 508 | Maybe<const nsAString&> aName = Nothing()) { | ||||
| 509 | AssertIsOnBackgroundThread(); | ||||
| 510 | MOZ_ASSERT(aId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aId)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aId))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 510); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId" ")"); do { MOZ_CrashSequence(__null, 510); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 511 | |||||
| 512 | const auto it = std::find_if( | ||||
| 513 | aEnumerable.cbegin(), aEnumerable.cend(), | ||||
| 514 | [aId, aName](const auto& entry) { | ||||
| 515 | MOZ_ASSERT(entry.GetKey() != 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(entry.GetKey() != 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(entry.GetKey() != 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("entry.GetKey() != 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey() != 0" ")"); do { MOZ_CrashSequence(__null, 515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 516 | |||||
| 517 | const auto& value = entry.GetData(); | ||||
| 518 | MOZ_ASSERT(value)do { static_assert( mozilla::detail::AssertionConditionType< decltype(value)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(value))), 0))) { do { } while ( false); MOZ_ReportAssertionFailure("value", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "value" ")"); do { MOZ_CrashSequence(__null, 518); __attribute__((nomerge) ) ::abort(); } while (false); } } while (false); | ||||
| 519 | |||||
| 520 | return !value->mDeleted && | ||||
| 521 | (aId == value->mCommonMetadata.id() || | ||||
| 522 | (aName && *aName == value->mCommonMetadata.name())); | ||||
| 523 | }); | ||||
| 524 | |||||
| 525 | return ToMaybeRef(it != aEnumerable.cend() ? it->GetData().unsafeGetRawPtr() | ||||
| 526 | : nullptr); | ||||
| 527 | } | ||||
| 528 | |||||
| 529 | /******************************************************************************* | ||||
| 530 | * SQLite functions | ||||
| 531 | ******************************************************************************/ | ||||
| 532 | |||||
| 533 | // WARNING: the hash function used for the database name must not change. | ||||
| 534 | // That's why this function exists separately from mozilla::HashString(), even | ||||
| 535 | // though it is (at the time of writing) equivalent. See bug 780408 and bug | ||||
| 536 | // 940315 for details. | ||||
| 537 | uint32_t HashName(const nsAString& aName) { | ||||
| 538 | struct Helper { | ||||
| 539 | static uint32_t RotateBitsLeft32(uint32_t aValue, uint8_t aBits) { | ||||
| 540 | MOZ_ASSERT(aBits < 32)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aBits < 32)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aBits < 32))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aBits < 32", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 540); AnnotateMozCrashReason ("MOZ_ASSERT" "(" "aBits < 32" ")"); do { MOZ_CrashSequence (__null, 540); __attribute__((nomerge)) ::abort(); } while (false ); } } while (false); | ||||
| 541 | return (aValue << aBits) | (aValue >> (32 - aBits)); | ||||
| 542 | } | ||||
| 543 | }; | ||||
| 544 | |||||
| 545 | static const uint32_t kGoldenRatioU32 = 0x9e3779b9u; | ||||
| 546 | |||||
| 547 | return std::accumulate(aName.BeginReading(), aName.EndReading(), uint32_t(0), | ||||
| 548 | [](uint32_t hash, char16_t ch) { | ||||
| 549 | return kGoldenRatioU32 * | ||||
| 550 | (Helper::RotateBitsLeft32(hash, 5) ^ ch); | ||||
| 551 | }); | ||||
| 552 | } | ||||
| 553 | |||||
| 554 | Result<nsCOMPtr<nsIFileURL>, nsresult> GetDatabaseFileURL( | ||||
| 555 | nsIFile& aDatabaseFile, const int64_t aDirectoryLockId, | ||||
| 556 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 557 | MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 557); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1" ")"); do { MOZ_CrashSequence(__null, 557); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 558 | |||||
| 559 | QM_TRY_INSPECT(auto tryResult815 = (::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 (!!(tryResult815.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\")" , tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 563, mozilla::dom::quota::Severity::Error); return tryResult815 .propagateErr(); } const auto& protocolHandler = tryResult815 .inspect(); | ||||
| 560 | const auto& protocolHandler,auto tryResult815 = (::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 (!!(tryResult815.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\")" , tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 563, mozilla::dom::quota::Severity::Error); return tryResult815 .propagateErr(); } const auto& protocolHandler = tryResult815 .inspect(); | ||||
| 561 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIProtocolHandler>,auto tryResult815 = (::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 (!!(tryResult815.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\")" , tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 563, mozilla::dom::quota::Severity::Error); return tryResult815 .propagateErr(); } const auto& protocolHandler = tryResult815 .inspect(); | ||||
| 562 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult815 = (::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 (!!(tryResult815.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\")" , tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 563, mozilla::dom::quota::Severity::Error); return tryResult815 .propagateErr(); } const auto& protocolHandler = tryResult815 .inspect(); | ||||
| 563 | NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX "file"))auto tryResult815 = (::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 (!!(tryResult815.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\")" , tryResult815.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 563, mozilla::dom::quota::Severity::Error); return tryResult815 .propagateErr(); } const auto& protocolHandler = tryResult815 .inspect();; | ||||
| 564 | |||||
| 565 | QM_TRY_INSPECT(const auto& fileHandler,auto tryResult816 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler > >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs) ...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult816 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult816.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 568, mozilla::dom::quota::Severity::Error); return tryResult816 .propagateErr(); } const auto& fileHandler = tryResult816 .inspect(); | ||||
| 566 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<nsIFileProtocolHandler>,auto tryResult816 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler > >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs) ...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult816 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult816.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 568, mozilla::dom::quota::Severity::Error); return tryResult816 .propagateErr(); } const auto& fileHandler = tryResult816 .inspect(); | ||||
| 567 | MOZ_SELECT_OVERLOAD(do_QueryInterface),auto tryResult816 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler > >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs) ...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult816 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult816.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 568, mozilla::dom::quota::Severity::Error); return tryResult816 .propagateErr(); } const auto& fileHandler = tryResult816 .inspect(); | ||||
| 568 | protocolHandler))auto tryResult816 = (::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler > >([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs) ...); }, protocolHandler)); if ((__builtin_expect(!!(tryResult816 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultGet< nsCOMPtr<nsIFileProtocolHandler>>([](auto&&... aArgs) -> decltype(auto) { return do_QueryInterface(std::forward<decltype(aArgs)>(aArgs)...); }, protocolHandler)" , tryResult816.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 568, mozilla::dom::quota::Severity::Error); return tryResult816 .propagateErr(); } const auto& fileHandler = tryResult816 .inspect();; | ||||
| 569 | |||||
| 570 | QM_TRY_INSPECT(const auto& mutator, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult817 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult817.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult817.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 572, mozilla::dom::quota::Severity::Error); return tryResult817 .propagateErr(); } const auto& mutator = tryResult817.inspect (); | ||||
| 571 | nsCOMPtr<nsIURIMutator>, fileHandler,auto tryResult817 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult817.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult817.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 572, mozilla::dom::quota::Severity::Error); return tryResult817 .propagateErr(); } const auto& mutator = tryResult817.inspect (); | ||||
| 572 | NewFileURIMutator, &aDatabaseFile))auto tryResult817 = (::mozilla::ToResultInvoke< nsCOMPtr< nsIURIMutator> >( ::std::mem_fn( &::mozilla::detail ::DerefedType<decltype(fileHandler)>::NewFileURIMutator ), (fileHandler), &aDatabaseFile)); if ((__builtin_expect (!!(tryResult817.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCOMPtr<nsIURIMutator>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(fileHandler)>::NewFileURIMutator), (fileHandler), &aDatabaseFile)" , tryResult817.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 572, mozilla::dom::quota::Severity::Error); return tryResult817 .propagateErr(); } const auto& mutator = tryResult817.inspect ();; | ||||
| 573 | |||||
| 574 | // aDirectoryLockId should only be -1 when we are called | ||||
| 575 | // - from DatabaseFileManager::InitDirectory when the temporary storage | ||||
| 576 | // hasn't been initialized yet. At that time, the in-memory objects (e.g. | ||||
| 577 | // OriginInfo) are only being created so it doesn't make sense to tunnel | ||||
| 578 | // quota information to QuotaVFS to get corresponding QuotaObject instances | ||||
| 579 | // for SQLite files. | ||||
| 580 | // - from DeleteDatabaseOp::LoadPreviousVersion, since this might require | ||||
| 581 | // temporarily exceeding the quota limit before the database can be | ||||
| 582 | // deleted. | ||||
| 583 | const nsCString directoryLockIdClause = | ||||
| 584 | "&directoryLockId="_ns + IntToCString(aDirectoryLockId); | ||||
| 585 | |||||
| 586 | const auto keyClause = [&aMaybeKey] { | ||||
| 587 | nsAutoCString keyClause; | ||||
| 588 | if (aMaybeKey) { | ||||
| 589 | keyClause.AssignLiteral("&key="); | ||||
| 590 | for (uint8_t byte : IndexedDBCipherStrategy::SerializeKey(*aMaybeKey)) { | ||||
| 591 | keyClause.AppendPrintf("%02x", byte); | ||||
| 592 | } | ||||
| 593 | } | ||||
| 594 | return keyClause; | ||||
| 595 | }(); | ||||
| 596 | |||||
| 597 | QM_TRY_UNWRAP(auto result, ([&mutator, &directoryLockIdClause, &keyClause] {auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 598 | nsCOMPtr<nsIFileURL> result;auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 599 | nsresult rv = NS_MutateURI(mutator)auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 600 | .SetQuery("cache=private"_ns +auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 601 | directoryLockIdClause + keyClause)auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 602 | .Finalize(result);auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 603 | return NS_SUCCEEDED(rv)auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 604 | ? Result<nsCOMPtr<nsIFileURL>, nsresult>{result}auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 605 | : Err(rv);auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap(); | ||||
| 606 | }()))auto tryResult818 = (([&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 (!!(tryResult818.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); }())" , tryResult818.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 606, mozilla::dom::quota::Severity::Error); return tryResult818 .propagateErr(); } auto result = tryResult818.unwrap();; | ||||
| 607 | |||||
| 608 | return result; | ||||
| 609 | } | ||||
| 610 | |||||
| 611 | nsLiteralCString GetDefaultSynchronousMode() { | ||||
| 612 | return IndexedDatabaseManager::FullSynchronous() ? "FULL"_ns : "NORMAL"_ns; | ||||
| 613 | } | ||||
| 614 | |||||
| 615 | nsresult SetDefaultPragmas(mozIStorageConnection& aConnection) { | ||||
| 616 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 616); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 616); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 617 | |||||
| 618 | static constexpr auto kBuiltInPragmas = | ||||
| 619 | // We use foreign keys in DEBUG builds only because there is a performance | ||||
| 620 | // cost to using them. | ||||
| 621 | "PRAGMA foreign_keys = " | ||||
| 622 | #ifdef DEBUG1 | ||||
| 623 | "ON" | ||||
| 624 | #else | ||||
| 625 | "OFF" | ||||
| 626 | #endif | ||||
| 627 | ";" | ||||
| 628 | |||||
| 629 | // The "INSERT OR REPLACE" statement doesn't fire the update trigger, | ||||
| 630 | // instead it fires only the insert trigger. This confuses the update | ||||
| 631 | // refcount function. This behavior changes with enabled recursive | ||||
| 632 | // triggers, so the statement fires the delete trigger first and then the | ||||
| 633 | // insert trigger. | ||||
| 634 | "PRAGMA recursive_triggers = ON;" | ||||
| 635 | |||||
| 636 | // We aggressively truncate the database file when idle so don't bother | ||||
| 637 | // overwriting the WAL with 0 during active periods. | ||||
| 638 | "PRAGMA secure_delete = OFF;"_ns; | ||||
| 639 | |||||
| 640 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))){auto tryResult819 = (ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas ))); static_assert(std::is_empty_v<typename decltype(tryResult819 )::ok_type>); if ((__builtin_expect(!!(tryResult819.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(kBuiltInPragmas))" , tryResult819.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 640, mozilla::dom::quota::Severity::Error); return tryResult819 .propagateErr(); }}; | ||||
| 641 | |||||
| 642 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL(nsAutoCString{{auto tryResult820 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString { "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns }))); static_assert(std::is_empty_v<typename decltype(tryResult820 )::ok_type>); if ((__builtin_expect(!!(tryResult820.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 643, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); }} | ||||
| 643 | "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns}))){auto tryResult820 = (ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString { "PRAGMA synchronous = "_ns + GetDefaultSynchronousMode() + ";"_ns }))); static_assert(std::is_empty_v<typename decltype(tryResult820 )::ok_type>); if ((__builtin_expect(!!(tryResult820.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(nsAutoCString{ \"PRAGMA synchronous = \"_ns + GetDefaultSynchronousMode() + \";\"_ns}))" , tryResult820.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 643, mozilla::dom::quota::Severity::Error); return tryResult820 .propagateErr(); }}; | ||||
| 644 | |||||
| 645 | #ifndef IDB_MOBILE | ||||
| 646 | if (kSQLiteGrowthIncrement) { | ||||
| 647 | // This is just an optimization so ignore the failure if the disk is | ||||
| 648 | // currently too full. | ||||
| 649 | QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult821 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); }} | ||||
| 650 | // Expression.{auto tryResult821 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); }} | ||||
| 651 | MOZ_TO_RESULT({auto tryResult821 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); }} | ||||
| 652 | aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns)),{auto tryResult821 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); }} | ||||
| 653 | // Predicate.{auto tryResult821 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); }} | ||||
| 654 | IsSpecificError<NS_ERROR_FILE_TOO_BIG>,{auto tryResult821 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); }} | ||||
| 655 | // Fallback.{auto tryResult821 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); }} | ||||
| 656 | ErrToDefaultOk<>)){auto tryResult821 = (mozilla::dom::quota::OrElseIf( (ToResult (aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, ""_ns ))), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota:: HandleError("\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\"\\\"_ns))\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult821)::ok_type>); if ((__builtin_expect(!!(tryResult821 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \"\"_ns))), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_FILE_TOO_BIG>(firstRes); mozilla::dom::quota::HandleError(\"\\\"ToResult(aConnection.SetGrowthIncrement(kSQLiteGrowthIncrement, \\\\\\\"\\\\\\\"_ns))\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 656, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult821.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 656, mozilla::dom::quota::Severity::Error); return tryResult821 .propagateErr(); }}; | ||||
| 657 | } | ||||
| 658 | #endif // IDB_MOBILE | ||||
| 659 | |||||
| 660 | return NS_OK; | ||||
| 661 | } | ||||
| 662 | |||||
| 663 | nsresult SetJournalMode(mozIStorageConnection& aConnection) { | ||||
| 664 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 664); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 665 | |||||
| 666 | // Try enabling WAL mode. This can fail in various circumstances so we have to | ||||
| 667 | // check the results here. | ||||
| 668 | constexpr auto journalModeQueryStart = "PRAGMA journal_mode = "_ns; | ||||
| 669 | constexpr auto journalModeWAL = "wal"_ns; | ||||
| 670 | |||||
| 671 | QM_TRY_INSPECT(const auto& stmt,auto tryResult822 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult822.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult822.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 673, mozilla::dom::quota::Severity::Error); return tryResult822 .propagateErr(); } const auto& stmt = tryResult822.inspect (); | ||||
| 672 | CreateAndExecuteSingleStepStatement(auto tryResult822 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult822.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult822.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 673, mozilla::dom::quota::Severity::Error); return tryResult822 .propagateErr(); } const auto& stmt = tryResult822.inspect (); | ||||
| 673 | aConnection, journalModeQueryStart + journalModeWAL))auto tryResult822 = (CreateAndExecuteSingleStepStatement( aConnection , journalModeQueryStart + journalModeWAL)); if ((__builtin_expect (!!(tryResult822.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, journalModeQueryStart + journalModeWAL)" , tryResult822.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 673, mozilla::dom::quota::Severity::Error); return tryResult822 .propagateErr(); } const auto& stmt = tryResult822.inspect ();; | ||||
| 674 | |||||
| 675 | QM_TRY_INSPECT(auto tryResult823 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult823.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult823.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 677, mozilla::dom::quota::Severity::Error); return tryResult823 .propagateErr(); } const auto& journalMode = tryResult823 .inspect(); | ||||
| 676 | const auto& journalMode,auto tryResult823 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult823.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult823.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 677, mozilla::dom::quota::Severity::Error); return tryResult823 .propagateErr(); } const auto& journalMode = tryResult823 .inspect(); | ||||
| 677 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt, GetUTF8String, 0))auto tryResult823 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult823.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult823.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 677, mozilla::dom::quota::Severity::Error); return tryResult823 .propagateErr(); } const auto& journalMode = tryResult823 .inspect();; | ||||
| 678 | |||||
| 679 | if (journalMode.Equals(journalModeWAL)) { | ||||
| 680 | // WAL mode successfully enabled. Maybe set limits on its size here. | ||||
| 681 | if (kMaxWALPages >= 0) { | ||||
| 682 | QM_TRY(MOZ_TO_RESULT(aConnection.ExecuteSimpleSQL({auto tryResult824 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v <typename decltype(tryResult824)::ok_type>); if ((__builtin_expect (!!(tryResult824.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))" , tryResult824.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 683, mozilla::dom::quota::Severity::Error); return tryResult824 .propagateErr(); }} | ||||
| 683 | "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))){auto tryResult824 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA wal_autocheckpoint = "_ns + IntToCString(kMaxWALPages)))); static_assert(std::is_empty_v <typename decltype(tryResult824)::ok_type>); if ((__builtin_expect (!!(tryResult824.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL( \"PRAGMA wal_autocheckpoint = \"_ns + IntToCString(kMaxWALPages)))" , tryResult824.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 683, mozilla::dom::quota::Severity::Error); return tryResult824 .propagateErr(); }}; | ||||
| 684 | } | ||||
| 685 | } else { | ||||
| 686 | NS_WARNING("Failed to set WAL mode, falling back to normal journal mode.")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set WAL mode, falling back to normal journal mode." , nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 686); | ||||
| 687 | #ifdef IDB_MOBILE | ||||
| 688 | QM_TRY(MOZ_TO_RESULT({auto tryResult825 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult825)::ok_type>); if ((__builtin_expect( !!(tryResult825.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))" , tryResult825.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 689, mozilla::dom::quota::Severity::Error); return tryResult825 .propagateErr(); }} | ||||
| 689 | aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))){auto tryResult825 = (ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + "truncate"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult825)::ok_type>); if ((__builtin_expect( !!(tryResult825.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(journalModeQueryStart + \"truncate\"_ns))" , tryResult825.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 689, mozilla::dom::quota::Severity::Error); return tryResult825 .propagateErr(); }}; | ||||
| 690 | #endif | ||||
| 691 | } | ||||
| 692 | |||||
| 693 | return NS_OK; | ||||
| 694 | } | ||||
| 695 | |||||
| 696 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> OpenDatabase( | ||||
| 697 | mozIStorageService& aStorageService, nsIFileURL& aFileURL, | ||||
| 698 | const uint32_t aTelemetryId = 0) { | ||||
| 699 | const nsAutoCString telemetryFilename = | ||||
| 700 | aTelemetryId ? "indexedDB-"_ns + IntToCString(aTelemetryId) + | ||||
| 701 | NS_ConvertUTF16toUTF8(kSQLiteSuffix) | ||||
| 702 | : nsAutoCString(); | ||||
| 703 | |||||
| 704 | QM_TRY_UNWRAP(auto connection,auto tryResult826 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult826 .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)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 708, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 705 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult826 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult826 .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)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 708, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 706 | nsCOMPtr<mozIStorageConnection>, aStorageService,auto tryResult826 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult826 .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)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 708, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 707 | OpenDatabaseWithFileURL, &aFileURL, telemetryFilename,auto tryResult826 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult826 .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)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 708, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap(); | ||||
| 708 | mozIStorageService::CONNECTION_INTERRUPTIBLE))auto tryResult826 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageConnection> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aStorageService)>::OpenDatabaseWithFileURL ), (aStorageService), &aFileURL, telemetryFilename, mozIStorageService ::CONNECTION_INTERRUPTIBLE)); if ((__builtin_expect(!!(tryResult826 .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)" , tryResult826.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 708, mozilla::dom::quota::Severity::Error); return tryResult826 .propagateErr(); } auto connection = tryResult826.unwrap();; | ||||
| 709 | |||||
| 710 | return WrapMovingNotNull(std::move(connection)); | ||||
| 711 | } | ||||
| 712 | |||||
| 713 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | ||||
| 714 | OpenDatabaseAndHandleBusy(mozIStorageService& aStorageService, | ||||
| 715 | nsIFileURL& aFileURL, | ||||
| 716 | const uint32_t aTelemetryId = 0) { | ||||
| 717 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 717); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 718 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 718); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 718); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 719 | |||||
| 720 | using ConnectionType = Maybe<MovingNotNull<nsCOMPtr<mozIStorageConnection>>>; | ||||
| 721 | |||||
| 722 | QM_TRY_UNWRAP(auto connection,auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 723 | QM_OR_ELSE_WARN_IF(auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 724 | // Expressionauto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 725 | OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 726 | .map([](auto connection) -> ConnectionType {auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 727 | return Some(std::move(connection));auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 728 | }),auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 729 | // Predicate.auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 730 | IsSpecificError<NS_ERROR_STORAGE_BUSY>,auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 731 | // Fallback.auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap(); | ||||
| 732 | ErrToDefaultOk<ConnectionType>))auto tryResult827 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = IsSpecificError <NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota:: HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult827 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = IsSpecificError<NS_ERROR_STORAGE_BUSY>(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 732, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult827.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 732, mozilla::dom::quota::Severity::Error); return tryResult827 .propagateErr(); } auto connection = tryResult827.unwrap();; | ||||
| 733 | |||||
| 734 | if (connection.isNothing()) { | ||||
| 735 | #ifdef DEBUG1 | ||||
| 736 | { | ||||
| 737 | nsCString path; | ||||
| 738 | MOZ_ALWAYS_SUCCEEDS(aFileURL.GetFileName(path))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (aFileURL.GetFileName(path))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(aFileURL.GetFileName(path))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 738); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFileURL.GetFileName(path))" ")"); do { MOZ_CrashSequence(__null, 738); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 739 | |||||
| 740 | nsPrintfCString message( | ||||
| 741 | "Received NS_ERROR_STORAGE_BUSY when attempting to open database " | ||||
| 742 | "'%s', retrying for up to 10 seconds", | ||||
| 743 | path.get()); | ||||
| 744 | NS_WARNING(message.get())NS_DebugBreak(NS_DEBUG_WARNING, message.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 744); | ||||
| 745 | } | ||||
| 746 | #endif | ||||
| 747 | |||||
| 748 | // Another thread must be checkpointing the WAL. Wait up to 10 seconds for | ||||
| 749 | // that to complete. | ||||
| 750 | const TimeStamp start = TimeStamp::NowLoRes(); | ||||
| 751 | |||||
| 752 | // Use exponential backoff: start at 1ms, double up to 100ms max | ||||
| 753 | uint32_t sleepMs = 1; | ||||
| 754 | constexpr uint32_t kMaxSleepMs = 100; | ||||
| 755 | |||||
| 756 | do { | ||||
| 757 | PR_Sleep(PR_MillisecondsToInterval(sleepMs)); | ||||
| 758 | |||||
| 759 | // Exponential backoff with cap | ||||
| 760 | sleepMs = std::min(sleepMs * 2, kMaxSleepMs); | ||||
| 761 | |||||
| 762 | QM_TRY_UNWRAP(connection,auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 763 | QM_OR_ELSE_WARN_IF(auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 764 | // Expression.auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 765 | OpenDatabase(aStorageService, aFileURL, aTelemetryId)auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 766 | .map([](auto connection) -> ConnectionType {auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 767 | return Some(std::move(connection));auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 768 | }),auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 769 | // Predicate.auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 770 | ([&start](nsresult aValue) {auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 771 | return aValue == NS_ERROR_STORAGE_BUSY &&auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 772 | TimeStamp::NowLoRes() - start <=auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 773 | TimeDuration::FromSeconds(10);auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 774 | }),auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 775 | // Fallback.auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap(); | ||||
| 776 | ErrToDefaultOk<ConnectionType>))auto tryResult828 = (mozilla::dom::quota::OrElseIf( (OpenDatabase (aStorageService, aFileURL, aTelemetryId) .map([](auto connection ) -> ConnectionType { return Some(std::move(connection)); } )), [&](const auto& firstRes) { bool res = ([&start ](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds (10); })(firstRes); mozilla::dom::quota::HandleError("\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <ConnectionType>)); if ((__builtin_expect(!!(tryResult828 .isErr()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })), [&](const auto& firstRes) { bool res = ([&start](nsresult aValue) { return aValue == NS_ERROR_STORAGE_BUSY && TimeStamp::NowLoRes() - start <= TimeDuration::FromSeconds(10); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabase(aStorageService, aFileURL, aTelemetryId) .map([](auto connection) -> ConnectionType { return Some(std::move(connection)); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 776, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<ConnectionType>)" , tryResult828.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 776, mozilla::dom::quota::Severity::Error); return tryResult828 .propagateErr(); } connection = tryResult828.unwrap();; | ||||
| 777 | } while (connection.isNothing()); | ||||
| 778 | } | ||||
| 779 | |||||
| 780 | return connection.extract(); | ||||
| 781 | } | ||||
| 782 | |||||
| 783 | // Returns true if a given nsIFile exists and is a directory. Returns false if | ||||
| 784 | // it doesn't exist. Returns an error if it exists, but is not a directory, or | ||||
| 785 | // any other error occurs. | ||||
| 786 | Result<bool, nsresult> ExistsAsDirectory(nsIFile& aDirectory) { | ||||
| 787 | QM_TRY_INSPECT(const bool& exists,auto tryResult829 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult829.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )" , tryResult829.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 788, mozilla::dom::quota::Severity::Error); return tryResult829 .propagateErr(); } const bool& exists = tryResult829.inspect (); | ||||
| 788 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult829 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult829.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )" , tryResult829.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 788, mozilla::dom::quota::Severity::Error); return tryResult829 .propagateErr(); } const bool& exists = tryResult829.inspect ();; | ||||
| 789 | |||||
| 790 | if (exists) { | ||||
| 791 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult830 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult830. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )" , tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 792, mozilla::dom::quota::Severity::Error); return tryResult830 .propagateErr(); } const bool& isDirectory = tryResult830 .inspect(); | ||||
| 792 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult830 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult830. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )" , tryResult830.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 792, mozilla::dom::quota::Severity::Error); return tryResult830 .propagateErr(); } const bool& isDirectory = tryResult830 .inspect();; | ||||
| 793 | |||||
| 794 | QM_TRY(OkIf(isDirectory), Err(NS_ERROR_FAILURE)){auto tryResult831 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult831)::ok_type>); if ((__builtin_expect(!!(tryResult831.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult831.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 794, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , Err(NS_ERROR_FAILURE)); }}; | ||||
| 795 | } | ||||
| 796 | |||||
| 797 | return exists; | ||||
| 798 | } | ||||
| 799 | |||||
| 800 | constexpr nsresult mapNoDeviceSpaceError(nsresult aRv) { | ||||
| 801 | if (aRv == NS_ERROR_FILE_NO_DEVICE_SPACE) { | ||||
| 802 | // mozstorage translates SQLITE_FULL to | ||||
| 803 | // NS_ERROR_FILE_NO_DEVICE_SPACE, which we know better as | ||||
| 804 | // NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR. | ||||
| 805 | return NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR; | ||||
| 806 | } | ||||
| 807 | return aRv; | ||||
| 808 | } | ||||
| 809 | |||||
| 810 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | ||||
| 811 | CreateStorageConnection(nsIFile& aDBFile, nsIFile& aFMDirectory, | ||||
| 812 | const nsAString& aName, const nsACString& aOrigin, | ||||
| 813 | const int64_t aDirectoryLockId, | ||||
| 814 | const uint32_t aTelemetryId, | ||||
| 815 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 816 | AssertIsOnIOThread(); | ||||
| 817 | MOZ_ASSERT(aDirectoryLockId >= -1)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= -1)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= -1))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= -1" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= -1" ")"); do { MOZ_CrashSequence(__null, 817); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 818 | |||||
| 819 | AUTO_PROFILER_LABEL("CreateStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject819( "CreateStorageConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 820 | |||||
| 821 | QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult832 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult832.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)" , tryResult832.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 822, mozilla::dom::quota::Severity::Error); return tryResult832 .propagateErr(); } const auto& dbFileUrl = tryResult832.inspect (); | ||||
| 822 | GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey))auto tryResult832 = (GetDatabaseFileURL(aDBFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult832.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDBFile, aDirectoryLockId, aMaybeKey)" , tryResult832.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 822, mozilla::dom::quota::Severity::Error); return tryResult832 .propagateErr(); } const auto& dbFileUrl = tryResult832.inspect ();; | ||||
| 823 | |||||
| 824 | QM_TRY_INSPECT(const auto& storageService,auto tryResult833 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult833.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\")" , tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 827, mozilla::dom::quota::Severity::Error); return tryResult833 .propagateErr(); } const auto& storageService = tryResult833 .inspect(); | ||||
| 825 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult833 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult833.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\")" , tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 827, mozilla::dom::quota::Severity::Error); return tryResult833 .propagateErr(); } const auto& storageService = tryResult833 .inspect(); | ||||
| 826 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult833 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult833.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\")" , tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 827, mozilla::dom::quota::Severity::Error); return tryResult833 .propagateErr(); } const auto& storageService = tryResult833 .inspect(); | ||||
| 827 | MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult833 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult833.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\")" , tryResult833.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 827, mozilla::dom::quota::Severity::Error); return tryResult833 .propagateErr(); } const auto& storageService = tryResult833 .inspect();; | ||||
| 828 | |||||
| 829 | QM_TRY_UNWRAP(auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 830 | auto connection,auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 831 | QM_OR_ELSE_WARN_IF(auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 832 | // Expression.auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 833 | OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 834 | .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> {auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 835 | return std::move(connection).unwrapBasePtr();auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 836 | }),auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 837 | // Predicate.auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 838 | ([&aName](nsresult aValue) {auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 839 | // If we're just opening the database during origin initialization,auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 840 | // then we don't want to erase any files. The failure here will failauto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 841 | // origin initialization too.auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 842 | return IsDatabaseCorruptionError(aValue) && !aName.IsVoid();auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 843 | }),auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 844 | // Fallback.auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap(); | ||||
| 845 | ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>))auto tryResult834 = (mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy (*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection ) -> nsCOMPtr<mozIStorageConnection> { return std::move (connection).unwrapBasePtr(); })), [&](const auto& firstRes ) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError (aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom ::quota::HandleError("\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <nsCOMPtr<mozIStorageConnection>>)); if ((__builtin_expect (!!(tryResult834.isErr()), 0))) { mozilla::dom::quota::HandleError ("mozilla::dom::quota::OrElseIf( (OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })), [&](const auto& firstRes) { bool res = ([&aName](nsresult aValue) { return IsDatabaseCorruptionError(aValue) && !aName.IsVoid(); })(firstRes); mozilla::dom::quota::HandleError(\"\\\"OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId) .map([](auto connection) -> nsCOMPtr<mozIStorageConnection> { return std::move(connection).unwrapBasePtr(); })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 845, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<nsCOMPtr<mozIStorageConnection>>)" , tryResult834.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 845, mozilla::dom::quota::Severity::Error); return tryResult834 .propagateErr(); } auto connection = tryResult834.unwrap();; | ||||
| 846 | |||||
| 847 | if (!connection) { | ||||
| 848 | // XXX Shouldn't we also update quota usage? | ||||
| 849 | |||||
| 850 | // Nuke the database file. | ||||
| 851 | QM_TRY(MOZ_TO_RESULT(aDBFile.Remove(false))){auto tryResult835 = (ToResult(aDBFile.Remove(false))); static_assert (std::is_empty_v<typename decltype(tryResult835)::ok_type> ); if ((__builtin_expect(!!(tryResult835.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aDBFile.Remove(false))", tryResult835 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 851, mozilla::dom::quota::Severity::Error); return tryResult835 .propagateErr(); }}; | ||||
| 852 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult836 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect (!!(tryResult836.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(aFMDirectory)", tryResult836.inspectErr() , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 853, mozilla ::dom::quota::Severity::Error); return tryResult836.propagateErr (); } const bool& existsAsDirectory = tryResult836.inspect (); | ||||
| 853 | ExistsAsDirectory(aFMDirectory))auto tryResult836 = (ExistsAsDirectory(aFMDirectory)); if ((__builtin_expect (!!(tryResult836.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(aFMDirectory)", tryResult836.inspectErr() , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 853, mozilla ::dom::quota::Severity::Error); return tryResult836.propagateErr (); } const bool& existsAsDirectory = tryResult836.inspect ();; | ||||
| 854 | |||||
| 855 | if (existsAsDirectory) { | ||||
| 856 | QM_TRY(MOZ_TO_RESULT(aFMDirectory.Remove(true))){auto tryResult837 = (ToResult(aFMDirectory.Remove(true))); static_assert (std::is_empty_v<typename decltype(tryResult837)::ok_type> ); if ((__builtin_expect(!!(tryResult837.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aFMDirectory.Remove(true))" , tryResult837.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 856, mozilla::dom::quota::Severity::Error); return tryResult837 .propagateErr(); }}; | ||||
| 857 | } | ||||
| 858 | |||||
| 859 | QM_TRY_UNWRAP(connection, OpenDatabaseAndHandleBusy(auto tryResult838 = (OpenDatabaseAndHandleBusy( *storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult838 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)" , tryResult838.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 860, mozilla::dom::quota::Severity::Error); return tryResult838 .propagateErr(); } connection = tryResult838.unwrap(); | ||||
| 860 | *storageService, *dbFileUrl, aTelemetryId))auto tryResult838 = (OpenDatabaseAndHandleBusy( *storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult838 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy( *storageService, *dbFileUrl, aTelemetryId)" , tryResult838.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 860, mozilla::dom::quota::Severity::Error); return tryResult838 .propagateErr(); } connection = tryResult838.unwrap();; | ||||
| 861 | } | ||||
| 862 | |||||
| 863 | QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult839 = (ToResult(SetDefaultPragmas(*connection) )); static_assert(std::is_empty_v<typename decltype(tryResult839 )::ok_type>); if ((__builtin_expect(!!(tryResult839.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))" , tryResult839.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 863, mozilla::dom::quota::Severity::Error); return tryResult839 .propagateErr(); }}; | ||||
| 864 | QM_TRY(MOZ_TO_RESULT(connection->EnableModule("filesystem"_ns))){auto tryResult840 = (ToResult(connection->EnableModule("filesystem"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult840 )::ok_type>); if ((__builtin_expect(!!(tryResult840.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->EnableModule(\"filesystem\"_ns))" , tryResult840.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 864, mozilla::dom::quota::Severity::Error); return tryResult840 .propagateErr(); }}; | ||||
| 865 | |||||
| 866 | // Check to make sure that the database schema is correct. | ||||
| 867 | QM_TRY_INSPECT(const int32_t& schemaVersion,auto tryResult841 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult841 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 868, mozilla::dom::quota::Severity::Error); return tryResult841 .propagateErr(); } const int32_t& schemaVersion = tryResult841 .inspect(); | ||||
| 868 | MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion))auto tryResult841 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult841 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryResult841.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 868, mozilla::dom::quota::Severity::Error); return tryResult841 .propagateErr(); } const int32_t& schemaVersion = tryResult841 .inspect();; | ||||
| 869 | |||||
| 870 | // Unknown schema will fail origin initialization too. | ||||
| 871 | QM_TRY(OkIf(schemaVersion || !aName.IsVoid()),{auto tryResult842 = (OkIf(schemaVersion || !aName.IsVoid())) ; static_assert(std::is_empty_v<typename decltype(tryResult842 )::ok_type>); if ((__builtin_expect(!!(tryResult842.isErr( )), 0))) { auto tryTempError = tryResult842.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 874, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 873, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 873); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 872 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult842 = (OkIf(schemaVersion || !aName.IsVoid())) ; static_assert(std::is_empty_v<typename decltype(tryResult842 )::ok_type>); if ((__builtin_expect(!!(tryResult842.isErr( )), 0))) { auto tryTempError = tryResult842.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 874, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 873, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 873); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 873 | IDB_WARNING("Unable to open IndexedDB database, schema is not set!");{auto tryResult842 = (OkIf(schemaVersion || !aName.IsVoid())) ; static_assert(std::is_empty_v<typename decltype(tryResult842 )::ok_type>); if ((__builtin_expect(!!(tryResult842.isErr( )), 0))) { auto tryTempError = tryResult842.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 874, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 873, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 873); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 874 | }){auto tryResult842 = (OkIf(schemaVersion || !aName.IsVoid())) ; static_assert(std::is_empty_v<typename decltype(tryResult842 )::ok_type>); if ((__builtin_expect(!!(tryResult842.isErr( )), 0))) { auto tryTempError = tryResult842.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion || !aName.IsVoid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 874, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is not set!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 873, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 873); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion || !aName.IsVoid())", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 875 | |||||
| 876 | QM_TRY({auto tryResult843 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult843 )::ok_type>); if ((__builtin_expect(!!(tryResult843.isErr( )), 0))) { auto tryTempError = tryResult843.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 880, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 877 | OkIf(schemaVersion <= kSQLiteSchemaVersion),{auto tryResult843 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult843 )::ok_type>); if ((__builtin_expect(!!(tryResult843.isErr( )), 0))) { auto tryTempError = tryResult843.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 880, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 878 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR), [](const auto&) {{auto tryResult843 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult843 )::ok_type>); if ((__builtin_expect(!!(tryResult843.isErr( )), 0))) { auto tryTempError = tryResult843.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 880, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 879 | IDB_WARNING("Unable to open IndexedDB database, schema is too high!");{auto tryResult843 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult843 )::ok_type>); if ((__builtin_expect(!!(tryResult843.isErr( )), 0))) { auto tryTempError = tryResult843.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 880, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 880 | }){auto tryResult843 = (OkIf(schemaVersion <= kSQLiteSchemaVersion )); static_assert(std::is_empty_v<typename decltype(tryResult843 )::ok_type>); if ((__builtin_expect(!!(tryResult843.isErr( )), 0))) { auto tryTempError = tryResult843.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(schemaVersion <= kSQLiteSchemaVersion)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 880, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString s("Unable to open IndexedDB database, schema is too high!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 879, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 879); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(schemaVersion <= kSQLiteSchemaVersion)", tryTempError , Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 881 | |||||
| 882 | bool journalModeSet = false; | ||||
| 883 | |||||
| 884 | if (schemaVersion != kSQLiteSchemaVersion) { | ||||
| 885 | const bool newDatabase = !schemaVersion; | ||||
| 886 | |||||
| 887 | if (newDatabase) { | ||||
| 888 | // Set the page size first. | ||||
| 889 | const auto sqlitePageSizeOverride = | ||||
| 890 | aMaybeKey ? 8192 : kSQLitePageSizeOverride; | ||||
| 891 | if (sqlitePageSizeOverride) { | ||||
| 892 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult844 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult844 )::ok_type>); if ((__builtin_expect(!!(tryResult844.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))" , tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 893, mozilla::dom::quota::Severity::Error); return tryResult844 .propagateErr(); }} | ||||
| 893 | "PRAGMA page_size = %" PRIu32 ";", sqlitePageSizeOverride)))){auto tryResult844 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", sqlitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult844 )::ok_type>); if ((__builtin_expect(!!(tryResult844.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", sqlitePageSizeOverride)))" , tryResult844.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 893, mozilla::dom::quota::Severity::Error); return tryResult844 .propagateErr(); }}; | ||||
| 894 | } | ||||
| 895 | |||||
| 896 | // We have to set the auto_vacuum mode before opening a transaction. | ||||
| 897 | QM_TRY((MOZ_TO_RESULT_INVOKE_MEMBER({auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 898 | connection, ExecuteSimpleSQL,{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 899 | #ifdef IDB_MOBILE{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 900 | // Turn on full auto_vacuum mode to reclaim disk space on{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 901 | // mobile devices (at the cost of some COMMIT speed).{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 902 | "PRAGMA auto_vacuum = FULL;"_ns{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 903 | #else{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 904 | // Turn on incremental auto_vacuum mode on desktop builds.{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 905 | "PRAGMA auto_vacuum = INCREMENTAL;"_ns{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 906 | #endif{auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 907 | ){auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }} | ||||
| 908 | .mapErr(mapNoDeviceSpaceError))){auto tryResult845 = ((::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(tryResult845 )::ok_type>); if ((__builtin_expect(!!(tryResult845.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))" , tryResult845.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 908, mozilla::dom::quota::Severity::Error); return tryResult845 .propagateErr(); }}; | ||||
| 909 | |||||
| 910 | QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult846 = (ToResult(SetJournalMode(*connection))); static_assert(std::is_empty_v<typename decltype(tryResult846 )::ok_type>); if ((__builtin_expect(!!(tryResult846.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))" , tryResult846.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 910, mozilla::dom::quota::Severity::Error); return tryResult846 .propagateErr(); }}; | ||||
| 911 | |||||
| 912 | journalModeSet = true; | ||||
| 913 | } else { | ||||
| 914 | #ifdef DEBUG1 | ||||
| 915 | // Disable foreign key support while upgrading. This has to be done before | ||||
| 916 | // starting a transaction. | ||||
| 917 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 918); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { MOZ_CrashSequence(__null, 918); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 918 | connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 918); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { MOZ_CrashSequence(__null, 918); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 919 | #endif | ||||
| 920 | } | ||||
| 921 | |||||
| 922 | bool vacuumNeeded = false; | ||||
| 923 | |||||
| 924 | mozStorageTransaction transaction( | ||||
| 925 | connection.get(), false, mozIStorageConnection::TRANSACTION_IMMEDIATE); | ||||
| 926 | |||||
| 927 | QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult847 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult847)::ok_type> ); if ((__builtin_expect(!!(tryResult847.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(transaction.Start())", tryResult847 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 927, mozilla::dom::quota::Severity::Error); return tryResult847 .propagateErr(); }}; | ||||
| 928 | |||||
| 929 | if (newDatabase) { | ||||
| 930 | QM_TRY(MOZ_TO_RESULT(CreateTables(*connection))){auto tryResult848 = (ToResult(CreateTables(*connection))); static_assert (std::is_empty_v<typename decltype(tryResult848)::ok_type> ); if ((__builtin_expect(!!(tryResult848.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(CreateTables(*connection))" , tryResult848.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 930, mozilla::dom::quota::Severity::Error); return tryResult848 .propagateErr(); }}; | ||||
| 931 | |||||
| 932 | #ifdef DEBUG1 | ||||
| 933 | { | ||||
| 934 | QM_TRY_INSPECT(auto tryResult849 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult849 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult849 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 937, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 937); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult849.inspect(); | ||||
| 935 | const int32_t& schemaVersion,auto tryResult849 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult849 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult849 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 937, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 937); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult849.inspect(); | ||||
| 936 | MOZ_TO_RESULT_INVOKE_MEMBER(connection, GetSchemaVersion),auto tryResult849 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult849 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult849 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 937, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 937); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult849.inspect(); | ||||
| 937 | QM_ASSERT_UNREACHABLE)auto tryResult849 = (::mozilla::ToResultInvokeMember( (connection ), &::mozilla::detail::DerefedType<decltype(connection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult849 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult849 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 937, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvokeMember( (connection), &::mozilla::detail::DerefedType<decltype(connection)>::GetSchemaVersion )" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 937); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 937); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & schemaVersion = tryResult849.inspect();; | ||||
| 938 | MOZ_ASSERT(schemaVersion == kSQLiteSchemaVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(schemaVersion == kSQLiteSchemaVersion)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(! !(schemaVersion == kSQLiteSchemaVersion))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("schemaVersion == kSQLiteSchemaVersion" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "schemaVersion == kSQLiteSchemaVersion" ")"); do { MOZ_CrashSequence(__null, 938); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 939 | } | ||||
| 940 | #endif | ||||
| 941 | |||||
| 942 | // The parameter names are not used, parameters are bound by index only | ||||
| 943 | // locally in the same function. | ||||
| 944 | QM_TRY_INSPECT(auto tryResult850 = (::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(!!(tryResult850.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)" , tryResult850.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 949, mozilla::dom::quota::Severity::Error); return tryResult850 .propagateErr(); } const auto& stmt = tryResult850.inspect (); | ||||
| 945 | const auto& stmt,auto tryResult850 = (::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(!!(tryResult850.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)" , tryResult850.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 949, mozilla::dom::quota::Severity::Error); return tryResult850 .propagateErr(); } const auto& stmt = tryResult850.inspect (); | ||||
| 946 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult850 = (::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(!!(tryResult850.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)" , tryResult850.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 949, mozilla::dom::quota::Severity::Error); return tryResult850 .propagateErr(); } const auto& stmt = tryResult850.inspect (); | ||||
| 947 | nsCOMPtr<mozIStorageStatement>, connection, CreateStatement,auto tryResult850 = (::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(!!(tryResult850.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)" , tryResult850.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 949, mozilla::dom::quota::Severity::Error); return tryResult850 .propagateErr(); } const auto& stmt = tryResult850.inspect (); | ||||
| 948 | "INSERT INTO database (name, origin) "auto tryResult850 = (::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(!!(tryResult850.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)" , tryResult850.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 949, mozilla::dom::quota::Severity::Error); return tryResult850 .propagateErr(); } const auto& stmt = tryResult850.inspect (); | ||||
| 949 | "VALUES (:name, :origin)"_ns))auto tryResult850 = (::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(!!(tryResult850.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)" , tryResult850.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 949, mozilla::dom::quota::Severity::Error); return tryResult850 .propagateErr(); } const auto& stmt = tryResult850.inspect ();; | ||||
| 950 | |||||
| 951 | QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, aName))){auto tryResult851 = (ToResult(stmt->BindStringByIndex(0, aName ))); static_assert(std::is_empty_v<typename decltype(tryResult851 )::ok_type>); if ((__builtin_expect(!!(tryResult851.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, aName))" , tryResult851.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 951, mozilla::dom::quota::Severity::Error); return tryResult851 .propagateErr(); }}; | ||||
| 952 | QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByIndex(1, aOrigin))){auto tryResult852 = (ToResult(stmt->BindUTF8StringByIndex (1, aOrigin))); static_assert(std::is_empty_v<typename decltype (tryResult852)::ok_type>); if ((__builtin_expect(!!(tryResult852 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindUTF8StringByIndex(1, aOrigin))" , tryResult852.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 952, mozilla::dom::quota::Severity::Error); return tryResult852 .propagateErr(); }}; | ||||
| 953 | QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult853 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult853)::ok_type> ); if ((__builtin_expect(!!(tryResult853.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt->Execute())", tryResult853 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 953, mozilla::dom::quota::Severity::Error); return tryResult853 .propagateErr(); }}; | ||||
| 954 | } else { | ||||
| 955 | QM_TRY_UNWRAP(vacuumNeeded, MaybeUpgradeSchema(*connection, schemaVersion,auto tryResult854 = (MaybeUpgradeSchema(*connection, schemaVersion , aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult854 .isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)" , tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 956, mozilla::dom::quota::Severity::Error); return tryResult854 .propagateErr(); } vacuumNeeded = tryResult854.unwrap(); | ||||
| 956 | aFMDirectory, aOrigin))auto tryResult854 = (MaybeUpgradeSchema(*connection, schemaVersion , aFMDirectory, aOrigin)); if ((__builtin_expect(!!(tryResult854 .isErr()), 0))) { mozilla::dom::quota::HandleError("MaybeUpgradeSchema(*connection, schemaVersion, aFMDirectory, aOrigin)" , tryResult854.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 956, mozilla::dom::quota::Severity::Error); return tryResult854 .propagateErr(); } vacuumNeeded = tryResult854.unwrap();; | ||||
| 957 | } | ||||
| 958 | |||||
| 959 | QM_TRY(MOZ_TO_RESULT_INVOKE_MEMBER(transaction, Commit){auto tryResult855 = (::mozilla::ToResultInvokeMember( (transaction ), &::mozilla::detail::DerefedType<decltype(transaction )>::Commit ) .mapErr(mapNoDeviceSpaceError)); static_assert (std::is_empty_v<typename decltype(tryResult855)::ok_type> ); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit ) .mapErr(mapNoDeviceSpaceError)" , tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 960, mozilla::dom::quota::Severity::Error); return tryResult855 .propagateErr(); }} | ||||
| 960 | .mapErr(mapNoDeviceSpaceError)){auto tryResult855 = (::mozilla::ToResultInvokeMember( (transaction ), &::mozilla::detail::DerefedType<decltype(transaction )>::Commit ) .mapErr(mapNoDeviceSpaceError)); static_assert (std::is_empty_v<typename decltype(tryResult855)::ok_type> ); if ((__builtin_expect(!!(tryResult855.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (transaction), &::mozilla::detail::DerefedType<decltype(transaction)>::Commit ) .mapErr(mapNoDeviceSpaceError)" , tryResult855.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 960, mozilla::dom::quota::Severity::Error); return tryResult855 .propagateErr(); }}; | ||||
| 961 | |||||
| 962 | #ifdef DEBUG1 | ||||
| 963 | if (!newDatabase) { | ||||
| 964 | // Re-enable foreign key support after doing a foreign key check. | ||||
| 965 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult856 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult856.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult856.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult856.inspect(); | ||||
| 966 | CreateAndExecuteSingleStepStatement<auto tryResult856 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult856.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult856.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult856.inspect(); | ||||
| 967 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult856 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult856.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult856.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult856.inspect(); | ||||
| 968 | *connection, "PRAGMA foreign_key_check;"_ns),auto tryResult856 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult856.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult856.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult856.inspect(); | ||||
| 969 | QM_ASSERT_UNREACHABLE)auto tryResult856 = (CreateAndExecuteSingleStepStatement< SingleStepResult ::ReturnNullIfNoResult>( *connection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult856.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult856.unwrapErr(); mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969, mozilla::dom::quota::Severity::Error); [[maybe_unused] ] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, [](const char*, const char*) -> ::mozilla:: GenericErrorResult<nsresult> { do { do { } while (false ); MOZ_ReportCrash("" "Should never be reached.", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 969); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 969); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const bool & foreignKeyError = tryResult856.inspect();; | ||||
| 970 | |||||
| 971 | MOZ_ASSERT(!foreignKeyError, "Database has inconsisistent foreign keys!")do { static_assert( mozilla::detail::AssertionConditionType< decltype(!foreignKeyError)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!foreignKeyError))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!foreignKeyError" " (" "Database has inconsisistent foreign keys!" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 971); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError" ") (" "Database has inconsisistent foreign keys!" ")"); do { MOZ_CrashSequence(__null, 971); __attribute__((nomerge)) ::abort (); } while (false); } } while (false); | ||||
| 972 | |||||
| 973 | MOZ_ALWAYS_SUCCEEDS(do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 974); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { MOZ_CrashSequence(__null, 974); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 974 | connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (connection->ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns ))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash ("" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 974); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" ")"); do { MOZ_CrashSequence(__null, 974); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 975 | } | ||||
| 976 | #endif | ||||
| 977 | |||||
| 978 | if (kSQLitePageSizeOverride && !newDatabase) { | ||||
| 979 | QM_TRY_INSPECT(const auto& stmt,auto tryResult857 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult857 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 981, mozilla::dom::quota::Severity::Error); return tryResult857 .propagateErr(); } const auto& stmt = tryResult857.inspect (); | ||||
| 980 | CreateAndExecuteSingleStepStatement(auto tryResult857 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult857 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 981, mozilla::dom::quota::Severity::Error); return tryResult857 .propagateErr(); } const auto& stmt = tryResult857.inspect (); | ||||
| 981 | *connection, "PRAGMA page_size;"_ns))auto tryResult857 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA page_size;"_ns)); if ((__builtin_expect(!!(tryResult857 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA page_size;\"_ns)" , tryResult857.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 981, mozilla::dom::quota::Severity::Error); return tryResult857 .propagateErr(); } const auto& stmt = tryResult857.inspect ();; | ||||
| 982 | |||||
| 983 | QM_TRY_INSPECT(const int32_t& pageSize,auto tryResult858 = (::mozilla::ToResultInvokeMember( (*stmt) , &::mozilla::detail::DerefedType<decltype(*stmt)>:: GetInt32 , 0)); if ((__builtin_expect(!!(tryResult858.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 984, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const int32_t& pageSize = tryResult858 .inspect(); | ||||
| 984 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult858 = (::mozilla::ToResultInvokeMember( (*stmt) , &::mozilla::detail::DerefedType<decltype(*stmt)>:: GetInt32 , 0)); if ((__builtin_expect(!!(tryResult858.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult858.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 984, mozilla::dom::quota::Severity::Error); return tryResult858 .propagateErr(); } const int32_t& pageSize = tryResult858 .inspect();; | ||||
| 985 | MOZ_ASSERT(pageSize >= 512 && pageSize <= 65536)do { static_assert( mozilla::detail::AssertionConditionType< decltype(pageSize >= 512 && pageSize <= 65536)> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(pageSize >= 512 && pageSize <= 65536)) ), 0))) { do { } while (false); MOZ_ReportAssertionFailure("pageSize >= 512 && pageSize <= 65536" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 985); AnnotateMozCrashReason("MOZ_ASSERT" "(" "pageSize >= 512 && pageSize <= 65536" ")"); do { MOZ_CrashSequence(__null, 985); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 986 | |||||
| 987 | if (kSQLitePageSizeOverride != uint32_t(pageSize)) { | ||||
| 988 | // We must not be in WAL journal mode to change the page size. | ||||
| 989 | QM_TRY(MOZ_TO_RESULT({auto tryResult859 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult859)::ok_type>); if ((__builtin_expect (!!(tryResult859.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))" , tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 990, mozilla::dom::quota::Severity::Error); return tryResult859 .propagateErr(); }} | ||||
| 990 | connection->ExecuteSimpleSQL("PRAGMA journal_mode = DELETE;"_ns))){auto tryResult859 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA journal_mode = DELETE;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult859)::ok_type>); if ((__builtin_expect (!!(tryResult859.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA journal_mode = DELETE;\"_ns))" , tryResult859.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 990, mozilla::dom::quota::Severity::Error); return tryResult859 .propagateErr(); }}; | ||||
| 991 | |||||
| 992 | QM_TRY_INSPECT(const auto& stmt,auto tryResult860 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult860 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 994, mozilla::dom::quota::Severity::Error); return tryResult860 .propagateErr(); } const auto& stmt = tryResult860.inspect (); | ||||
| 993 | CreateAndExecuteSingleStepStatement(auto tryResult860 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult860 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 994, mozilla::dom::quota::Severity::Error); return tryResult860 .propagateErr(); } const auto& stmt = tryResult860.inspect (); | ||||
| 994 | *connection, "PRAGMA journal_mode;"_ns))auto tryResult860 = (CreateAndExecuteSingleStepStatement( *connection , "PRAGMA journal_mode;"_ns)); if ((__builtin_expect(!!(tryResult860 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( *connection, \"PRAGMA journal_mode;\"_ns)" , tryResult860.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 994, mozilla::dom::quota::Severity::Error); return tryResult860 .propagateErr(); } const auto& stmt = tryResult860.inspect ();; | ||||
| 995 | |||||
| 996 | QM_TRY_INSPECT(const auto& journalMode,auto tryResult861 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult861.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult861.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 998, mozilla::dom::quota::Severity::Error); return tryResult861 .propagateErr(); } const auto& journalMode = tryResult861 .inspect(); | ||||
| 997 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCString, *stmt,auto tryResult861 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult861.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult861.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 998, mozilla::dom::quota::Severity::Error); return tryResult861 .propagateErr(); } const auto& journalMode = tryResult861 .inspect(); | ||||
| 998 | GetUTF8String, 0))auto tryResult861 = (::mozilla::ToResultInvoke< nsCString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (*stmt)>::GetUTF8String), (*stmt), 0)); if ((__builtin_expect (!!(tryResult861.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(*stmt)>::GetUTF8String), (*stmt), 0)" , tryResult861.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 998, mozilla::dom::quota::Severity::Error); return tryResult861 .propagateErr(); } const auto& journalMode = tryResult861 .inspect();; | ||||
| 999 | |||||
| 1000 | if (journalMode.EqualsLiteral("delete")) { | ||||
| 1001 | // Successfully set to rollback journal mode so changing the page size | ||||
| 1002 | // is possible with a VACUUM. | ||||
| 1003 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL(nsPrintfCString({auto tryResult862 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult862 )::ok_type>); if ((__builtin_expect(!!(tryResult862.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))" , tryResult862.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1004, mozilla::dom::quota::Severity::Error); return tryResult862 .propagateErr(); }} | ||||
| 1004 | "PRAGMA page_size = %" PRIu32 ";", kSQLitePageSizeOverride)))){auto tryResult862 = (ToResult(connection->ExecuteSimpleSQL (nsPrintfCString( "PRAGMA page_size = %" "u" ";", kSQLitePageSizeOverride )))); static_assert(std::is_empty_v<typename decltype(tryResult862 )::ok_type>); if ((__builtin_expect(!!(tryResult862.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(nsPrintfCString( \"PRAGMA page_size = %\" \"u\" \";\", kSQLitePageSizeOverride)))" , tryResult862.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1004, mozilla::dom::quota::Severity::Error); return tryResult862 .propagateErr(); }}; | ||||
| 1005 | |||||
| 1006 | // We will need to VACUUM in order to change the page size. | ||||
| 1007 | vacuumNeeded = true; | ||||
| 1008 | } else { | ||||
| 1009 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1011) | ||||
| 1010 | "Failed to set journal_mode for database, unable to "NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1011) | ||||
| 1011 | "change the page size!")NS_DebugBreak(NS_DEBUG_WARNING, "Failed to set journal_mode for database, unable to " "change the page size!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1011); | ||||
| 1012 | } | ||||
| 1013 | } | ||||
| 1014 | } | ||||
| 1015 | |||||
| 1016 | if (vacuumNeeded) { | ||||
| 1017 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("VACUUM;"_ns))){auto tryResult863 = (ToResult(connection->ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult863)::ok_type>); if ((__builtin_expect(!!(tryResult863 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult863.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1017, mozilla::dom::quota::Severity::Error); return tryResult863 .propagateErr(); }}; | ||||
| 1018 | } | ||||
| 1019 | |||||
| 1020 | if (newDatabase || vacuumNeeded) { | ||||
| 1021 | if (journalModeSet) { | ||||
| 1022 | // Make sure we checkpoint to get an accurate file size. | ||||
| 1023 | QM_TRY(MOZ_TO_RESULT({auto tryResult864 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult864)::ok_type>); if ((__builtin_expect (!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))" , tryResult864.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1024, mozilla::dom::quota::Severity::Error); return tryResult864 .propagateErr(); }} | ||||
| 1024 | connection->ExecuteSimpleSQL("PRAGMA wal_checkpoint(FULL);"_ns))){auto tryResult864 = (ToResult(connection->ExecuteSimpleSQL ("PRAGMA wal_checkpoint(FULL);"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult864)::ok_type>); if ((__builtin_expect (!!(tryResult864.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"PRAGMA wal_checkpoint(FULL);\"_ns))" , tryResult864.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1024, mozilla::dom::quota::Severity::Error); return tryResult864 .propagateErr(); }}; | ||||
| 1025 | } | ||||
| 1026 | |||||
| 1027 | QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult865 = (::mozilla::ToResultInvokeMember( (aDBFile ), &::mozilla::detail::DerefedType<decltype(aDBFile)> ::GetFileSize )); if ((__builtin_expect(!!(tryResult865.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize )" , tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1028, mozilla::dom::quota::Severity::Error); return tryResult865 .propagateErr(); } const int64_t& fileSize = tryResult865 .inspect(); | ||||
| 1028 | MOZ_TO_RESULT_INVOKE_MEMBER(aDBFile, GetFileSize))auto tryResult865 = (::mozilla::ToResultInvokeMember( (aDBFile ), &::mozilla::detail::DerefedType<decltype(aDBFile)> ::GetFileSize )); if ((__builtin_expect(!!(tryResult865.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDBFile), &::mozilla::detail::DerefedType<decltype(aDBFile)>::GetFileSize )" , tryResult865.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1028, mozilla::dom::quota::Severity::Error); return tryResult865 .propagateErr(); } const int64_t& fileSize = tryResult865 .inspect();; | ||||
| 1029 | MOZ_ASSERT(fileSize > 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(fileSize > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(fileSize > 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("fileSize > 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1029) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize > 0" ")" ); do { MOZ_CrashSequence(__null, 1029); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1030 | |||||
| 1031 | PRTime vacuumTime = PR_Now(); | ||||
| 1032 | MOZ_ASSERT(vacuumTime)do { static_assert( mozilla::detail::AssertionConditionType< decltype(vacuumTime)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(vacuumTime))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("vacuumTime", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1032); AnnotateMozCrashReason("MOZ_ASSERT" "(" "vacuumTime" ")"); do { MOZ_CrashSequence(__null, 1032); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1033 | |||||
| 1034 | // The parameter names are not used, parameters are bound by index only | ||||
| 1035 | // locally in the same function. | ||||
| 1036 | QM_TRY_INSPECT(auto tryResult866 = (::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(!! (tryResult866.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)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& vacuumTimeStmt = tryResult866 .inspect(); | ||||
| 1037 | const auto& vacuumTimeStmt,auto tryResult866 = (::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(!! (tryResult866.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)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& vacuumTimeStmt = tryResult866 .inspect(); | ||||
| 1038 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsCOMPtr<mozIStorageStatement>,auto tryResult866 = (::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(!! (tryResult866.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)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& vacuumTimeStmt = tryResult866 .inspect(); | ||||
| 1039 | connection, CreateStatement,auto tryResult866 = (::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(!! (tryResult866.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)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& vacuumTimeStmt = tryResult866 .inspect(); | ||||
| 1040 | "UPDATE database "auto tryResult866 = (::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(!! (tryResult866.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)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& vacuumTimeStmt = tryResult866 .inspect(); | ||||
| 1041 | "SET last_vacuum_time = :time"auto tryResult866 = (::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(!! (tryResult866.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)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& vacuumTimeStmt = tryResult866 .inspect(); | ||||
| 1042 | ", last_vacuum_size = :size;"_ns))auto tryResult866 = (::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(!! (tryResult866.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)" , tryResult866.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1042, mozilla::dom::quota::Severity::Error); return tryResult866 .propagateErr(); } const auto& vacuumTimeStmt = tryResult866 .inspect();; | ||||
| 1043 | |||||
| 1044 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))){auto tryResult867 = (ToResult(vacuumTimeStmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult867)::ok_type>); if ((__builtin_expect(!!(tryResult867 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(0, vacuumTime))" , tryResult867.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1044, mozilla::dom::quota::Severity::Error); return tryResult867 .propagateErr(); }}; | ||||
| 1045 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))){auto tryResult868 = (ToResult(vacuumTimeStmt->BindInt64ByIndex (1, fileSize))); static_assert(std::is_empty_v<typename decltype (tryResult868)::ok_type>); if ((__builtin_expect(!!(tryResult868 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->BindInt64ByIndex(1, fileSize))" , tryResult868.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1045, mozilla::dom::quota::Severity::Error); return tryResult868 .propagateErr(); }}; | ||||
| 1046 | QM_TRY(MOZ_TO_RESULT(vacuumTimeStmt->Execute())){auto tryResult869 = (ToResult(vacuumTimeStmt->Execute())) ; static_assert(std::is_empty_v<typename decltype(tryResult869 )::ok_type>); if ((__builtin_expect(!!(tryResult869.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(vacuumTimeStmt->Execute())" , tryResult869.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1046, mozilla::dom::quota::Severity::Error); return tryResult869 .propagateErr(); }}; | ||||
| 1047 | } | ||||
| 1048 | } | ||||
| 1049 | |||||
| 1050 | if (!journalModeSet) { | ||||
| 1051 | 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" , 1051, mozilla::dom::quota::Severity::Error); return tryResult870 .propagateErr(); }}; | ||||
| 1052 | } | ||||
| 1053 | |||||
| 1054 | return WrapMovingNotNullUnchecked(std::move(connection)); | ||||
| 1055 | } | ||||
| 1056 | |||||
| 1057 | nsCOMPtr<nsIFile> GetFileForPath(const nsAString& aPath) { | ||||
| 1058 | MOZ_ASSERT(!aPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aPath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aPath.IsEmpty()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!aPath.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1058) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")" ); do { MOZ_CrashSequence(__null, 1058); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1059 | |||||
| 1060 | QM_TRY_RETURN(QM_NewLocalFile(aPath), nullptr){auto tryResult871 = (QM_NewLocalFile(aPath)); if ((__builtin_expect (!!(tryResult871.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult871.unwrapErr(); mozilla::dom::quota::HandleError ("QM_NewLocalFile(aPath)", tryResult871.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1060, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "QM_NewLocalFile(aPath)" , tryTempError, nullptr); } return tryResult871.unwrap();}; | ||||
| 1061 | } | ||||
| 1062 | |||||
| 1063 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | ||||
| 1064 | GetStorageConnection(nsIFile& aDatabaseFile, const int64_t aDirectoryLockId, | ||||
| 1065 | const uint32_t aTelemetryId, | ||||
| 1066 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 1067 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1067) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 1067); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1068 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1068) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 1068); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1069 | MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1069) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0" ")"); do { MOZ_CrashSequence(__null, 1069); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1070 | |||||
| 1071 | AUTO_PROFILER_LABEL("GetStorageConnection", DOM)mozilla::AutoProfilerLabel raiiObject1071( "GetStorageConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 1072 | |||||
| 1073 | QM_TRY_INSPECT(const bool& exists,auto tryResult872 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::Exists )); if ((__builtin_expect(!!(tryResult872.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists )" , tryResult872.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1074, mozilla::dom::quota::Severity::Error); return tryResult872 .propagateErr(); } const bool& exists = tryResult872.inspect (); | ||||
| 1074 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, Exists))auto tryResult872 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::Exists )); if ((__builtin_expect(!!(tryResult872.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::Exists )" , tryResult872.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1074, mozilla::dom::quota::Severity::Error); return tryResult872 .propagateErr(); } const bool& exists = tryResult872.inspect ();; | ||||
| 1075 | |||||
| 1076 | QM_TRY(OkIf(exists), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult873 = (OkIf(exists)); static_assert(std::is_empty_v <typename decltype(tryResult873)::ok_type>); if ((__builtin_expect (!!(tryResult873.isErr()), 0))) { auto tryTempError = tryResult873 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1077, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1077, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(exists)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 1077 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult873 = (OkIf(exists)); static_assert(std::is_empty_v <typename decltype(tryResult873)::ok_type>); if ((__builtin_expect (!!(tryResult873.isErr()), 0))) { auto tryTempError = tryResult873 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(exists)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1077, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1077, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(exists)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 1078 | |||||
| 1079 | QM_TRY_INSPECT(auto tryResult874 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult874.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1081, mozilla::dom::quota::Severity::Error); return tryResult874 .propagateErr(); } const auto& dbFileUrl = tryResult874.inspect (); | ||||
| 1080 | const auto& dbFileUrl,auto tryResult874 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult874.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1081, mozilla::dom::quota::Severity::Error); return tryResult874 .propagateErr(); } const auto& dbFileUrl = tryResult874.inspect (); | ||||
| 1081 | GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey))auto tryResult874 = (GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId , aMaybeKey)); if ((__builtin_expect(!!(tryResult874.isErr()) , 0))) { mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, aDirectoryLockId, aMaybeKey)" , tryResult874.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1081, mozilla::dom::quota::Severity::Error); return tryResult874 .propagateErr(); } const auto& dbFileUrl = tryResult874.inspect ();; | ||||
| 1082 | |||||
| 1083 | QM_TRY_INSPECT(const auto& storageService,auto tryResult875 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult875.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\")" , tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1086, mozilla::dom::quota::Severity::Error); return tryResult875 .propagateErr(); } const auto& storageService = tryResult875 .inspect(); | ||||
| 1084 | MOZ_TO_RESULT_GET_TYPED(nsCOMPtr<mozIStorageService>,auto tryResult875 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult875.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\")" , tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1086, mozilla::dom::quota::Severity::Error); return tryResult875 .propagateErr(); } const auto& storageService = tryResult875 .inspect(); | ||||
| 1085 | MOZ_SELECT_OVERLOAD(do_GetService),auto tryResult875 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult875.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\")" , tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1086, mozilla::dom::quota::Severity::Error); return tryResult875 .propagateErr(); } const auto& storageService = tryResult875 .inspect(); | ||||
| 1086 | MOZ_STORAGE_SERVICE_CONTRACTID))auto tryResult875 = (::mozilla::ToResultGet< nsCOMPtr<mozIStorageService > >([](auto&&... aArgs) -> decltype(auto) { return do_GetService(std::forward<decltype(aArgs)>(aArgs)...) ; }, "@mozilla.org/storage/service;1")); if ((__builtin_expect (!!(tryResult875.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\")" , tryResult875.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1086, mozilla::dom::quota::Severity::Error); return tryResult875 .propagateErr(); } const auto& storageService = tryResult875 .inspect();; | ||||
| 1087 | |||||
| 1088 | QM_TRY_UNWRAP(auto tryResult876 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult876 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1090, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult876.unwrap(); | ||||
| 1089 | nsCOMPtr<mozIStorageConnection> connection,auto tryResult876 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult876 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1090, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult876.unwrap(); | ||||
| 1090 | OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId))auto tryResult876 = (OpenDatabaseAndHandleBusy(*storageService , *dbFileUrl, aTelemetryId)); if ((__builtin_expect(!!(tryResult876 .isErr()), 0))) { mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*storageService, *dbFileUrl, aTelemetryId)" , tryResult876.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1090, mozilla::dom::quota::Severity::Error); return tryResult876 .propagateErr(); } nsCOMPtr<mozIStorageConnection> connection = tryResult876.unwrap();; | ||||
| 1091 | |||||
| 1092 | QM_TRY(MOZ_TO_RESULT(SetDefaultPragmas(*connection))){auto tryResult877 = (ToResult(SetDefaultPragmas(*connection) )); static_assert(std::is_empty_v<typename decltype(tryResult877 )::ok_type>); if ((__builtin_expect(!!(tryResult877.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(SetDefaultPragmas(*connection))" , tryResult877.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1092, mozilla::dom::quota::Severity::Error); return tryResult877 .propagateErr(); }}; | ||||
| 1093 | |||||
| 1094 | QM_TRY(MOZ_TO_RESULT(SetJournalMode(*connection))){auto tryResult878 = (ToResult(SetJournalMode(*connection))); static_assert(std::is_empty_v<typename decltype(tryResult878 )::ok_type>); if ((__builtin_expect(!!(tryResult878.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(SetJournalMode(*connection))" , tryResult878.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1094, mozilla::dom::quota::Severity::Error); return tryResult878 .propagateErr(); }}; | ||||
| 1095 | |||||
| 1096 | return WrapMovingNotNullUnchecked(std::move(connection)); | ||||
| 1097 | } | ||||
| 1098 | |||||
| 1099 | Result<MovingNotNull<nsCOMPtr<mozIStorageConnection>>, nsresult> | ||||
| 1100 | GetStorageConnection(const nsAString& aDatabaseFilePath, | ||||
| 1101 | const int64_t aDirectoryLockId, | ||||
| 1102 | const uint32_t aTelemetryId, | ||||
| 1103 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 1104 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1104) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 1104); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1105 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1105) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 1105); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1106 | MOZ_ASSERT(!aDatabaseFilePath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseFilePath.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseFilePath.IsEmpty() ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "!aDatabaseFilePath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1106); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilePath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 1106); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1107 | MOZ_ASSERT(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))do { static_assert( mozilla::detail::AssertionConditionType< decltype(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix))> ::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1107) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(aDatabaseFilePath, kSQLiteSuffix)" ")"); do { MOZ_CrashSequence(__null, 1107); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1108 | MOZ_ASSERT(aDirectoryLockId >= 0)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDirectoryLockId >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDirectoryLockId >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDirectoryLockId >= 0" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1108) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectoryLockId >= 0" ")"); do { MOZ_CrashSequence(__null, 1108); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1109 | |||||
| 1110 | nsCOMPtr<nsIFile> dbFile = GetFileForPath(aDatabaseFilePath); | ||||
| 1111 | |||||
| 1112 | QM_TRY(OkIf(dbFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult879 = (OkIf(dbFile)); static_assert(std::is_empty_v <typename decltype(tryResult879)::ok_type>); if ((__builtin_expect (!!(tryResult879.isErr()), 0))) { auto tryTempError = tryResult879 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1113, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1113, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 1113 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult879 = (OkIf(dbFile)); static_assert(std::is_empty_v <typename decltype(tryResult879)::ok_type>); if ((__builtin_expect (!!(tryResult879.isErr()), 0))) { auto tryTempError = tryResult879 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(dbFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1113, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1113, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(dbFile)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }}; | ||||
| 1114 | |||||
| 1115 | return GetStorageConnection(*dbFile, aDirectoryLockId, aTelemetryId, | ||||
| 1116 | aMaybeKey); | ||||
| 1117 | } | ||||
| 1118 | |||||
| 1119 | /******************************************************************************* | ||||
| 1120 | * ConnectionPool declarations | ||||
| 1121 | ******************************************************************************/ | ||||
| 1122 | |||||
| 1123 | class DatabaseConnection final : public CachingDatabaseConnection { | ||||
| 1124 | friend class ConnectionPool; | ||||
| 1125 | |||||
| 1126 | enum class CheckpointMode { Full, Restart, Truncate }; | ||||
| 1127 | |||||
| 1128 | public: | ||||
| 1129 | class AutoSavepoint; | ||||
| 1130 | class UpdateRefcountFunction; | ||||
| 1131 | |||||
| 1132 | private: | ||||
| 1133 | InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileManager>>> mFileManager; | ||||
| 1134 | RefPtr<UpdateRefcountFunction> mUpdateRefcountFunction; | ||||
| 1135 | RefPtr<QuotaObject> mQuotaObject; | ||||
| 1136 | RefPtr<QuotaObject> mJournalQuotaObject; | ||||
| 1137 | IDBTransaction::Durability mLastDurability; | ||||
| 1138 | bool mInReadTransaction; | ||||
| 1139 | bool mInWriteTransaction; | ||||
| 1140 | |||||
| 1141 | #ifdef DEBUG1 | ||||
| 1142 | uint32_t mDEBUGSavepointCount; | ||||
| 1143 | #endif | ||||
| 1144 | |||||
| 1145 | public: | ||||
| 1146 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(DatabaseConnection)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<DatabaseConnection>, "Reference-counted class " "DatabaseConnection" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1146); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 1146 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("DatabaseConnection"), (uint32_t)(sizeof(*this))); return (nsrefcnt)count; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType< decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1146); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 1146 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("DatabaseConnection")); if (count == 0) { delete (this ); return 0; } return count; } using HasThreadSafeRefCnt = std ::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt ; public: | ||||
| 1147 | |||||
| 1148 | UpdateRefcountFunction* GetUpdateRefcountFunction() const { | ||||
| 1149 | AssertIsOnConnectionThread(); | ||||
| 1150 | |||||
| 1151 | return mUpdateRefcountFunction; | ||||
| 1152 | } | ||||
| 1153 | |||||
| 1154 | nsresult BeginWriteTransaction(const IDBTransaction::Durability aDurability); | ||||
| 1155 | |||||
| 1156 | nsresult CommitWriteTransaction(); | ||||
| 1157 | |||||
| 1158 | void RollbackWriteTransaction(); | ||||
| 1159 | |||||
| 1160 | void FinishWriteTransaction(); | ||||
| 1161 | |||||
| 1162 | nsresult StartSavepoint(); | ||||
| 1163 | |||||
| 1164 | nsresult ReleaseSavepoint(); | ||||
| 1165 | |||||
| 1166 | nsresult RollbackSavepoint(); | ||||
| 1167 | |||||
| 1168 | nsresult Checkpoint() { | ||||
| 1169 | AssertIsOnConnectionThread(); | ||||
| 1170 | |||||
| 1171 | return CheckpointInternal(CheckpointMode::Full); | ||||
| 1172 | } | ||||
| 1173 | |||||
| 1174 | void DoIdleProcessing(bool aNeedsCheckpoint, | ||||
| 1175 | const Atomic<bool>& aInterrupted); | ||||
| 1176 | |||||
| 1177 | void Close(); | ||||
| 1178 | |||||
| 1179 | nsresult DisableQuotaChecks(); | ||||
| 1180 | |||||
| 1181 | void EnableQuotaChecks(); | ||||
| 1182 | |||||
| 1183 | private: | ||||
| 1184 | DatabaseConnection( | ||||
| 1185 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection, | ||||
| 1186 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager); | ||||
| 1187 | |||||
| 1188 | ~DatabaseConnection(); | ||||
| 1189 | |||||
| 1190 | nsresult Init(); | ||||
| 1191 | |||||
| 1192 | nsresult CheckpointInternal(CheckpointMode aMode); | ||||
| 1193 | |||||
| 1194 | Result<uint32_t, nsresult> GetFreelistCount( | ||||
| 1195 | CachedStatement& aCachedStatement); | ||||
| 1196 | |||||
| 1197 | /** | ||||
| 1198 | * On success, returns whether some pages were freed. | ||||
| 1199 | */ | ||||
| 1200 | Result<bool, nsresult> ReclaimFreePagesWhileIdle( | ||||
| 1201 | CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement, | ||||
| 1202 | uint32_t aFreelistCount, bool aNeedsCheckpoint, | ||||
| 1203 | const Atomic<bool>& aInterrupted); | ||||
| 1204 | |||||
| 1205 | Result<int64_t, nsresult> GetFileSize(const nsAString& aPath); | ||||
| 1206 | }; | ||||
| 1207 | |||||
| 1208 | class MOZ_STACK_CLASS DatabaseConnection::AutoSavepoint final { | ||||
| 1209 | DatabaseConnection* mConnection; | ||||
| 1210 | #ifdef DEBUG1 | ||||
| 1211 | const TransactionBase* mDEBUGTransaction; | ||||
| 1212 | #endif | ||||
| 1213 | |||||
| 1214 | public: | ||||
| 1215 | AutoSavepoint(); | ||||
| 1216 | ~AutoSavepoint(); | ||||
| 1217 | |||||
| 1218 | nsresult Start(const TransactionBase& aTransaction); | ||||
| 1219 | |||||
| 1220 | nsresult Commit(); | ||||
| 1221 | }; | ||||
| 1222 | |||||
| 1223 | class DatabaseConnection::UpdateRefcountFunction final | ||||
| 1224 | : public mozIStorageFunction { | ||||
| 1225 | class FileInfoEntry; | ||||
| 1226 | |||||
| 1227 | enum class UpdateType { Increment, Decrement }; | ||||
| 1228 | |||||
| 1229 | DatabaseConnection* const mConnection; | ||||
| 1230 | DatabaseFileManager& mFileManager; | ||||
| 1231 | nsClassHashtable<nsUint64HashKey, FileInfoEntry> mFileInfoEntries; | ||||
| 1232 | nsTHashMap<nsUint64HashKey, NotNull<FileInfoEntry*>> mSavepointEntriesIndex; | ||||
| 1233 | |||||
| 1234 | nsTArray<int64_t> mJournalsToCreateBeforeCommit; | ||||
| 1235 | nsTArray<int64_t> mJournalsToRemoveAfterCommit; | ||||
| 1236 | nsTArray<int64_t> mJournalsToRemoveAfterAbort; | ||||
| 1237 | |||||
| 1238 | bool mInSavepoint; | ||||
| 1239 | |||||
| 1240 | public: | ||||
| 1241 | NS_DECL_ISUPPORTS_ONEVENTTARGETpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; using HasThreadSafeRefCnt = std::false_type; protected: nsAutoRefCnt mRefCnt; nsAutoOwningEventTarget _mOwningThread ; public: | ||||
| 1242 | NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments , nsIVariant **_retval) override; | ||||
| 1243 | |||||
| 1244 | UpdateRefcountFunction(DatabaseConnection* aConnection, | ||||
| 1245 | DatabaseFileManager& aFileManager); | ||||
| 1246 | |||||
| 1247 | nsresult WillCommit(); | ||||
| 1248 | |||||
| 1249 | void DidCommit(); | ||||
| 1250 | |||||
| 1251 | void DidAbort(); | ||||
| 1252 | |||||
| 1253 | void StartSavepoint(); | ||||
| 1254 | |||||
| 1255 | void ReleaseSavepoint(); | ||||
| 1256 | |||||
| 1257 | void RollbackSavepoint(); | ||||
| 1258 | |||||
| 1259 | void Reset(); | ||||
| 1260 | |||||
| 1261 | private: | ||||
| 1262 | ~UpdateRefcountFunction() = default; | ||||
| 1263 | |||||
| 1264 | nsresult ProcessValue(mozIStorageValueArray* aValues, int32_t aIndex, | ||||
| 1265 | UpdateType aUpdateType); | ||||
| 1266 | |||||
| 1267 | nsresult CreateJournals(); | ||||
| 1268 | |||||
| 1269 | nsresult RemoveJournals(const nsTArray<int64_t>& aJournals); | ||||
| 1270 | }; | ||||
| 1271 | |||||
| 1272 | class DatabaseConnection::UpdateRefcountFunction::FileInfoEntry final { | ||||
| 1273 | SafeRefPtr<DatabaseFileInfo> mFileInfo; | ||||
| 1274 | int32_t mDelta; | ||||
| 1275 | int32_t mSavepointDelta; | ||||
| 1276 | |||||
| 1277 | public: | ||||
| 1278 | explicit FileInfoEntry(SafeRefPtr<DatabaseFileInfo> aFileInfo) | ||||
| 1279 | : mFileInfo(std::move(aFileInfo)), mDelta(0), mSavepointDelta(0) { | ||||
| 1280 | MOZ_COUNT_CTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction ::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry >, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" , sizeof(*this)); } while (0); | ||||
| 1281 | } | ||||
| 1282 | |||||
| 1283 | void IncDeltas(bool aUpdateSavepointDelta) { | ||||
| 1284 | ++mDelta; | ||||
| 1285 | if (aUpdateSavepointDelta) { | ||||
| 1286 | ++mSavepointDelta; | ||||
| 1287 | } | ||||
| 1288 | } | ||||
| 1289 | void DecDeltas(bool aUpdateSavepointDelta) { | ||||
| 1290 | --mDelta; | ||||
| 1291 | if (aUpdateSavepointDelta) { | ||||
| 1292 | --mSavepointDelta; | ||||
| 1293 | } | ||||
| 1294 | } | ||||
| 1295 | void DecBySavepointDelta() { mDelta -= mSavepointDelta; } | ||||
| 1296 | void ResetSavepointDelta() { mSavepointDelta = 0; } | ||||
| 1297 | SafeRefPtr<DatabaseFileInfo> ReleaseFileInfo() { | ||||
| 1298 | return std::move(mFileInfo); | ||||
| 1299 | } | ||||
| 1300 | void MaybeUpdateDBRefs() { | ||||
| 1301 | if (mDelta) { | ||||
| 1302 | mFileInfo->UpdateDBRefs(mDelta); | ||||
| 1303 | } | ||||
| 1304 | } | ||||
| 1305 | |||||
| 1306 | int32_t Delta() const { return mDelta; } | ||||
| 1307 | int32_t SavepointDelta() const { return mSavepointDelta; } | ||||
| 1308 | |||||
| 1309 | ~FileInfoEntry() { | ||||
| 1310 | MOZ_COUNT_DTOR(DatabaseConnection::UpdateRefcountFunction::FileInfoEntry)do { static_assert(std::is_class_v<DatabaseConnection::UpdateRefcountFunction ::FileInfoEntry>, "Token '" "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, DatabaseConnection::UpdateRefcountFunction::FileInfoEntry >, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "DatabaseConnection::UpdateRefcountFunction::FileInfoEntry" , sizeof(*this)); } while (0); | ||||
| 1311 | } | ||||
| 1312 | }; | ||||
| 1313 | |||||
| 1314 | class ConnectionPool final { | ||||
| 1315 | public: | ||||
| 1316 | class FinishCallback; | ||||
| 1317 | |||||
| 1318 | private: | ||||
| 1319 | class ConnectionRunnable; | ||||
| 1320 | class CloseConnectionRunnable; | ||||
| 1321 | struct DatabaseInfo; | ||||
| 1322 | struct DatabaseCompleteCallback; | ||||
| 1323 | class FinishCallbackWrapper; | ||||
| 1324 | class IdleConnectionRunnable; | ||||
| 1325 | |||||
| 1326 | #ifdef DEBUG1 | ||||
| 1327 | class TransactionRunnable; | ||||
| 1328 | #endif | ||||
| 1329 | class TransactionInfo; | ||||
| 1330 | struct TransactionInfoPair; | ||||
| 1331 | |||||
| 1332 | struct IdleResource { | ||||
| 1333 | TimeStamp mIdleTime; | ||||
| 1334 | |||||
| 1335 | IdleResource(const IdleResource& aOther) = delete; | ||||
| 1336 | IdleResource(IdleResource&& aOther) noexcept | ||||
| 1337 | : IdleResource(aOther.mIdleTime) {} | ||||
| 1338 | IdleResource& operator=(const IdleResource& aOther) = delete; | ||||
| 1339 | IdleResource& operator=(IdleResource&& aOther) = delete; | ||||
| 1340 | |||||
| 1341 | protected: | ||||
| 1342 | explicit IdleResource(const TimeStamp& aIdleTime); | ||||
| 1343 | |||||
| 1344 | ~IdleResource(); | ||||
| 1345 | }; | ||||
| 1346 | |||||
| 1347 | struct IdleDatabaseInfo final : public IdleResource { | ||||
| 1348 | InitializedOnce<const NotNull<DatabaseInfo*>> mDatabaseInfo; | ||||
| 1349 | |||||
| 1350 | public: | ||||
| 1351 | explicit IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo); | ||||
| 1352 | |||||
| 1353 | IdleDatabaseInfo(const IdleDatabaseInfo& aOther) = delete; | ||||
| 1354 | IdleDatabaseInfo(IdleDatabaseInfo&& aOther) noexcept | ||||
| 1355 | : IdleResource(std::move(aOther)), | ||||
| 1356 | mDatabaseInfo{std::move(aOther.mDatabaseInfo)} { | ||||
| 1357 | MOZ_ASSERT(mDatabaseInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1357); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo" ")") ; do { MOZ_CrashSequence(__null, 1357); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1358 | |||||
| 1359 | MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::IdleDatabaseInfo >, "Token '" "ConnectionPool::IdleDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, ConnectionPool ::IdleDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::IdleDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 1360 | } | ||||
| 1361 | IdleDatabaseInfo& operator=(const IdleDatabaseInfo& aOther) = delete; | ||||
| 1362 | IdleDatabaseInfo& operator=(IdleDatabaseInfo&& aOther) = delete; | ||||
| 1363 | |||||
| 1364 | ~IdleDatabaseInfo(); | ||||
| 1365 | |||||
| 1366 | bool operator==(const IdleDatabaseInfo& aOther) const { | ||||
| 1367 | return *mDatabaseInfo == *aOther.mDatabaseInfo; | ||||
| 1368 | } | ||||
| 1369 | |||||
| 1370 | bool operator==(const DatabaseInfo* aDatabaseInfo) const { | ||||
| 1371 | return *mDatabaseInfo == aDatabaseInfo; | ||||
| 1372 | } | ||||
| 1373 | |||||
| 1374 | bool operator<(const IdleDatabaseInfo& aOther) const { | ||||
| 1375 | return mIdleTime < aOther.mIdleTime; | ||||
| 1376 | } | ||||
| 1377 | }; | ||||
| 1378 | |||||
| 1379 | struct PerformingIdleMaintenanceDatabaseInfo { | ||||
| 1380 | const NotNull<DatabaseInfo*> mDatabaseInfo; | ||||
| 1381 | RefPtr<IdleConnectionRunnable> mIdleConnectionRunnable; | ||||
| 1382 | |||||
| 1383 | PerformingIdleMaintenanceDatabaseInfo( | ||||
| 1384 | DatabaseInfo& aDatabaseInfo, | ||||
| 1385 | RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable); | ||||
| 1386 | |||||
| 1387 | PerformingIdleMaintenanceDatabaseInfo( | ||||
| 1388 | const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete; | ||||
| 1389 | PerformingIdleMaintenanceDatabaseInfo( | ||||
| 1390 | PerformingIdleMaintenanceDatabaseInfo&& aOther) noexcept | ||||
| 1391 | : mDatabaseInfo{aOther.mDatabaseInfo}, | ||||
| 1392 | mIdleConnectionRunnable{std::move(aOther.mIdleConnectionRunnable)} { | ||||
| 1393 | MOZ_COUNT_CTOR(ConnectionPool::PerformingIdleMaintenanceDatabaseInfo)do { static_assert(std::is_class_v<ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "Token '" "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ConnectionPool::PerformingIdleMaintenanceDatabaseInfo >, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ConnectionPool::PerformingIdleMaintenanceDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 1394 | } | ||||
| 1395 | PerformingIdleMaintenanceDatabaseInfo& operator=( | ||||
| 1396 | const PerformingIdleMaintenanceDatabaseInfo& aOther) = delete; | ||||
| 1397 | PerformingIdleMaintenanceDatabaseInfo& operator=( | ||||
| 1398 | PerformingIdleMaintenanceDatabaseInfo&& aOther) = delete; | ||||
| 1399 | |||||
| 1400 | ~PerformingIdleMaintenanceDatabaseInfo(); | ||||
| 1401 | |||||
| 1402 | bool operator==(const DatabaseInfo* aDatabaseInfo) const { | ||||
| 1403 | return mDatabaseInfo == aDatabaseInfo; | ||||
| 1404 | } | ||||
| 1405 | }; | ||||
| 1406 | |||||
| 1407 | // This mutex guards mDatabases, see below. | ||||
| 1408 | Mutex mDatabasesMutex MOZ_UNANNOTATED; | ||||
| 1409 | |||||
| 1410 | nsCOMPtr<nsIThreadPool> mIOTarget; | ||||
| 1411 | nsTArray<IdleDatabaseInfo> mIdleDatabases; | ||||
| 1412 | nsTArray<PerformingIdleMaintenanceDatabaseInfo> | ||||
| 1413 | mDatabasesPerformingIdleMaintenance; | ||||
| 1414 | nsCOMPtr<nsITimer> mIdleTimer; | ||||
| 1415 | TimeStamp mTargetIdleTime; | ||||
| 1416 | |||||
| 1417 | // Only modifed on the owning thread, but read on multiple threads. Therefore | ||||
| 1418 | // all modifications and all reads off the owning thread must be protected by | ||||
| 1419 | // mDatabasesMutex. | ||||
| 1420 | nsClassHashtable<nsCStringHashKey, DatabaseInfo> mDatabases; | ||||
| 1421 | |||||
| 1422 | nsClassHashtable<nsUint64HashKey, TransactionInfo> mTransactions; | ||||
| 1423 | nsTArray<NotNull<TransactionInfo*>> mQueuedTransactions; | ||||
| 1424 | |||||
| 1425 | nsTArray<UniquePtr<DatabaseCompleteCallback>> mCompleteCallbacks; | ||||
| 1426 | |||||
| 1427 | uint64_t mNextTransactionId; | ||||
| 1428 | FlippedOnce<false> mShutdownRequested; | ||||
| 1429 | FlippedOnce<false> mShutdownComplete; | ||||
| 1430 | |||||
| 1431 | public: | ||||
| 1432 | ConnectionPool(); | ||||
| 1433 | |||||
| 1434 | void AssertIsOnOwningThread() const { | ||||
| 1435 | NS_ASSERT_OWNINGTHREAD(ConnectionPool)_mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe" ); | ||||
| 1436 | } | ||||
| 1437 | |||||
| 1438 | Result<RefPtr<DatabaseConnection>, nsresult> GetOrCreateConnection( | ||||
| 1439 | const Database& aDatabase); | ||||
| 1440 | |||||
| 1441 | uint64_t Start(const nsID& aBackgroundChildLoggingId, | ||||
| 1442 | const nsACString& aDatabaseId, int64_t aLoggingSerialNumber, | ||||
| 1443 | const nsTArray<nsString>& aObjectStoreNames, | ||||
| 1444 | bool aIsWriteTransaction, | ||||
| 1445 | TransactionDatabaseOperationBase* aTransactionOp); | ||||
| 1446 | |||||
| 1447 | /** | ||||
| 1448 | * Starts a new operation associated with the given transaction. | ||||
| 1449 | * | ||||
| 1450 | * This method initiates an operation by: | ||||
| 1451 | * 1. Dispatching the provided runnable to the task queue created on top of | ||||
| 1452 | * the I/O thread pool if the transaction is currently running. | ||||
| 1453 | * 2. Queuing the runnable for later execution if the transaction is not yet | ||||
| 1454 | * running. | ||||
| 1455 | * | ||||
| 1456 | * It is mandatory for all operations to call StartOp to ensure proper | ||||
| 1457 | * handling and sequencing within the transaction context. | ||||
| 1458 | * | ||||
| 1459 | * Note: | ||||
| 1460 | * - For more complex operations that involve work on other threads or require | ||||
| 1461 | * communication with content processes, StartOp should not be called again | ||||
| 1462 | * to dispatch to the task queue, as this could disrupt proper queuing and | ||||
| 1463 | * execution. | ||||
| 1464 | */ | ||||
| 1465 | void StartOp(uint64_t aTransactionId, nsCOMPtr<nsIRunnable> aRunnable); | ||||
| 1466 | |||||
| 1467 | /** | ||||
| 1468 | * Marks the completion of an operation associated with the given transaction. | ||||
| 1469 | * | ||||
| 1470 | * This method signals that the current operation has finished, allowing the | ||||
| 1471 | * next queued operation (if any) for the transaction to start. | ||||
| 1472 | */ | ||||
| 1473 | void FinishOp(uint64_t aTransactionId); | ||||
| 1474 | |||||
| 1475 | void Finish(uint64_t aTransactionId, FinishCallback* aCallback); | ||||
| 1476 | |||||
| 1477 | void CloseDatabaseWhenIdle(const nsACString& aDatabaseId) { | ||||
| 1478 | (void)CloseDatabaseWhenIdleInternal(aDatabaseId); | ||||
| 1479 | } | ||||
| 1480 | |||||
| 1481 | void WaitForDatabaseToComplete(const nsCString& aDatabaseId, | ||||
| 1482 | nsIRunnable* aCallback); | ||||
| 1483 | |||||
| 1484 | void Shutdown(); | ||||
| 1485 | |||||
| 1486 | NS_INLINE_DECL_REFCOUNTING(ConnectionPool)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<ConnectionPool>, "Reference-counted class " "ConnectionPool" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 1486 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe" ); ++mRefCnt; NS_LogAddRef((this), (mRefCnt), ("ConnectionPool" ), (uint32_t)(sizeof(*this))); return mRefCnt; } MozExternalRefCountType Release(void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 1486); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 1486 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); _mOwningThread.AssertOwnership("ConnectionPool" " not thread-safe" ); --mRefCnt; NS_LogRelease((this), (mRefCnt), ("ConnectionPool" )); if (mRefCnt == 0) { mRefCnt = 1; delete (this); return 0; } return mRefCnt; } using HasThreadSafeRefCnt = std::false_type ; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread ; public: | ||||
| 1487 | |||||
| 1488 | private: | ||||
| 1489 | ~ConnectionPool(); | ||||
| 1490 | |||||
| 1491 | static void IdleTimerCallback(nsITimer* aTimer, void* aClosure); | ||||
| 1492 | |||||
| 1493 | void Cleanup(); | ||||
| 1494 | |||||
| 1495 | void AdjustIdleTimer(); | ||||
| 1496 | |||||
| 1497 | void CancelIdleTimer(); | ||||
| 1498 | |||||
| 1499 | void CloseIdleDatabases(); | ||||
| 1500 | |||||
| 1501 | bool ScheduleTransaction(TransactionInfo& aTransactionInfo, | ||||
| 1502 | bool aFromQueuedTransactions); | ||||
| 1503 | |||||
| 1504 | void NoteFinishedTransaction(uint64_t aTransactionId); | ||||
| 1505 | |||||
| 1506 | void ScheduleQueuedTransactions(); | ||||
| 1507 | |||||
| 1508 | void NoteIdleDatabase(DatabaseInfo& aDatabaseInfo); | ||||
| 1509 | |||||
| 1510 | void NoteClosedDatabase(DatabaseInfo& aDatabaseInfo); | ||||
| 1511 | |||||
| 1512 | bool MaybeFireCallback(DatabaseCompleteCallback* aCallback); | ||||
| 1513 | |||||
| 1514 | void PerformIdleDatabaseMaintenance(DatabaseInfo& aDatabaseInfo); | ||||
| 1515 | |||||
| 1516 | void CloseDatabase(DatabaseInfo& aDatabaseInfo) const; | ||||
| 1517 | |||||
| 1518 | bool CloseDatabaseWhenIdleInternal(const nsACString& aDatabaseId); | ||||
| 1519 | }; | ||||
| 1520 | |||||
| 1521 | class ConnectionPool::ConnectionRunnable : public Runnable { | ||||
| 1522 | protected: | ||||
| 1523 | DatabaseInfo& mDatabaseInfo; | ||||
| 1524 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | ||||
| 1525 | |||||
| 1526 | explicit ConnectionRunnable(DatabaseInfo& aDatabaseInfo); | ||||
| 1527 | |||||
| 1528 | ~ConnectionRunnable() override = default; | ||||
| 1529 | }; | ||||
| 1530 | |||||
| 1531 | class ConnectionPool::IdleConnectionRunnable final : public ConnectionRunnable { | ||||
| 1532 | const bool mNeedsCheckpoint; | ||||
| 1533 | Atomic<bool> mInterrupted; | ||||
| 1534 | |||||
| 1535 | public: | ||||
| 1536 | IdleConnectionRunnable(DatabaseInfo& aDatabaseInfo, bool aNeedsCheckpoint) | ||||
| 1537 | : ConnectionRunnable(aDatabaseInfo), mNeedsCheckpoint(aNeedsCheckpoint) {} | ||||
| 1538 | |||||
| 1539 | NS_INLINE_DECL_REFCOUNTING_INHERITED(IdleConnectionRunnable,virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<IdleConnectionRunnable>, "Reference-counted class " "IdleConnectionRunnable" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <IdleConnectionRunnable>) { NS_LogAddRef((this), (r), ( "IdleConnectionRunnable"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = ConnectionRunnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<IdleConnectionRunnable> ) { NS_LogRelease((this), (r), ("IdleConnectionRunnable")); } return r; } | ||||
| 1540 | ConnectionRunnable)virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<IdleConnectionRunnable>, "Reference-counted class " "IdleConnectionRunnable" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <IdleConnectionRunnable>) { NS_LogAddRef((this), (r), ( "IdleConnectionRunnable"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = ConnectionRunnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<IdleConnectionRunnable> ) { NS_LogRelease((this), (r), ("IdleConnectionRunnable")); } return r; } | ||||
| 1541 | |||||
| 1542 | void Interrupt() { mInterrupted = true; } | ||||
| 1543 | |||||
| 1544 | private: | ||||
| 1545 | ~IdleConnectionRunnable() override = default; | ||||
| 1546 | |||||
| 1547 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 1548 | }; | ||||
| 1549 | |||||
| 1550 | class ConnectionPool::CloseConnectionRunnable final | ||||
| 1551 | : public ConnectionRunnable { | ||||
| 1552 | public: | ||||
| 1553 | explicit CloseConnectionRunnable(DatabaseInfo& aDatabaseInfo) | ||||
| 1554 | : ConnectionRunnable(aDatabaseInfo) {} | ||||
| 1555 | |||||
| 1556 | NS_INLINE_DECL_REFCOUNTING_INHERITED(CloseConnectionRunnable,virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<CloseConnectionRunnable>, "Reference-counted class " "CloseConnectionRunnable" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <CloseConnectionRunnable>) { NS_LogAddRef((this), (r), ( "CloseConnectionRunnable"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = ConnectionRunnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<CloseConnectionRunnable> ) { NS_LogRelease((this), (r), ("CloseConnectionRunnable")); } return r; } | ||||
| 1557 | ConnectionRunnable)virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<CloseConnectionRunnable>, "Reference-counted class " "CloseConnectionRunnable" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = ConnectionRunnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <CloseConnectionRunnable>) { NS_LogAddRef((this), (r), ( "CloseConnectionRunnable"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = ConnectionRunnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<CloseConnectionRunnable> ) { NS_LogRelease((this), (r), ("CloseConnectionRunnable")); } return r; } | ||||
| 1558 | |||||
| 1559 | private: | ||||
| 1560 | ~CloseConnectionRunnable() override = default; | ||||
| 1561 | |||||
| 1562 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 1563 | }; | ||||
| 1564 | |||||
| 1565 | struct ConnectionPool::DatabaseInfo final { | ||||
| 1566 | friend mozilla::DefaultDelete<DatabaseInfo>; | ||||
| 1567 | |||||
| 1568 | RefPtr<ConnectionPool> mConnectionPool; | ||||
| 1569 | const nsCString mDatabaseId; | ||||
| 1570 | RefPtr<DatabaseConnection> mConnection; | ||||
| 1571 | nsClassHashtable<nsStringHashKey, TransactionInfoPair> mBlockingTransactions; | ||||
| 1572 | nsTArray<NotNull<TransactionInfo*>> mTransactionsScheduledDuringClose; | ||||
| 1573 | nsTArray<NotNull<TransactionInfo*>> mScheduledWriteTransactions; | ||||
| 1574 | Maybe<TransactionInfo&> mRunningWriteTransaction; | ||||
| 1575 | RefPtr<TaskQueue> mEventTarget; | ||||
| 1576 | uint32_t mReadTransactionCount; | ||||
| 1577 | uint32_t mWriteTransactionCount; | ||||
| 1578 | bool mNeedsCheckpoint; | ||||
| 1579 | bool mIdle; | ||||
| 1580 | FlippedOnce<false> mCloseOnIdle; | ||||
| 1581 | bool mClosing; | ||||
| 1582 | |||||
| 1583 | #ifdef DEBUG1 | ||||
| 1584 | nsISerialEventTarget* mDEBUGConnectionEventTarget; | ||||
| 1585 | #endif | ||||
| 1586 | |||||
| 1587 | DatabaseInfo(ConnectionPool* aConnectionPool, const nsACString& aDatabaseId); | ||||
| 1588 | |||||
| 1589 | void AssertIsOnConnectionThread() const { | ||||
| 1590 | MOZ_ASSERT(mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDEBUGConnectionEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDEBUGConnectionEventTarget) )), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDEBUGConnectionEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1590) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGConnectionEventTarget" ")"); do { MOZ_CrashSequence(__null, 1590); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1591 | MOZ_ASSERT(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget )>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget ))), 0))) { do { } while (false); MOZ_ReportAssertionFailure( "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1591) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCurrentSerialEventTarget() == mDEBUGConnectionEventTarget" ")"); do { MOZ_CrashSequence(__null, 1591); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1592 | } | ||||
| 1593 | |||||
| 1594 | uint64_t TotalTransactionCount() const { | ||||
| 1595 | return mReadTransactionCount + mWriteTransactionCount; | ||||
| 1596 | } | ||||
| 1597 | |||||
| 1598 | nsresult Dispatch(already_AddRefed<nsIRunnable> aRunnable); | ||||
| 1599 | DatabaseInfo(const DatabaseInfo&) = delete; | ||||
| 1600 | DatabaseInfo& operator=(const DatabaseInfo&) = delete; | ||||
| 1601 | |||||
| 1602 | private: | ||||
| 1603 | ~DatabaseInfo(); | ||||
| 1604 | }; | ||||
| 1605 | |||||
| 1606 | struct ConnectionPool::DatabaseCompleteCallback final { | ||||
| 1607 | friend DefaultDelete<DatabaseCompleteCallback>; | ||||
| 1608 | |||||
| 1609 | nsCString mDatabaseId; | ||||
| 1610 | nsCOMPtr<nsIRunnable> mCallback; | ||||
| 1611 | |||||
| 1612 | DatabaseCompleteCallback(const nsCString& aDatabaseIds, | ||||
| 1613 | nsIRunnable* aCallback); | ||||
| 1614 | |||||
| 1615 | private: | ||||
| 1616 | ~DatabaseCompleteCallback(); | ||||
| 1617 | }; | ||||
| 1618 | |||||
| 1619 | class NS_NO_VTABLE ConnectionPool::FinishCallback : public nsIRunnable { | ||||
| 1620 | public: | ||||
| 1621 | // Called on the owning thread before any additional transactions are | ||||
| 1622 | // unblocked. | ||||
| 1623 | virtual void TransactionFinishedBeforeUnblock() = 0; | ||||
| 1624 | |||||
| 1625 | // Called on the owning thread after additional transactions may have been | ||||
| 1626 | // unblocked. | ||||
| 1627 | virtual void TransactionFinishedAfterUnblock() = 0; | ||||
| 1628 | |||||
| 1629 | protected: | ||||
| 1630 | FinishCallback() = default; | ||||
| 1631 | |||||
| 1632 | virtual ~FinishCallback() = default; | ||||
| 1633 | }; | ||||
| 1634 | |||||
| 1635 | class ConnectionPool::FinishCallbackWrapper final : public Runnable { | ||||
| 1636 | RefPtr<ConnectionPool> mConnectionPool; | ||||
| 1637 | RefPtr<FinishCallback> mCallback; | ||||
| 1638 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | ||||
| 1639 | uint64_t mTransactionId; | ||||
| 1640 | bool mHasRunOnce; | ||||
| 1641 | |||||
| 1642 | public: | ||||
| 1643 | FinishCallbackWrapper(ConnectionPool* aConnectionPool, | ||||
| 1644 | uint64_t aTransactionId, FinishCallback* aCallback); | ||||
| 1645 | |||||
| 1646 | NS_INLINE_DECL_REFCOUNTING_INHERITED(FinishCallbackWrapper, Runnable)virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<FinishCallbackWrapper>, "Reference-counted class " "FinishCallbackWrapper" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = Runnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <FinishCallbackWrapper>) { NS_LogAddRef((this), (r), ("FinishCallbackWrapper" ), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = Runnable::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt<FinishCallbackWrapper >) { NS_LogRelease((this), (r), ("FinishCallbackWrapper")) ; } return r; } | ||||
| 1647 | |||||
| 1648 | private: | ||||
| 1649 | ~FinishCallbackWrapper() override; | ||||
| 1650 | |||||
| 1651 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 1652 | }; | ||||
| 1653 | |||||
| 1654 | #ifdef DEBUG1 | ||||
| 1655 | |||||
| 1656 | class ConnectionPool::TransactionRunnable final : public Runnable { | ||||
| 1657 | public: | ||||
| 1658 | explicit TransactionRunnable(nsCOMPtr<nsIRunnable> aRunnable); | ||||
| 1659 | |||||
| 1660 | private: | ||||
| 1661 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 1662 | |||||
| 1663 | nsCOMPtr<nsIRunnable> mRunnable; | ||||
| 1664 | }; | ||||
| 1665 | |||||
| 1666 | #endif | ||||
| 1667 | |||||
| 1668 | class ConnectionPool::TransactionInfo final { | ||||
| 1669 | friend mozilla::DefaultDelete<TransactionInfo>; | ||||
| 1670 | |||||
| 1671 | nsTHashSet<TransactionInfo*> mBlocking; | ||||
| 1672 | nsTArray<NotNull<TransactionInfo*>> mBlockingOrdered; | ||||
| 1673 | |||||
| 1674 | public: | ||||
| 1675 | DatabaseInfo& mDatabaseInfo; | ||||
| 1676 | const nsID mBackgroundChildLoggingId; | ||||
| 1677 | const nsCString mDatabaseId; | ||||
| 1678 | const uint64_t mTransactionId; | ||||
| 1679 | const int64_t mLoggingSerialNumber; | ||||
| 1680 | const nsTArray<nsString> mObjectStoreNames; | ||||
| 1681 | nsTHashSet<TransactionInfo*> mBlockedOn; | ||||
| 1682 | mozilla::Queue<nsCOMPtr<nsIRunnable>, 16> mQueuedOps; | ||||
| 1683 | const bool mIsWriteTransaction; | ||||
| 1684 | bool mRunning; | ||||
| 1685 | bool mRunningOp; | ||||
| 1686 | |||||
| 1687 | #ifdef DEBUG1 | ||||
| 1688 | FlippedOnce<false> mFinished; | ||||
| 1689 | #endif | ||||
| 1690 | |||||
| 1691 | TransactionInfo(DatabaseInfo& aDatabaseInfo, | ||||
| 1692 | const nsID& aBackgroundChildLoggingId, | ||||
| 1693 | const nsACString& aDatabaseId, uint64_t aTransactionId, | ||||
| 1694 | int64_t aLoggingSerialNumber, | ||||
| 1695 | const nsTArray<nsString>& aObjectStoreNames, | ||||
| 1696 | bool aIsWriteTransaction, | ||||
| 1697 | TransactionDatabaseOperationBase* aTransactionOp); | ||||
| 1698 | |||||
| 1699 | void AddBlockingTransaction(TransactionInfo& aTransactionInfo); | ||||
| 1700 | |||||
| 1701 | void RemoveBlockingTransactions(); | ||||
| 1702 | |||||
| 1703 | void SetRunning(); | ||||
| 1704 | |||||
| 1705 | void StartOp(nsCOMPtr<nsIRunnable> aRunnable); | ||||
| 1706 | |||||
| 1707 | void FinishOp(); | ||||
| 1708 | |||||
| 1709 | private: | ||||
| 1710 | ~TransactionInfo(); | ||||
| 1711 | |||||
| 1712 | void MaybeUnblock(TransactionInfo& aTransactionInfo); | ||||
| 1713 | }; | ||||
| 1714 | |||||
| 1715 | struct ConnectionPool::TransactionInfoPair final { | ||||
| 1716 | // Multiple reading transactions can block future writes. | ||||
| 1717 | nsTArray<NotNull<TransactionInfo*>> mLastBlockingWrites; | ||||
| 1718 | // But only a single writing transaction can block future reads. | ||||
| 1719 | Maybe<TransactionInfo&> mLastBlockingReads; | ||||
| 1720 | |||||
| 1721 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | ||||
| 1722 | TransactionInfoPair(); | ||||
| 1723 | ~TransactionInfoPair(); | ||||
| 1724 | #endif | ||||
| 1725 | }; | ||||
| 1726 | |||||
| 1727 | /******************************************************************************* | ||||
| 1728 | * Actor class declarations | ||||
| 1729 | ******************************************************************************/ | ||||
| 1730 | |||||
| 1731 | template <IDBCursorType CursorType> | ||||
| 1732 | class CommonOpenOpHelper; | ||||
| 1733 | template <IDBCursorType CursorType> | ||||
| 1734 | class IndexOpenOpHelper; | ||||
| 1735 | template <IDBCursorType CursorType> | ||||
| 1736 | class ObjectStoreOpenOpHelper; | ||||
| 1737 | template <IDBCursorType CursorType> | ||||
| 1738 | class OpenOpHelper; | ||||
| 1739 | |||||
| 1740 | class DatabaseOperationBase : public Runnable, | ||||
| 1741 | public mozIStorageProgressHandler { | ||||
| 1742 | template <IDBCursorType CursorType> | ||||
| 1743 | friend class OpenOpHelper; | ||||
| 1744 | |||||
| 1745 | protected: | ||||
| 1746 | class AutoSetProgressHandler; | ||||
| 1747 | |||||
| 1748 | using UniqueIndexTable = nsTHashMap<nsUint64HashKey, bool>; | ||||
| 1749 | |||||
| 1750 | const nsCOMPtr<nsIEventTarget> mOwningEventTarget; | ||||
| 1751 | const nsID mBackgroundChildLoggingId; | ||||
| 1752 | const uint64_t mLoggingSerialNumber; | ||||
| 1753 | |||||
| 1754 | private: | ||||
| 1755 | nsresult mResultCode = NS_OK; | ||||
| 1756 | Atomic<bool> mOperationMayProceed; | ||||
| 1757 | FlippedOnce<false> mActorDestroyed; | ||||
| 1758 | |||||
| 1759 | public: | ||||
| 1760 | NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; | ||||
| 1761 | |||||
| 1762 | bool IsOnOwningThread() const { | ||||
| 1763 | MOZ_ASSERT(mOwningEventTarget)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mOwningEventTarget)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mOwningEventTarget))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mOwningEventTarget" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1763) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { MOZ_CrashSequence(__null, 1763); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1764 | |||||
| 1765 | bool current; | ||||
| 1766 | return NS_SUCCEEDED(mOwningEventTarget->IsOnCurrentThread(¤t))((bool)(__builtin_expect(!!(!NS_FAILED_impl(mOwningEventTarget ->IsOnCurrentThread(¤t))), 1))) && | ||||
| 1767 | current; | ||||
| 1768 | } | ||||
| 1769 | |||||
| 1770 | void AssertIsOnOwningThread() const { | ||||
| 1771 | MOZ_ASSERT(IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1771) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 1771); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1772 | MOZ_ASSERT(IsOnOwningThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnOwningThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnOwningThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnOwningThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1772) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnOwningThread()" ")"); do { MOZ_CrashSequence(__null, 1772); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1773 | } | ||||
| 1774 | |||||
| 1775 | void NoteActorDestroyed() { | ||||
| 1776 | AssertIsOnOwningThread(); | ||||
| 1777 | |||||
| 1778 | mActorDestroyed.EnsureFlipped(); | ||||
| 1779 | mOperationMayProceed = false; | ||||
| 1780 | } | ||||
| 1781 | |||||
| 1782 | bool IsActorDestroyed() const { | ||||
| 1783 | AssertIsOnOwningThread(); | ||||
| 1784 | |||||
| 1785 | return mActorDestroyed; | ||||
| 1786 | } | ||||
| 1787 | |||||
| 1788 | // May be called on any thread, but you should call IsActorDestroyed() if | ||||
| 1789 | // you know you're on the background thread because it is slightly faster. | ||||
| 1790 | bool OperationMayProceed() const { return mOperationMayProceed; } | ||||
| 1791 | |||||
| 1792 | const nsID& BackgroundChildLoggingId() const { | ||||
| 1793 | return mBackgroundChildLoggingId; | ||||
| 1794 | } | ||||
| 1795 | |||||
| 1796 | uint64_t LoggingSerialNumber() const { return mLoggingSerialNumber; } | ||||
| 1797 | |||||
| 1798 | nsresult ResultCode() const { return mResultCode; } | ||||
| 1799 | |||||
| 1800 | void SetFailureCode(nsresult aFailureCode) { | ||||
| 1801 | MOZ_ASSERT(NS_SUCCEEDED(mResultCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode )), 1))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (mResultCode)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1801) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1)))" ")"); do { MOZ_CrashSequence(__null, 1801); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1802 | OverrideFailureCode(aFailureCode); | ||||
| 1803 | } | ||||
| 1804 | |||||
| 1805 | void SetFailureCodeIfUnset(nsresult aFailureCode) { | ||||
| 1806 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 1807 | OverrideFailureCode(aFailureCode); | ||||
| 1808 | } | ||||
| 1809 | } | ||||
| 1810 | |||||
| 1811 | bool HasFailed() const { return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) ); } | ||||
| 1812 | |||||
| 1813 | protected: | ||||
| 1814 | DatabaseOperationBase(const nsID& aBackgroundChildLoggingId, | ||||
| 1815 | uint64_t aLoggingSerialNumber) | ||||
| 1816 | : Runnable("dom::indexedDB::DatabaseOperationBase"), | ||||
| 1817 | mOwningEventTarget(GetCurrentSerialEventTarget()), | ||||
| 1818 | mBackgroundChildLoggingId(aBackgroundChildLoggingId), | ||||
| 1819 | mLoggingSerialNumber(aLoggingSerialNumber), | ||||
| 1820 | mOperationMayProceed(true) { | ||||
| 1821 | AssertIsOnOwningThread(); | ||||
| 1822 | } | ||||
| 1823 | |||||
| 1824 | ~DatabaseOperationBase() override { MOZ_ASSERT(mActorDestroyed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mActorDestroyed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mActorDestroyed" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1824) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 1824); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 1825 | |||||
| 1826 | void OverrideFailureCode(nsresult aFailureCode) { | ||||
| 1827 | MOZ_ASSERT(NS_FAILED(aFailureCode))do { static_assert( mozilla::detail::AssertionConditionType< decltype(((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode )), 0))))>::isValid, "invalid assertion condition"); if (( __builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(NS_FAILED_impl (aFailureCode)), 0)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 1827) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aFailureCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 1827); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 1828 | |||||
| 1829 | mResultCode = aFailureCode; | ||||
| 1830 | } | ||||
| 1831 | |||||
| 1832 | static nsAutoCString MaybeGetBindingClauseForKeyRange( | ||||
| 1833 | const Maybe<SerializedKeyRange>& aOptionalKeyRange, | ||||
| 1834 | const nsACString& aKeyColumnName); | ||||
| 1835 | |||||
| 1836 | static nsAutoCString GetBindingClauseForKeyRange( | ||||
| 1837 | const SerializedKeyRange& aKeyRange, const nsACString& aKeyColumnName); | ||||
| 1838 | |||||
| 1839 | static uint64_t ReinterpretDoubleAsUInt64(double aDouble); | ||||
| 1840 | |||||
| 1841 | static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange, | ||||
| 1842 | mozIStorageStatement* aStatement); | ||||
| 1843 | |||||
| 1844 | static nsresult BindKeyRangeToStatement(const SerializedKeyRange& aKeyRange, | ||||
| 1845 | mozIStorageStatement* aStatement, | ||||
| 1846 | const nsCString& aLocale); | ||||
| 1847 | |||||
| 1848 | static Result<IndexDataValuesAutoArray, nsresult> | ||||
| 1849 | IndexDataValuesFromUpdateInfos(const nsTArray<IndexUpdateInfo>& aUpdateInfos, | ||||
| 1850 | const UniqueIndexTable& aUniqueIndexTable); | ||||
| 1851 | |||||
| 1852 | static nsresult InsertIndexTableRows( | ||||
| 1853 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | ||||
| 1854 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues); | ||||
| 1855 | |||||
| 1856 | static nsresult DeleteIndexDataTableRows( | ||||
| 1857 | DatabaseConnection* aConnection, const Key& aObjectStoreKey, | ||||
| 1858 | const nsTArray<IndexDataValue>& aIndexValues); | ||||
| 1859 | |||||
| 1860 | static nsresult DeleteObjectStoreDataTableRowsWithIndexes( | ||||
| 1861 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | ||||
| 1862 | const Maybe<SerializedKeyRange>& aKeyRange); | ||||
| 1863 | |||||
| 1864 | static nsresult UpdateIndexValues( | ||||
| 1865 | DatabaseConnection* aConnection, IndexOrObjectStoreId aObjectStoreId, | ||||
| 1866 | const Key& aObjectStoreKey, const nsTArray<IndexDataValue>& aIndexValues); | ||||
| 1867 | |||||
| 1868 | static Result<bool, nsresult> ObjectStoreHasIndexes( | ||||
| 1869 | DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId); | ||||
| 1870 | |||||
| 1871 | private: | ||||
| 1872 | template <typename KeyTransformation> | ||||
| 1873 | static nsresult MaybeBindKeyToStatement( | ||||
| 1874 | const Key& aKey, mozIStorageStatement* aStatement, | ||||
| 1875 | const nsACString& aParameterName, | ||||
| 1876 | const KeyTransformation& aKeyTransformation); | ||||
| 1877 | |||||
| 1878 | template <typename KeyTransformation> | ||||
| 1879 | static nsresult BindTransformedKeyRangeToStatement( | ||||
| 1880 | const SerializedKeyRange& aKeyRange, mozIStorageStatement* aStatement, | ||||
| 1881 | const KeyTransformation& aKeyTransformation); | ||||
| 1882 | |||||
| 1883 | // Not to be overridden by subclasses. | ||||
| 1884 | NS_DECL_MOZISTORAGEPROGRESSHANDLERvirtual nsresult OnProgress(mozIStorageConnection *aConnection , bool *_retval) override; | ||||
| 1885 | }; | ||||
| 1886 | |||||
| 1887 | class MOZ_STACK_CLASS DatabaseOperationBase::AutoSetProgressHandler final { | ||||
| 1888 | Maybe<mozIStorageConnection&> mConnection; | ||||
| 1889 | #ifdef DEBUG1 | ||||
| 1890 | DatabaseOperationBase* mDEBUGDatabaseOp; | ||||
| 1891 | #endif | ||||
| 1892 | |||||
| 1893 | public: | ||||
| 1894 | AutoSetProgressHandler(); | ||||
| 1895 | |||||
| 1896 | ~AutoSetProgressHandler(); | ||||
| 1897 | |||||
| 1898 | nsresult Register(mozIStorageConnection& aConnection, | ||||
| 1899 | DatabaseOperationBase* aDatabaseOp); | ||||
| 1900 | |||||
| 1901 | void Unregister(); | ||||
| 1902 | }; | ||||
| 1903 | |||||
| 1904 | class TransactionDatabaseOperationBase : public DatabaseOperationBase { | ||||
| 1905 | enum class InternalState { | ||||
| 1906 | Initial, | ||||
| 1907 | DatabaseWork, | ||||
| 1908 | SendingPreprocess, | ||||
| 1909 | WaitingForContinue, | ||||
| 1910 | SendingResults, | ||||
| 1911 | Completed | ||||
| 1912 | }; | ||||
| 1913 | |||||
| 1914 | InitializedOnce<const NotNull<SafeRefPtr<TransactionBase>>> mTransaction; | ||||
| 1915 | // Unique request id within the context of the transaction, allocated by the | ||||
| 1916 | // transaction in the content process starting from 0. Values less than 0 are | ||||
| 1917 | // impossible and forbidden. Used to support the explicit commit() request. | ||||
| 1918 | const int64_t mRequestId; | ||||
| 1919 | InternalState mInternalState = InternalState::Initial; | ||||
| 1920 | bool mWaitingForContinue = false; | ||||
| 1921 | const bool mTransactionIsAborted; | ||||
| 1922 | bool mNotedActiveRequest = false; | ||||
| 1923 | |||||
| 1924 | protected: | ||||
| 1925 | const int64_t mTransactionLoggingSerialNumber; | ||||
| 1926 | |||||
| 1927 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1 | ||||
| 1928 | protected: | ||||
| 1929 | // A check only enables when the diagnostic assert turns on. It assumes the | ||||
| 1930 | // mUpdateRefcountFunction is a nullptr because the previous | ||||
| 1931 | // StartTransactionOp failed on the connection thread and the next write | ||||
| 1932 | // operation (e.g. ObjectstoreAddOrPutRequestOp) doesn't have enough time to | ||||
| 1933 | // catch up the failure information. | ||||
| 1934 | bool mAssumingPreviousOperationFail = false; | ||||
| 1935 | #endif | ||||
| 1936 | |||||
| 1937 | public: | ||||
| 1938 | void AssertIsOnConnectionThread() const | ||||
| 1939 | #ifdef DEBUG1 | ||||
| 1940 | ; | ||||
| 1941 | #else | ||||
| 1942 | { | ||||
| 1943 | } | ||||
| 1944 | #endif | ||||
| 1945 | |||||
| 1946 | uint64_t StartOnConnectionPool(const nsID& aBackgroundChildLoggingId, | ||||
| 1947 | const nsACString& aDatabaseId, | ||||
| 1948 | int64_t aLoggingSerialNumber, | ||||
| 1949 | const nsTArray<nsString>& aObjectStoreNames, | ||||
| 1950 | bool aIsWriteTransaction); | ||||
| 1951 | |||||
| 1952 | void DispatchToConnectionPool(); | ||||
| 1953 | |||||
| 1954 | TransactionBase& Transaction() { return **mTransaction; } | ||||
| 1955 | |||||
| 1956 | const TransactionBase& Transaction() const { return **mTransaction; } | ||||
| 1957 | |||||
| 1958 | bool IsWaitingForContinue() const { | ||||
| 1959 | AssertIsOnOwningThread(); | ||||
| 1960 | |||||
| 1961 | return mWaitingForContinue; | ||||
| 1962 | } | ||||
| 1963 | |||||
| 1964 | void NoteContinueReceived(); | ||||
| 1965 | |||||
| 1966 | int64_t TransactionLoggingSerialNumber() const { | ||||
| 1967 | return mTransactionLoggingSerialNumber; | ||||
| 1968 | } | ||||
| 1969 | |||||
| 1970 | // May be overridden by subclasses if they need to perform work on the | ||||
| 1971 | // background thread before being dispatched. Returning false will kill the | ||||
| 1972 | // child actors and prevent dispatch. | ||||
| 1973 | virtual bool Init(TransactionBase& aTransaction); | ||||
| 1974 | |||||
| 1975 | // This callback will be called on the background thread before releasing the | ||||
| 1976 | // final reference to this request object. Subclasses may perform any | ||||
| 1977 | // additional cleanup here but must always call the base class implementation. | ||||
| 1978 | virtual void Cleanup(); | ||||
| 1979 | |||||
| 1980 | protected: | ||||
| 1981 | TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 1982 | int64_t aRequestId); | ||||
| 1983 | |||||
| 1984 | TransactionDatabaseOperationBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 1985 | const int64_t aRequestId, | ||||
| 1986 | uint64_t aLoggingSerialNumber); | ||||
| 1987 | |||||
| 1988 | ~TransactionDatabaseOperationBase() override; | ||||
| 1989 | |||||
| 1990 | void NoteTransactionActiveRequest(); | ||||
| 1991 | |||||
| 1992 | virtual void RunOnConnectionThread(); | ||||
| 1993 | |||||
| 1994 | // Must be overridden in subclasses. Called on the target thread to allow the | ||||
| 1995 | // subclass to perform necessary database or file operations. A successful | ||||
| 1996 | // return value will trigger a SendSuccessResult callback on the background | ||||
| 1997 | // thread while a failure value will trigger a SendFailureResult callback. | ||||
| 1998 | virtual nsresult DoDatabaseWork(DatabaseConnection* aConnection) = 0; | ||||
| 1999 | |||||
| 2000 | // May be overriden in subclasses. Called on the background thread to decide | ||||
| 2001 | // if the subclass needs to send any preprocess info to the child actor. | ||||
| 2002 | virtual bool HasPreprocessInfo(); | ||||
| 2003 | |||||
| 2004 | // May be overriden in subclasses. Called on the background thread to allow | ||||
| 2005 | // the subclass to serialize its preprocess info and send it to the child | ||||
| 2006 | // actor. A successful return value will trigger a wait for a | ||||
| 2007 | // NoteContinueReceived callback on the background thread while a failure | ||||
| 2008 | // value will trigger a SendFailureResult callback. | ||||
| 2009 | virtual nsresult SendPreprocessInfo(); | ||||
| 2010 | |||||
| 2011 | // Must be overridden in subclasses. Called on the background thread to allow | ||||
| 2012 | // the subclass to serialize its results and send them to the child actor. A | ||||
| 2013 | // failed return value will trigger a SendFailureResult callback. | ||||
| 2014 | virtual TransactionOpResult SendSuccessResult() = 0; | ||||
| 2015 | |||||
| 2016 | // Must be overridden in subclasses. Called on the background thread to allow | ||||
| 2017 | // the subclass to send its failure code. Returning false will cause the | ||||
| 2018 | // transaction to be aborted with aResultCode. Returning true will not cause | ||||
| 2019 | // the transaction to be aborted. | ||||
| 2020 | virtual bool SendFailureResult(const TransactionOpResult& aResult) = 0; | ||||
| 2021 | |||||
| 2022 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED1 | ||||
| 2023 | auto MakeAutoSavepointCleanupHandler(DatabaseConnection& aConnection) { | ||||
| 2024 | return [this, &aConnection](const auto) { | ||||
| 2025 | if (!aConnection.GetUpdateRefcountFunction()) { | ||||
| 2026 | mAssumingPreviousOperationFail = true; | ||||
| 2027 | } | ||||
| 2028 | }; | ||||
| 2029 | } | ||||
| 2030 | #endif | ||||
| 2031 | |||||
| 2032 | private: | ||||
| 2033 | void SendToConnectionPool(); | ||||
| 2034 | |||||
| 2035 | void SendPreprocess(); | ||||
| 2036 | |||||
| 2037 | void SendResults(); | ||||
| 2038 | |||||
| 2039 | void SendPreprocessInfoOrResults(bool aSendPreprocessInfo); | ||||
| 2040 | |||||
| 2041 | // Not to be overridden by subclasses. | ||||
| 2042 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 2043 | }; | ||||
| 2044 | |||||
| 2045 | class Factory final : public PBackgroundIDBFactoryParent, | ||||
| 2046 | public AtomicSafeRefCounted<Factory> { | ||||
| 2047 | nsCString mSystemLocale; | ||||
| 2048 | RefPtr<DatabaseLoggingInfo> mLoggingInfo; | ||||
| 2049 | |||||
| 2050 | #ifdef DEBUG1 | ||||
| 2051 | bool mActorDestroyed; | ||||
| 2052 | #endif | ||||
| 2053 | |||||
| 2054 | // Reference counted. | ||||
| 2055 | ~Factory() override; | ||||
| 2056 | |||||
| 2057 | public: | ||||
| 2058 | [[nodiscard]] static SafeRefPtr<Factory> Create( | ||||
| 2059 | const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale); | ||||
| 2060 | |||||
| 2061 | DatabaseLoggingInfo* GetLoggingInfo() const { | ||||
| 2062 | AssertIsOnBackgroundThread(); | ||||
| 2063 | MOZ_ASSERT(mLoggingInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mLoggingInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mLoggingInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mLoggingInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo" ")"); do { MOZ_CrashSequence(__null, 2063); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2064 | |||||
| 2065 | return mLoggingInfo; | ||||
| 2066 | } | ||||
| 2067 | |||||
| 2068 | const nsCString& GetSystemLocale() const { return mSystemLocale; } | ||||
| 2069 | |||||
| 2070 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Factory)const char* typeName() const { return "mozilla::dom::indexedDB::Factory" ; } size_t typeSize() const { return sizeof(*this); } | ||||
| 2071 | MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(Factory, AtomicSafeRefCounted)template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<Factory>, "Reference-counted class " "Factory" " should not have a public destructor. " "Make this class's destructor non-public" ); nsrefcnt r = AtomicSafeRefCounted::AddRef(); if constexpr ( ::mozilla::detail::ShouldLogInheritedRefcnt<Factory>) { NS_LogAddRef((this), (r), ("Factory"), (uint32_t)(sizeof(*this ))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = AtomicSafeRefCounted::Release(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt<Factory>) { NS_LogRelease((this), (r), ("Factory")); } return r; } | ||||
| 2072 | |||||
| 2073 | // Only constructed in Create(). | ||||
| 2074 | Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo, | ||||
| 2075 | const nsACString& aSystemLocale); | ||||
| 2076 | |||||
| 2077 | // IPDL methods are only called by IPDL. | ||||
| 2078 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 2079 | |||||
| 2080 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 2081 | |||||
| 2082 | PBackgroundIDBFactoryRequestParent* AllocPBackgroundIDBFactoryRequestParent( | ||||
| 2083 | const FactoryRequestParams& aParams) override; | ||||
| 2084 | |||||
| 2085 | mozilla::ipc::IPCResult RecvPBackgroundIDBFactoryRequestConstructor( | ||||
| 2086 | PBackgroundIDBFactoryRequestParent* aActor, | ||||
| 2087 | const FactoryRequestParams& aParams) override; | ||||
| 2088 | |||||
| 2089 | bool DeallocPBackgroundIDBFactoryRequestParent( | ||||
| 2090 | PBackgroundIDBFactoryRequestParent* aActor) override; | ||||
| 2091 | |||||
| 2092 | mozilla::ipc::IPCResult RecvGetDatabases( | ||||
| 2093 | const PersistenceType& aPersistenceType, | ||||
| 2094 | const PrincipalInfo& aPrincipalInfo, | ||||
| 2095 | GetDatabasesResolver&& aResolve) override; | ||||
| 2096 | |||||
| 2097 | private: | ||||
| 2098 | Maybe<ContentParentId> GetContentParentId() const; | ||||
| 2099 | }; | ||||
| 2100 | |||||
| 2101 | class WaitForTransactionsHelper final : public Runnable { | ||||
| 2102 | const nsCString mDatabaseId; | ||||
| 2103 | nsCOMPtr<nsIRunnable> mCallback; | ||||
| 2104 | |||||
| 2105 | enum class State { Initial = 0, WaitingForTransactions, Complete } mState; | ||||
| 2106 | |||||
| 2107 | public: | ||||
| 2108 | WaitForTransactionsHelper(const nsACString& aDatabaseId, | ||||
| 2109 | nsIRunnable* aCallback) | ||||
| 2110 | : Runnable("dom::indexedDB::WaitForTransactionsHelper"), | ||||
| 2111 | mDatabaseId(aDatabaseId), | ||||
| 2112 | mCallback(aCallback), | ||||
| 2113 | mState(State::Initial) { | ||||
| 2114 | AssertIsOnBackgroundThread(); | ||||
| 2115 | MOZ_ASSERT(!aDatabaseId.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDatabaseId.IsEmpty())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!aDatabaseId.IsEmpty()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!aDatabaseId.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2115) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 2115); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2116 | MOZ_ASSERT(aCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2116); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 2116); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2117 | } | ||||
| 2118 | |||||
| 2119 | void WaitForTransactions(); | ||||
| 2120 | |||||
| 2121 | NS_INLINE_DECL_REFCOUNTING_INHERITED(WaitForTransactionsHelper, Runnable)virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<WaitForTransactionsHelper>, "Reference-counted class " "WaitForTransactionsHelper" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = Runnable ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <WaitForTransactionsHelper>) { NS_LogAddRef((this), (r) , ("WaitForTransactionsHelper"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = Runnable::Release(); if constexpr (::mozilla:: detail::ShouldLogInheritedRefcnt<WaitForTransactionsHelper >) { NS_LogRelease((this), (r), ("WaitForTransactionsHelper" )); } return r; } | ||||
| 2122 | |||||
| 2123 | private: | ||||
| 2124 | ~WaitForTransactionsHelper() override { | ||||
| 2125 | MOZ_ASSERT(!mCallback)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mCallback)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mCallback))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mCallback", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2125); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback" ")"); do { MOZ_CrashSequence(__null, 2125); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2126 | MOZ_ASSERT(mState == State::Complete)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mState == State::Complete)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Complete))) , 0))) { do { } while (false); MOZ_ReportAssertionFailure("mState == State::Complete" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2126) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete" ")"); do { MOZ_CrashSequence(__null, 2126); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2127 | } | ||||
| 2128 | |||||
| 2129 | void MaybeWaitForTransactions(); | ||||
| 2130 | |||||
| 2131 | void CallCallback(); | ||||
| 2132 | |||||
| 2133 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 2134 | }; | ||||
| 2135 | |||||
| 2136 | class Database final : public PBackgroundIDBDatabaseParent, | ||||
| 2137 | public LinkedListElement<Database>, | ||||
| 2138 | public AtomicSafeRefCounted<Database> { | ||||
| 2139 | friend class VersionChangeTransaction; | ||||
| 2140 | |||||
| 2141 | class StartTransactionOp; | ||||
| 2142 | class UnmapBlobCallback; | ||||
| 2143 | |||||
| 2144 | private: | ||||
| 2145 | SafeRefPtr<Factory> mFactory; | ||||
| 2146 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | ||||
| 2147 | SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 2148 | ClientDirectoryLockHandle mDirectoryLockHandle; | ||||
| 2149 | nsTHashSet<TransactionBase*> mTransactions; | ||||
| 2150 | nsTHashMap<nsIDHashKey, SafeRefPtr<DatabaseFileInfo>> mMappedBlobs; | ||||
| 2151 | RefPtr<DatabaseConnection> mConnection; | ||||
| 2152 | const PrincipalInfo mPrincipalInfo; | ||||
| 2153 | const Maybe<ContentParentId> mOptionalContentParentId; | ||||
| 2154 | // XXX Consider changing this to ClientMetadata. | ||||
| 2155 | const quota::OriginMetadata mOriginMetadata; | ||||
| 2156 | const nsCString mId; | ||||
| 2157 | const nsString mFilePath; | ||||
| 2158 | const Maybe<const CipherKey> mKey; | ||||
| 2159 | int64_t mDirectoryLockId; | ||||
| 2160 | const uint32_t mTelemetryId; | ||||
| 2161 | const PersistenceType mPersistenceType; | ||||
| 2162 | const bool mInPrivateBrowsing; | ||||
| 2163 | FlippedOnce<false> mClosed; | ||||
| 2164 | FlippedOnce<false> mInvalidated; | ||||
| 2165 | FlippedOnce<false> mActorWasAlive; | ||||
| 2166 | FlippedOnce<false> mActorDestroyed; | ||||
| 2167 | nsCOMPtr<nsIEventTarget> mBackgroundThread; | ||||
| 2168 | #ifdef DEBUG1 | ||||
| 2169 | bool mAllBlobsUnmapped; | ||||
| 2170 | #endif | ||||
| 2171 | |||||
| 2172 | public: | ||||
| 2173 | // Created by OpenDatabaseOp. | ||||
| 2174 | Database(SafeRefPtr<Factory> aFactory, const PrincipalInfo& aPrincipalInfo, | ||||
| 2175 | const Maybe<ContentParentId>& aOptionalContentParentId, | ||||
| 2176 | const quota::OriginMetadata& aOriginMetadata, uint32_t aTelemetryId, | ||||
| 2177 | SafeRefPtr<FullDatabaseMetadata> aMetadata, | ||||
| 2178 | SafeRefPtr<DatabaseFileManager> aFileManager, | ||||
| 2179 | ClientDirectoryLockHandle aDirectoryLockHandle, | ||||
| 2180 | bool aInPrivateBrowsing, const Maybe<const CipherKey>& aMaybeKey); | ||||
| 2181 | |||||
| 2182 | void AssertIsOnConnectionThread() const { | ||||
| 2183 | #ifdef DEBUG1 | ||||
| 2184 | // mConnection is used to cache the result from ConnectionPool's | ||||
| 2185 | // GetOrCreateConnection method (potentially avoiding a lock and a hash | ||||
| 2186 | // lookup). However, once the connection is closed, the task queue for the | ||||
| 2187 | // given database is also destroyed, so the connection, which caches the | ||||
| 2188 | // event target it was created on, is no longer reliable for asserting that | ||||
| 2189 | // the current thread is the connection thread (mConnection might be reset | ||||
| 2190 | // when EnsureConnection is called again, but in the meantime, we have to | ||||
| 2191 | // fallback to just checking the main thread and the PBackgroud thread). | ||||
| 2192 | // | ||||
| 2193 | // We cannot additionally assert mInvalidated here: mConnection is only ever | ||||
| 2194 | // assigned (never cleared), so it is also left pointing at a closed | ||||
| 2195 | // connection after a routine idle-connection close. ConnectionPool's idle | ||||
| 2196 | // timer (IdleTimerCallback -> CloseDatabase -> CloseConnectionRunnable) | ||||
| 2197 | // closes the connection, and NoteClosedDatabase then drops the | ||||
| 2198 | // DatabaseInfo without invalidating the owning Database -- so the Database | ||||
| 2199 | // survives with a Closed() mConnection and mInvalidated still false. A | ||||
| 2200 | // sibling transaction's CommitOp can then run on the connection thread in | ||||
| 2201 | // this closed-but-not-invalidated state -- a window widened whenever an | ||||
| 2202 | // in-profile database open is slow (e.g. SQLite at-rest encryption fetching | ||||
| 2203 | // a per-database key). The CommitOp path tolerates a closed/absent | ||||
| 2204 | // connection, so only the thread identity matters here. | ||||
| 2205 | if (mConnection && !mConnection->Closed()) { | ||||
| 2206 | mConnection->AssertIsOnConnectionThread(); | ||||
| 2207 | } else { | ||||
| 2208 | MOZ_ASSERT(!NS_IsMainThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!NS_IsMainThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!NS_IsMainThread()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!NS_IsMainThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2208) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 2208); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2209 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2209) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 2209); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2210 | } | ||||
| 2211 | #endif | ||||
| 2212 | } | ||||
| 2213 | |||||
| 2214 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType AddRef() override { | ||||
| 2215 | return AtomicSafeRefCounted<Database>::AddRef(); | ||||
| 2216 | } | ||||
| 2217 | NS_IMETHOD_(MozExternalRefCountType)virtual MozExternalRefCountType Release() override { | ||||
| 2218 | return AtomicSafeRefCounted<Database>::Release(); | ||||
| 2219 | } | ||||
| 2220 | |||||
| 2221 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::Database)const char* typeName() const { return "mozilla::dom::indexedDB::Database" ; } size_t typeSize() const { return sizeof(*this); } | ||||
| 2222 | |||||
| 2223 | void Invalidate(); | ||||
| 2224 | |||||
| 2225 | bool IsOwnedByProcess(ContentParentId aContentParentId) const { | ||||
| 2226 | return mOptionalContentParentId && | ||||
| 2227 | mOptionalContentParentId.value() == aContentParentId; | ||||
| 2228 | } | ||||
| 2229 | |||||
| 2230 | const quota::OriginMetadata& OriginMetadata() const { | ||||
| 2231 | return mOriginMetadata; | ||||
| 2232 | } | ||||
| 2233 | |||||
| 2234 | const nsCString& Id() const { return mId; } | ||||
| 2235 | |||||
| 2236 | Maybe<ClientDirectoryLock&> MaybeDirectoryLockRef() const { | ||||
| 2237 | AssertIsOnBackgroundThread(); | ||||
| 2238 | |||||
| 2239 | return ToMaybeRef(mDirectoryLockHandle.get()); | ||||
| 2240 | } | ||||
| 2241 | |||||
| 2242 | int64_t DirectoryLockId() const { return mDirectoryLockId; } | ||||
| 2243 | |||||
| 2244 | uint32_t TelemetryId() const { return mTelemetryId; } | ||||
| 2245 | |||||
| 2246 | PersistenceType Type() const { return mPersistenceType; } | ||||
| 2247 | |||||
| 2248 | const nsString& FilePath() const { return mFilePath; } | ||||
| 2249 | |||||
| 2250 | DatabaseFileManager& GetFileManager() const { return *mFileManager; } | ||||
| 2251 | |||||
| 2252 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> GetFileManagerPtr() const { | ||||
| 2253 | return WrapMovingNotNull(mFileManager.clonePtr()); | ||||
| 2254 | } | ||||
| 2255 | |||||
| 2256 | const FullDatabaseMetadata& Metadata() const { | ||||
| 2257 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2257); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { MOZ_CrashSequence(__null, 2257); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2258 | return *mMetadata; | ||||
| 2259 | } | ||||
| 2260 | |||||
| 2261 | SafeRefPtr<FullDatabaseMetadata> MetadataPtr() const { | ||||
| 2262 | MOZ_ASSERT(mMetadata)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2262); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { MOZ_CrashSequence(__null, 2262); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2263 | return mMetadata.clonePtr(); | ||||
| 2264 | } | ||||
| 2265 | |||||
| 2266 | PBackgroundParent* GetBackgroundParent() const { | ||||
| 2267 | AssertIsOnBackgroundThread(); | ||||
| 2268 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2268) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 2268); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2269 | |||||
| 2270 | return Manager()->Manager(); | ||||
| 2271 | } | ||||
| 2272 | |||||
| 2273 | DatabaseLoggingInfo* GetLoggingInfo() const { | ||||
| 2274 | AssertIsOnBackgroundThread(); | ||||
| 2275 | MOZ_ASSERT(mFactory)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFactory)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFactory))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFactory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2275); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { MOZ_CrashSequence(__null, 2275); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2276 | |||||
| 2277 | return mFactory->GetLoggingInfo(); | ||||
| 2278 | } | ||||
| 2279 | |||||
| 2280 | bool RegisterTransaction(TransactionBase& aTransaction); | ||||
| 2281 | |||||
| 2282 | void UnregisterTransaction(TransactionBase& aTransaction); | ||||
| 2283 | |||||
| 2284 | void SetActorAlive(); | ||||
| 2285 | |||||
| 2286 | void MapBlob(const IPCBlob& aIPCBlob, SafeRefPtr<DatabaseFileInfo> aFileInfo); | ||||
| 2287 | |||||
| 2288 | bool IsActorAlive() const { | ||||
| 2289 | AssertIsOnBackgroundThread(); | ||||
| 2290 | |||||
| 2291 | return mActorWasAlive && !mActorDestroyed; | ||||
| 2292 | } | ||||
| 2293 | |||||
| 2294 | bool IsActorDestroyed() const { | ||||
| 2295 | AssertIsOnBackgroundThread(); | ||||
| 2296 | |||||
| 2297 | return mActorWasAlive && mActorDestroyed; | ||||
| 2298 | } | ||||
| 2299 | |||||
| 2300 | bool IsClosed() const { | ||||
| 2301 | AssertIsOnBackgroundThread(); | ||||
| 2302 | |||||
| 2303 | return mClosed; | ||||
| 2304 | } | ||||
| 2305 | |||||
| 2306 | bool IsInvalidated() const { | ||||
| 2307 | AssertIsOnBackgroundThread(); | ||||
| 2308 | |||||
| 2309 | return mInvalidated; | ||||
| 2310 | } | ||||
| 2311 | |||||
| 2312 | nsresult EnsureConnection(); | ||||
| 2313 | |||||
| 2314 | DatabaseConnection* GetConnection() const { | ||||
| 2315 | #ifdef DEBUG1 | ||||
| 2316 | if (mConnection) { | ||||
| 2317 | mConnection->AssertIsOnConnectionThread(); | ||||
| 2318 | } | ||||
| 2319 | #endif | ||||
| 2320 | |||||
| 2321 | return mConnection; | ||||
| 2322 | } | ||||
| 2323 | |||||
| 2324 | void Stringify(nsACString& aResult) const; | ||||
| 2325 | |||||
| 2326 | bool IsInPrivateBrowsing() const { | ||||
| 2327 | AssertIsOnBackgroundThread(); | ||||
| 2328 | return mInPrivateBrowsing; | ||||
| 2329 | } | ||||
| 2330 | |||||
| 2331 | const Maybe<const CipherKey>& MaybeKeyRef() const { | ||||
| 2332 | // This can be called on any thread, as it is const. | ||||
| 2333 | MOZ_ASSERT(mKey.isSome() == 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" , 2333); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKey.isSome() == mInPrivateBrowsing" ")"); do { MOZ_CrashSequence(__null, 2333); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2334 | return mKey; | ||||
| 2335 | } | ||||
| 2336 | |||||
| 2337 | ~Database() override { | ||||
| 2338 | MOZ_ASSERT(mClosed)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mClosed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mClosed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2338); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")" ); do { MOZ_CrashSequence(__null, 2338); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2339 | MOZ_ASSERT_IF(mActorWasAlive, mActorDestroyed)do { if (mActorWasAlive) { do { static_assert( mozilla::detail ::AssertionConditionType<decltype(mActorDestroyed)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(mActorDestroyed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mActorDestroyed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")"); do { MOZ_CrashSequence(__null, 2339); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 2340 | MOZ_DIAGNOSTIC_ASSERT(!isInList())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!isInList())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!isInList()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!isInList()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2340); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!isInList()" ")"); do { MOZ_CrashSequence(__null, 2340); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2341 | |||||
| 2342 | NS_ProxyRelease("ReleaseIDBFactory", mBackgroundThread.get(), | ||||
| 2343 | mFactory.forget()); | ||||
| 2344 | } | ||||
| 2345 | |||||
| 2346 | private: | ||||
| 2347 | [[nodiscard]] SafeRefPtr<DatabaseFileInfo> GetBlob(const IPCBlob& aIPCBlob); | ||||
| 2348 | |||||
| 2349 | void UnmapBlob(const nsID& aID); | ||||
| 2350 | |||||
| 2351 | void UnmapAllBlobs(); | ||||
| 2352 | |||||
| 2353 | bool CloseInternal(); | ||||
| 2354 | |||||
| 2355 | void MaybeCloseConnection(); | ||||
| 2356 | |||||
| 2357 | void ConnectionClosedCallback(); | ||||
| 2358 | |||||
| 2359 | void CleanupMetadata(); | ||||
| 2360 | |||||
| 2361 | // IPDL methods are only called by IPDL. | ||||
| 2362 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 2363 | |||||
| 2364 | PBackgroundIDBDatabaseFileParent* AllocPBackgroundIDBDatabaseFileParent( | ||||
| 2365 | const IPCBlob& aIPCBlob) override; | ||||
| 2366 | |||||
| 2367 | bool DeallocPBackgroundIDBDatabaseFileParent( | ||||
| 2368 | PBackgroundIDBDatabaseFileParent* aActor) override; | ||||
| 2369 | |||||
| 2370 | already_AddRefed<PBackgroundIDBTransactionParent> | ||||
| 2371 | AllocPBackgroundIDBTransactionParent( | ||||
| 2372 | const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode, | ||||
| 2373 | const Durability& aDurability) override; | ||||
| 2374 | |||||
| 2375 | mozilla::ipc::IPCResult RecvPBackgroundIDBTransactionConstructor( | ||||
| 2376 | PBackgroundIDBTransactionParent* aActor, | ||||
| 2377 | nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode, | ||||
| 2378 | const Durability& aDurability) override; | ||||
| 2379 | |||||
| 2380 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 2381 | |||||
| 2382 | mozilla::ipc::IPCResult RecvBlocked() override; | ||||
| 2383 | |||||
| 2384 | mozilla::ipc::IPCResult RecvClose() override; | ||||
| 2385 | |||||
| 2386 | template <typename T> | ||||
| 2387 | static bool InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable); | ||||
| 2388 | }; | ||||
| 2389 | |||||
| 2390 | class Database::StartTransactionOp final | ||||
| 2391 | : public TransactionDatabaseOperationBase { | ||||
| 2392 | friend class Database; | ||||
| 2393 | |||||
| 2394 | private: | ||||
| 2395 | explicit StartTransactionOp(SafeRefPtr<TransactionBase> aTransaction) | ||||
| 2396 | : TransactionDatabaseOperationBase(std::move(aTransaction), | ||||
| 2397 | /* aRequestId */ 0, | ||||
| 2398 | /* aLoggingSerialNumber */ 0) {} | ||||
| 2399 | |||||
| 2400 | ~StartTransactionOp() override = default; | ||||
| 2401 | |||||
| 2402 | void RunOnConnectionThread() override; | ||||
| 2403 | |||||
| 2404 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 2405 | |||||
| 2406 | TransactionOpResult SendSuccessResult() override; | ||||
| 2407 | |||||
| 2408 | bool SendFailureResult(const TransactionOpResult& aResult) override; | ||||
| 2409 | |||||
| 2410 | void Cleanup() override; | ||||
| 2411 | }; | ||||
| 2412 | |||||
| 2413 | class Database::UnmapBlobCallback final | ||||
| 2414 | : public RemoteLazyInputStreamParentCallback { | ||||
| 2415 | SafeRefPtr<Database> mDatabase; | ||||
| 2416 | nsCOMPtr<nsISerialEventTarget> mBackgroundThread; | ||||
| 2417 | |||||
| 2418 | public: | ||||
| 2419 | explicit UnmapBlobCallback(SafeRefPtr<Database> aDatabase) | ||||
| 2420 | : mDatabase(std::move(aDatabase)), | ||||
| 2421 | mBackgroundThread(GetCurrentSerialEventTarget()) { | ||||
| 2422 | AssertIsOnBackgroundThread(); | ||||
| 2423 | } | ||||
| 2424 | |||||
| 2425 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(Database::UnmapBlobCallback, override)public: MozExternalRefCountType AddRef(void) override { static_assert (!std::is_destructible_v<Database::UnmapBlobCallback>, "Reference-counted class " "Database::UnmapBlobCallback" " should not have a public destructor. " "Make this class's destructor non-public"); do { static_assert ( mozilla::detail::AssertionConditionType<decltype(int32_t (mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 2425 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("Database::UnmapBlobCallback"), (uint32_t)(sizeof(*this)) ); return (nsrefcnt)count; } MozExternalRefCountType Release( void) override { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 2425 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("Database::UnmapBlobCallback")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | ||||
| 2426 | |||||
| 2427 | void ActorDestroyed(const nsID& aID) override { | ||||
| 2428 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2428); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2428); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2429 | mBackgroundThread->Dispatch(NS_NewRunnableFunction( | ||||
| 2430 | "UnmapBlobCallback", [aID, database = std::move(mDatabase)] { | ||||
| 2431 | AssertIsOnBackgroundThread(); | ||||
| 2432 | database->UnmapBlob(aID); | ||||
| 2433 | })); | ||||
| 2434 | } | ||||
| 2435 | |||||
| 2436 | private: | ||||
| 2437 | ~UnmapBlobCallback() = default; | ||||
| 2438 | }; | ||||
| 2439 | |||||
| 2440 | /** | ||||
| 2441 | * In coordination with IDBDatabase's mFileActors weak-map on the child side, a | ||||
| 2442 | * long-lived mapping from a child process's live Blobs to their corresponding | ||||
| 2443 | * DatabaseFileInfo in our owning database. Assists in avoiding redundant IPC | ||||
| 2444 | * traffic and disk storage. This includes both: | ||||
| 2445 | * - Blobs retrieved from this database and sent to the child that do not need | ||||
| 2446 | * to be written to disk because they already exist on disk in this database's | ||||
| 2447 | * files directory. | ||||
| 2448 | * - Blobs retrieved from other databases or from anywhere else that will need | ||||
| 2449 | * to be written to this database's files directory. In this case we will | ||||
| 2450 | * hold a reference to its BlobImpl in mBlobImpl until we have successfully | ||||
| 2451 | * written the Blob to disk. | ||||
| 2452 | * | ||||
| 2453 | * Relevant Blob context: Blobs sent from the parent process to child processes | ||||
| 2454 | * are automatically linked back to their source BlobImpl when the child process | ||||
| 2455 | * references the Blob via IPC. This is done using the internal IPCBlob | ||||
| 2456 | * inputStream actor ID to DatabaseFileInfo mapping. However, when getting an | ||||
| 2457 | * actor in the child process for sending an in-child-created Blob to the | ||||
| 2458 | * parent process, there is (currently) no Blob machinery to automatically | ||||
| 2459 | * establish and reuse a long-lived Actor. As a result, without IDB's weak-map | ||||
| 2460 | * cleverness, a memory-backed Blob repeatedly sent from the child to the parent | ||||
| 2461 | * would appear as a different Blob each time, requiring the Blob data to be | ||||
| 2462 | * sent over IPC each time as well as potentially needing to be written to disk | ||||
| 2463 | * each time. | ||||
| 2464 | * | ||||
| 2465 | * This object remains alive as long as there is an active child actor or an | ||||
| 2466 | * ObjectStoreAddOrPutRequestOp::StoredFileInfo for a queued or active add/put | ||||
| 2467 | * op is holding a reference to us. | ||||
| 2468 | */ | ||||
| 2469 | class DatabaseFile final : public PBackgroundIDBDatabaseFileParent { | ||||
| 2470 | // mBlobImpl's ownership lifecycle: | ||||
| 2471 | // - Initialized on the background thread at creation time. Then | ||||
| 2472 | // responsibility is handed off to the connection thread. | ||||
| 2473 | // - Checked and used by the connection thread to generate a stream to write | ||||
| 2474 | // the blob to disk by an add/put operation. | ||||
| 2475 | // - Cleared on the connection thread once the file has successfully been | ||||
| 2476 | // written to disk. | ||||
| 2477 | InitializedOnce<const RefPtr<BlobImpl>> mBlobImpl; | ||||
| 2478 | const SafeRefPtr<DatabaseFileInfo> mFileInfo; | ||||
| 2479 | |||||
| 2480 | public: | ||||
| 2481 | NS_INLINE_DECL_THREADSAFE_REFCOUNTING(mozilla::dom::indexedDB::DatabaseFile)public: MozExternalRefCountType AddRef(void) { static_assert( !std::is_destructible_v<mozilla::dom::indexedDB::DatabaseFile >, "Reference-counted class " "mozilla::dom::indexedDB::DatabaseFile" " should not have a public destructor. " "Make this class's destructor non-public" ); do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) >= 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) >= 0))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) >= 0" " (" "illegal refcnt" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 2481 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = ++mRefCnt; NS_LogAddRef((this), (count ), ("mozilla::dom::indexedDB::DatabaseFile"), (uint32_t)(sizeof (*this))); return (nsrefcnt)count; } MozExternalRefCountType Release (void) { do { static_assert( mozilla::detail::AssertionConditionType <decltype(int32_t(mRefCnt) > 0)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(int32_t(mRefCnt) > 0))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("int32_t(mRefCnt) > 0" " (" "dup release" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2481); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 2481 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::DatabaseFile")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public:; | ||||
| 2482 | |||||
| 2483 | const DatabaseFileInfo& GetFileInfo() const { | ||||
| 2484 | AssertIsOnBackgroundThread(); | ||||
| 2485 | |||||
| 2486 | return *mFileInfo; | ||||
| 2487 | } | ||||
| 2488 | |||||
| 2489 | SafeRefPtr<DatabaseFileInfo> GetFileInfoPtr() const { | ||||
| 2490 | AssertIsOnBackgroundThread(); | ||||
| 2491 | |||||
| 2492 | return mFileInfo.clonePtr(); | ||||
| 2493 | } | ||||
| 2494 | |||||
| 2495 | /** | ||||
| 2496 | * If mBlobImpl is non-null (implying the contents of this file have not yet | ||||
| 2497 | * been written to disk), then return an input stream. Otherwise, if mBlobImpl | ||||
| 2498 | * is null (because the contents have been written to disk), returns null. | ||||
| 2499 | */ | ||||
| 2500 | [[nodiscard]] nsCOMPtr<nsIInputStream> GetInputStream(ErrorResult& rv) const; | ||||
| 2501 | |||||
| 2502 | /** | ||||
| 2503 | * To be called upon successful copying of the stream GetInputStream() | ||||
| 2504 | * returned so that we won't try and redundantly write the file to disk in the | ||||
| 2505 | * future. This is a separate step from GetInputStream() because | ||||
| 2506 | * the write could fail due to quota errors that happen now but that might | ||||
| 2507 | * not happen in a future attempt. | ||||
| 2508 | */ | ||||
| 2509 | void WriteSucceededClearBlobImpl() { | ||||
| 2510 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2510) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 2510); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2511 | |||||
| 2512 | MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType< decltype(*mBlobImpl)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2512); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl" ")"); do { MOZ_CrashSequence(__null, 2512); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2513 | mBlobImpl.destroy(); | ||||
| 2514 | } | ||||
| 2515 | |||||
| 2516 | public: | ||||
| 2517 | // Called when sending to the child. | ||||
| 2518 | explicit DatabaseFile(SafeRefPtr<DatabaseFileInfo> aFileInfo) | ||||
| 2519 | : mBlobImpl{nullptr}, mFileInfo(std::move(aFileInfo)) { | ||||
| 2520 | AssertIsOnBackgroundThread(); | ||||
| 2521 | MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2521); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")" ); do { MOZ_CrashSequence(__null, 2521); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2522 | } | ||||
| 2523 | |||||
| 2524 | // Called when receiving from the child. | ||||
| 2525 | DatabaseFile(RefPtr<BlobImpl> aBlobImpl, | ||||
| 2526 | SafeRefPtr<DatabaseFileInfo> aFileInfo) | ||||
| 2527 | : mBlobImpl(std::move(aBlobImpl)), mFileInfo(std::move(aFileInfo)) { | ||||
| 2528 | AssertIsOnBackgroundThread(); | ||||
| 2529 | MOZ_ASSERT(*mBlobImpl)do { static_assert( mozilla::detail::AssertionConditionType< decltype(*mBlobImpl)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(*mBlobImpl))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("*mBlobImpl", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2529); AnnotateMozCrashReason("MOZ_ASSERT" "(" "*mBlobImpl" ")"); do { MOZ_CrashSequence(__null, 2529); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2530 | MOZ_ASSERT(mFileInfo)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mFileInfo)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mFileInfo))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mFileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2530); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileInfo" ")" ); do { MOZ_CrashSequence(__null, 2530); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2531 | } | ||||
| 2532 | |||||
| 2533 | private: | ||||
| 2534 | ~DatabaseFile() override = default; | ||||
| 2535 | |||||
| 2536 | void ActorDestroy(ActorDestroyReason aWhy) override { | ||||
| 2537 | AssertIsOnBackgroundThread(); | ||||
| 2538 | } | ||||
| 2539 | }; | ||||
| 2540 | |||||
| 2541 | nsCOMPtr<nsIInputStream> DatabaseFile::GetInputStream(ErrorResult& rv) const { | ||||
| 2542 | // We should only be called from our DB connection thread, not the background | ||||
| 2543 | // thread. | ||||
| 2544 | MOZ_ASSERT(!IsOnBackgroundThread())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("!IsOnBackgroundThread()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2544) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 2544); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2545 | |||||
| 2546 | // If we were constructed without a BlobImpl, or WriteSucceededClearBlobImpl | ||||
| 2547 | // was already called, return nullptr. | ||||
| 2548 | if (!mBlobImpl || !*mBlobImpl) { | ||||
| 2549 | return nullptr; | ||||
| 2550 | } | ||||
| 2551 | |||||
| 2552 | nsCOMPtr<nsIInputStream> inputStream; | ||||
| 2553 | (*mBlobImpl)->CreateInputStream(getter_AddRefs(inputStream), rv); | ||||
| 2554 | if (rv.Failed()) { | ||||
| 2555 | return nullptr; | ||||
| 2556 | } | ||||
| 2557 | |||||
| 2558 | return inputStream; | ||||
| 2559 | } | ||||
| 2560 | |||||
| 2561 | class TransactionBase : public AtomicSafeRefCounted<TransactionBase> { | ||||
| 2562 | friend class CursorBase; | ||||
| 2563 | |||||
| 2564 | template <IDBCursorType CursorType> | ||||
| 2565 | friend class Cursor; | ||||
| 2566 | |||||
| 2567 | class CommitOp; | ||||
| 2568 | |||||
| 2569 | protected: | ||||
| 2570 | using Mode = IDBTransaction::Mode; | ||||
| 2571 | using Durability = IDBTransaction::Durability; | ||||
| 2572 | |||||
| 2573 | private: | ||||
| 2574 | const SafeRefPtr<Database> mDatabase; | ||||
| 2575 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>> | ||||
| 2576 | mModifiedAutoIncrementObjectStoreMetadataArray; | ||||
| 2577 | LazyInitializedOnceNotNull<const uint64_t> mTransactionId; | ||||
| 2578 | const nsCString mDatabaseId; | ||||
| 2579 | const int64_t mLoggingSerialNumber; | ||||
| 2580 | uint64_t mActiveRequestCount; | ||||
| 2581 | Atomic<bool> mInvalidatedOnAnyThread; | ||||
| 2582 | const Mode mMode; | ||||
| 2583 | const Durability mDurability; | ||||
| 2584 | FlippedOnce<false> mInitialized; | ||||
| 2585 | FlippedOnce<false> mHasBeenActiveOnConnectionThread; | ||||
| 2586 | FlippedOnce<false> mActorDestroyed; | ||||
| 2587 | FlippedOnce<false> mInvalidated; | ||||
| 2588 | |||||
| 2589 | protected: | ||||
| 2590 | nsresult mResultCode; | ||||
| 2591 | FlippedOnce<false> mCommitOrAbortReceived; | ||||
| 2592 | FlippedOnce<false> mCommittedOrAborted; | ||||
| 2593 | FlippedOnce<false> mForceAborted; | ||||
| 2594 | LazyInitializedOnce<const Maybe<int64_t>> mLastRequestBeforeCommit; | ||||
| 2595 | Maybe<int64_t> mLastFailedRequest; | ||||
| 2596 | |||||
| 2597 | public: | ||||
| 2598 | void AssertIsOnConnectionThread() const { | ||||
| 2599 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2599); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2599); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2600 | mDatabase->AssertIsOnConnectionThread(); | ||||
| 2601 | } | ||||
| 2602 | |||||
| 2603 | bool IsActorDestroyed() const { | ||||
| 2604 | AssertIsOnBackgroundThread(); | ||||
| 2605 | |||||
| 2606 | return mActorDestroyed; | ||||
| 2607 | } | ||||
| 2608 | |||||
| 2609 | // Must be called on the background thread. | ||||
| 2610 | bool IsInvalidated() const { | ||||
| 2611 | MOZ_ASSERT(IsOnBackgroundThread(), "Use IsInvalidatedOnAnyThread()")do { static_assert( mozilla::detail::AssertionConditionType< decltype(IsOnBackgroundThread())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(IsOnBackgroundThread()))), 0 ))) { do { } while (false); MOZ_ReportAssertionFailure("IsOnBackgroundThread()" " (" "Use IsInvalidatedOnAnyThread()" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2611); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsOnBackgroundThread()" ") (" "Use IsInvalidatedOnAnyThread()" ")"); do { MOZ_CrashSequence (__null, 2611); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); | ||||
| 2612 | MOZ_ASSERT_IF(mInvalidated, NS_FAILED(mResultCode))do { if (mInvalidated) { do { static_assert( mozilla::detail:: AssertionConditionType<decltype(((bool)(__builtin_expect(! !(NS_FAILED_impl(mResultCode)), 0))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( NS_FAILED_impl(mResultCode)), 0)))))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2612) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 2612); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 2613 | |||||
| 2614 | return mInvalidated; | ||||
| 2615 | } | ||||
| 2616 | |||||
| 2617 | // May be called on any thread, but is more expensive than IsInvalidated(). | ||||
| 2618 | bool IsInvalidatedOnAnyThread() const { return mInvalidatedOnAnyThread; } | ||||
| 2619 | |||||
| 2620 | void Init(const uint64_t aTransactionId) { | ||||
| 2621 | AssertIsOnBackgroundThread(); | ||||
| 2622 | MOZ_ASSERT(aTransactionId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aTransactionId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aTransactionId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aTransactionId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2622) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTransactionId" ")" ); do { MOZ_CrashSequence(__null, 2622); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2623 | |||||
| 2624 | mTransactionId.init(aTransactionId); | ||||
| 2625 | mInitialized.Flip(); | ||||
| 2626 | } | ||||
| 2627 | |||||
| 2628 | void SetActiveOnConnectionThread() { | ||||
| 2629 | AssertIsOnConnectionThread(); | ||||
| 2630 | mHasBeenActiveOnConnectionThread.Flip(); | ||||
| 2631 | } | ||||
| 2632 | |||||
| 2633 | MOZ_DECLARE_REFCOUNTED_TYPENAME(mozilla::dom::indexedDB::TransactionBase)const char* typeName() const { return "mozilla::dom::indexedDB::TransactionBase" ; } size_t typeSize() const { return sizeof(*this); } | ||||
| 2634 | |||||
| 2635 | void Abort(nsresult aResultCode, bool aForce); | ||||
| 2636 | |||||
| 2637 | uint64_t TransactionId() const { return *mTransactionId; } | ||||
| 2638 | |||||
| 2639 | const nsACString& DatabaseId() const { return mDatabaseId; } | ||||
| 2640 | |||||
| 2641 | Mode GetMode() const { return mMode; } | ||||
| 2642 | |||||
| 2643 | Durability GetDurability() const { return mDurability; } | ||||
| 2644 | |||||
| 2645 | const Database& GetDatabase() const { | ||||
| 2646 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2646); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2647 | |||||
| 2648 | return *mDatabase; | ||||
| 2649 | } | ||||
| 2650 | |||||
| 2651 | Database& GetMutableDatabase() const { | ||||
| 2652 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2652); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2652); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2653 | |||||
| 2654 | return *mDatabase; | ||||
| 2655 | } | ||||
| 2656 | |||||
| 2657 | SafeRefPtr<Database> GetDatabasePtr() const { | ||||
| 2658 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2658); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2658); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2659 | |||||
| 2660 | return mDatabase.clonePtr(); | ||||
| 2661 | } | ||||
| 2662 | |||||
| 2663 | DatabaseLoggingInfo* GetLoggingInfo() const { | ||||
| 2664 | AssertIsOnBackgroundThread(); | ||||
| 2665 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2665); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2666 | |||||
| 2667 | return mDatabase->GetLoggingInfo(); | ||||
| 2668 | } | ||||
| 2669 | |||||
| 2670 | int64_t LoggingSerialNumber() const { return mLoggingSerialNumber; } | ||||
| 2671 | |||||
| 2672 | bool IsAborted() const { | ||||
| 2673 | AssertIsOnBackgroundThread(); | ||||
| 2674 | |||||
| 2675 | return NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) ); | ||||
| 2676 | } | ||||
| 2677 | |||||
| 2678 | [[nodiscard]] SafeRefPtr<FullObjectStoreMetadata> GetMetadataForObjectStoreId( | ||||
| 2679 | IndexOrObjectStoreId aObjectStoreId) const; | ||||
| 2680 | |||||
| 2681 | [[nodiscard]] SafeRefPtr<FullIndexMetadata> GetMetadataForIndexId( | ||||
| 2682 | FullObjectStoreMetadata& aObjectStoreMetadata, | ||||
| 2683 | IndexOrObjectStoreId aIndexId) const; | ||||
| 2684 | |||||
| 2685 | PBackgroundParent* GetBackgroundParent() const { | ||||
| 2686 | AssertIsOnBackgroundThread(); | ||||
| 2687 | MOZ_ASSERT(!IsActorDestroyed())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!IsActorDestroyed())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!IsActorDestroyed()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!IsActorDestroyed()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 2687) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 2687); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2688 | |||||
| 2689 | return GetDatabase().GetBackgroundParent(); | ||||
| 2690 | } | ||||
| 2691 | |||||
| 2692 | void NoteModifiedAutoIncrementObjectStore( | ||||
| 2693 | const SafeRefPtr<FullObjectStoreMetadata>& aMetadata); | ||||
| 2694 | |||||
| 2695 | void ForgetModifiedAutoIncrementObjectStore( | ||||
| 2696 | FullObjectStoreMetadata& aMetadata); | ||||
| 2697 | |||||
| 2698 | void NoteActiveRequest(); | ||||
| 2699 | |||||
| 2700 | void NoteFinishedRequest(int64_t aRequestId, nsresult aResultCode); | ||||
| 2701 | |||||
| 2702 | void Invalidate(); | ||||
| 2703 | |||||
| 2704 | virtual ~TransactionBase(); | ||||
| 2705 | |||||
| 2706 | protected: | ||||
| 2707 | TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode, | ||||
| 2708 | Durability aDurability); | ||||
| 2709 | |||||
| 2710 | void NoteActorDestroyed() { | ||||
| 2711 | AssertIsOnBackgroundThread(); | ||||
| 2712 | |||||
| 2713 | mActorDestroyed.Flip(); | ||||
| 2714 | } | ||||
| 2715 | |||||
| 2716 | #ifdef DEBUG1 | ||||
| 2717 | // Only called by VersionChangeTransaction. | ||||
| 2718 | void FakeActorDestroyed() { mActorDestroyed.EnsureFlipped(); } | ||||
| 2719 | #endif | ||||
| 2720 | |||||
| 2721 | mozilla::ipc::IPCResult RecvCommit(IProtocol* aActor, | ||||
| 2722 | const Maybe<int64_t> aLastRequest); | ||||
| 2723 | |||||
| 2724 | mozilla::ipc::IPCResult RecvAbort(IProtocol* aActor, nsresult aResultCode); | ||||
| 2725 | |||||
| 2726 | void MaybeCommitOrAbort() { | ||||
| 2727 | AssertIsOnBackgroundThread(); | ||||
| 2728 | |||||
| 2729 | // If we've already committed or aborted then there's nothing else to do. | ||||
| 2730 | if (mCommittedOrAborted) { | ||||
| 2731 | return; | ||||
| 2732 | } | ||||
| 2733 | |||||
| 2734 | // If there are active requests then we have to wait for those requests to | ||||
| 2735 | // complete (see NoteFinishedRequest). | ||||
| 2736 | if (mActiveRequestCount) { | ||||
| 2737 | return; | ||||
| 2738 | } | ||||
| 2739 | |||||
| 2740 | // If we haven't yet received a commit or abort message then there could be | ||||
| 2741 | // additional requests coming so we should wait unless we're being forced to | ||||
| 2742 | // abort. | ||||
| 2743 | if (!mCommitOrAbortReceived && !mForceAborted) { | ||||
| 2744 | return; | ||||
| 2745 | } | ||||
| 2746 | |||||
| 2747 | CommitOrAbort(); | ||||
| 2748 | } | ||||
| 2749 | |||||
| 2750 | PBackgroundIDBRequestParent* AllocRequest(const int64_t aRequestId, | ||||
| 2751 | RequestParams&& aParams, | ||||
| 2752 | bool aTrustParams); | ||||
| 2753 | |||||
| 2754 | bool StartRequest(PBackgroundIDBRequestParent* aActor); | ||||
| 2755 | |||||
| 2756 | bool DeallocRequest(PBackgroundIDBRequestParent* aActor); | ||||
| 2757 | |||||
| 2758 | already_AddRefed<PBackgroundIDBCursorParent> AllocCursor( | ||||
| 2759 | const OpenCursorParams& aParams, bool aTrustParams); | ||||
| 2760 | |||||
| 2761 | bool StartCursor(PBackgroundIDBCursorParent* aActor, const int64_t aRequestId, | ||||
| 2762 | const OpenCursorParams& aParams); | ||||
| 2763 | |||||
| 2764 | virtual void UpdateMetadata(nsresult aResult) {} | ||||
| 2765 | |||||
| 2766 | virtual void SendCompleteNotification(nsresult aResult) = 0; | ||||
| 2767 | |||||
| 2768 | private: | ||||
| 2769 | bool VerifyRequestParams(const RequestParams& aParams) const; | ||||
| 2770 | |||||
| 2771 | bool VerifyRequestParams(const SerializedKeyRange& aParams) const; | ||||
| 2772 | |||||
| 2773 | bool VerifyRequestParams(const ObjectStoreAddPutParams& aParams) const; | ||||
| 2774 | |||||
| 2775 | bool VerifyRequestParams(const Maybe<SerializedKeyRange>& aParams) const; | ||||
| 2776 | |||||
| 2777 | void CommitOrAbort(); | ||||
| 2778 | }; | ||||
| 2779 | |||||
| 2780 | class TransactionBase::CommitOp final : public DatabaseOperationBase, | ||||
| 2781 | public ConnectionPool::FinishCallback { | ||||
| 2782 | friend class TransactionBase; | ||||
| 2783 | |||||
| 2784 | SafeRefPtr<TransactionBase> mTransaction; | ||||
| 2785 | nsresult mResultCode; ///< TODO: There is also a mResultCode in | ||||
| 2786 | ///< DatabaseOperationBase. Is there a reason not to | ||||
| 2787 | ///< use that? At least a more specific name should be | ||||
| 2788 | ///< given to this one. | ||||
| 2789 | |||||
| 2790 | private: | ||||
| 2791 | CommitOp(SafeRefPtr<TransactionBase> aTransaction, nsresult aResultCode); | ||||
| 2792 | |||||
| 2793 | ~CommitOp() override = default; | ||||
| 2794 | |||||
| 2795 | // Writes new autoIncrement counts to database. | ||||
| 2796 | nsresult WriteAutoIncrementCounts(); | ||||
| 2797 | |||||
| 2798 | // Updates counts after a database activity has finished. | ||||
| 2799 | void CommitOrRollbackAutoIncrementCounts(); | ||||
| 2800 | |||||
| 2801 | void AssertForeignKeyConsistency(DatabaseConnection* aConnection) | ||||
| 2802 | #ifdef DEBUG1 | ||||
| 2803 | ; | ||||
| 2804 | #else | ||||
| 2805 | { | ||||
| 2806 | } | ||||
| 2807 | #endif | ||||
| 2808 | |||||
| 2809 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 2810 | |||||
| 2811 | void TransactionFinishedBeforeUnblock() override; | ||||
| 2812 | |||||
| 2813 | void TransactionFinishedAfterUnblock() override; | ||||
| 2814 | |||||
| 2815 | public: | ||||
| 2816 | // We need to declare all of nsISupports, because FinishCallback has | ||||
| 2817 | // a pure-virtual nsISupports declaration. | ||||
| 2818 | NS_DECL_ISUPPORTS_INHERITEDpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; | ||||
| 2819 | }; | ||||
| 2820 | |||||
| 2821 | class NormalTransaction final : public TransactionBase, | ||||
| 2822 | public PBackgroundIDBTransactionParent { | ||||
| 2823 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>> mObjectStores; | ||||
| 2824 | |||||
| 2825 | // Reference counted. | ||||
| 2826 | ~NormalTransaction() override = default; | ||||
| 2827 | |||||
| 2828 | bool IsSameProcessActor(); | ||||
| 2829 | |||||
| 2830 | // Only called by TransactionBase. | ||||
| 2831 | void SendCompleteNotification(nsresult aResult) override; | ||||
| 2832 | |||||
| 2833 | // IPDL methods are only called by IPDL. | ||||
| 2834 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 2835 | |||||
| 2836 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 2837 | |||||
| 2838 | mozilla::ipc::IPCResult RecvCommit( | ||||
| 2839 | const Maybe<int64_t>& aLastRequest) override; | ||||
| 2840 | |||||
| 2841 | mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override; | ||||
| 2842 | |||||
| 2843 | PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent( | ||||
| 2844 | const int64_t& aRequestId, const RequestParams& aParams) override; | ||||
| 2845 | |||||
| 2846 | mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor( | ||||
| 2847 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | ||||
| 2848 | const RequestParams& aParams) override; | ||||
| 2849 | |||||
| 2850 | bool DeallocPBackgroundIDBRequestParent( | ||||
| 2851 | PBackgroundIDBRequestParent* aActor) override; | ||||
| 2852 | |||||
| 2853 | already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent( | ||||
| 2854 | const int64_t& aRequestId, const OpenCursorParams& aParams) override; | ||||
| 2855 | |||||
| 2856 | mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor( | ||||
| 2857 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | ||||
| 2858 | const OpenCursorParams& aParams) override; | ||||
| 2859 | |||||
| 2860 | public: | ||||
| 2861 | // This constructor is only called by Database. | ||||
| 2862 | NormalTransaction( | ||||
| 2863 | SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode, | ||||
| 2864 | TransactionBase::Durability aDurability, | ||||
| 2865 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores); | ||||
| 2866 | |||||
| 2867 | MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(NormalTransaction, TransactionBase)template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<NormalTransaction>, "Reference-counted class " "NormalTransaction" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = TransactionBase ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <NormalTransaction>) { NS_LogAddRef((this), (r), ("NormalTransaction" ), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = TransactionBase::Release() ; if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt< NormalTransaction>) { NS_LogRelease((this), (r), ("NormalTransaction" )); } return r; } | ||||
| 2868 | }; | ||||
| 2869 | |||||
| 2870 | class VersionChangeTransaction final | ||||
| 2871 | : public TransactionBase, | ||||
| 2872 | public PBackgroundIDBVersionChangeTransactionParent { | ||||
| 2873 | friend class OpenDatabaseOp; | ||||
| 2874 | |||||
| 2875 | RefPtr<OpenDatabaseOp> mOpenDatabaseOp; | ||||
| 2876 | SafeRefPtr<FullDatabaseMetadata> mOldMetadata; | ||||
| 2877 | |||||
| 2878 | FlippedOnce<false> mActorWasAlive; | ||||
| 2879 | |||||
| 2880 | public: | ||||
| 2881 | // Only called by OpenDatabaseOp. | ||||
| 2882 | explicit VersionChangeTransaction(OpenDatabaseOp* aOpenDatabaseOp); | ||||
| 2883 | |||||
| 2884 | MOZ_INLINE_DECL_SAFEREFCOUNTING_INHERITED(VersionChangeTransaction,template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<VersionChangeTransaction>, "Reference-counted class " "VersionChangeTransaction" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = TransactionBase ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <VersionChangeTransaction>) { NS_LogAddRef((this), (r), ("VersionChangeTransaction"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = TransactionBase::Release(); if constexpr (::mozilla::detail ::ShouldLogInheritedRefcnt<VersionChangeTransaction>) { NS_LogRelease((this), (r), ("VersionChangeTransaction")); } return r; } | ||||
| 2885 | TransactionBase)template <typename T, ::mozilla::detail::RefCountAtomicity Atomicity> friend class ::mozilla::detail::SafeRefCounted ; virtual MozExternalRefCountType AddRef() override { static_assert (!std::is_destructible_v<VersionChangeTransaction>, "Reference-counted class " "VersionChangeTransaction" " should not have a public destructor. " "Make this class's destructor non-public"); nsrefcnt r = TransactionBase ::AddRef(); if constexpr (::mozilla::detail::ShouldLogInheritedRefcnt <VersionChangeTransaction>) { NS_LogAddRef((this), (r), ("VersionChangeTransaction"), (uint32_t)(sizeof(*this))); } return r; } virtual MozExternalRefCountType Release() override { nsrefcnt r = TransactionBase::Release(); if constexpr (::mozilla::detail ::ShouldLogInheritedRefcnt<VersionChangeTransaction>) { NS_LogRelease((this), (r), ("VersionChangeTransaction")); } return r; } | ||||
| 2886 | |||||
| 2887 | private: | ||||
| 2888 | // Reference counted. | ||||
| 2889 | ~VersionChangeTransaction() override; | ||||
| 2890 | |||||
| 2891 | bool IsSameProcessActor(); | ||||
| 2892 | |||||
| 2893 | // Only called by OpenDatabaseOp. | ||||
| 2894 | bool CopyDatabaseMetadata(); | ||||
| 2895 | |||||
| 2896 | void SetActorAlive(); | ||||
| 2897 | |||||
| 2898 | // Only called by TransactionBase. | ||||
| 2899 | void UpdateMetadata(nsresult aResult) override; | ||||
| 2900 | |||||
| 2901 | // Only called by TransactionBase. | ||||
| 2902 | void SendCompleteNotification(nsresult aResult) override; | ||||
| 2903 | |||||
| 2904 | // IPDL methods are only called by IPDL. | ||||
| 2905 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 2906 | |||||
| 2907 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 2908 | |||||
| 2909 | mozilla::ipc::IPCResult RecvCommit( | ||||
| 2910 | const Maybe<int64_t>& aLastRequest) override; | ||||
| 2911 | |||||
| 2912 | mozilla::ipc::IPCResult RecvAbort(const nsresult& aResultCode) override; | ||||
| 2913 | |||||
| 2914 | mozilla::ipc::IPCResult RecvCreateObjectStore( | ||||
| 2915 | const ObjectStoreMetadata& aMetadata) override; | ||||
| 2916 | |||||
| 2917 | mozilla::ipc::IPCResult RecvDeleteObjectStore( | ||||
| 2918 | const IndexOrObjectStoreId& aObjectStoreId) override; | ||||
| 2919 | |||||
| 2920 | mozilla::ipc::IPCResult RecvRenameObjectStore( | ||||
| 2921 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 2922 | const nsAString& aName) override; | ||||
| 2923 | |||||
| 2924 | mozilla::ipc::IPCResult RecvCreateIndex( | ||||
| 2925 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 2926 | const IndexMetadata& aMetadata) override; | ||||
| 2927 | |||||
| 2928 | mozilla::ipc::IPCResult RecvDeleteIndex( | ||||
| 2929 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 2930 | const IndexOrObjectStoreId& aIndexId) override; | ||||
| 2931 | |||||
| 2932 | mozilla::ipc::IPCResult RecvRenameIndex( | ||||
| 2933 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 2934 | const IndexOrObjectStoreId& aIndexId, const nsAString& aName) override; | ||||
| 2935 | |||||
| 2936 | PBackgroundIDBRequestParent* AllocPBackgroundIDBRequestParent( | ||||
| 2937 | const int64_t& aRequestId, const RequestParams& aParams) override; | ||||
| 2938 | |||||
| 2939 | mozilla::ipc::IPCResult RecvPBackgroundIDBRequestConstructor( | ||||
| 2940 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | ||||
| 2941 | const RequestParams& aParams) override; | ||||
| 2942 | |||||
| 2943 | bool DeallocPBackgroundIDBRequestParent( | ||||
| 2944 | PBackgroundIDBRequestParent* aActor) override; | ||||
| 2945 | |||||
| 2946 | already_AddRefed<PBackgroundIDBCursorParent> AllocPBackgroundIDBCursorParent( | ||||
| 2947 | const int64_t& aRequestId, const OpenCursorParams& aParams) override; | ||||
| 2948 | |||||
| 2949 | mozilla::ipc::IPCResult RecvPBackgroundIDBCursorConstructor( | ||||
| 2950 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | ||||
| 2951 | const OpenCursorParams& aParams) override; | ||||
| 2952 | }; | ||||
| 2953 | |||||
| 2954 | class FactoryOp : public DatabaseOperationBase, | ||||
| 2955 | public LinkedListElement<FactoryOp> { | ||||
| 2956 | public: | ||||
| 2957 | struct MaybeBlockedDatabaseInfo final { | ||||
| 2958 | SafeRefPtr<Database> mDatabase; | ||||
| 2959 | bool mBlocked; | ||||
| 2960 | |||||
| 2961 | MaybeBlockedDatabaseInfo(MaybeBlockedDatabaseInfo&&) = default; | ||||
| 2962 | MaybeBlockedDatabaseInfo& operator=(MaybeBlockedDatabaseInfo&&) = default; | ||||
| 2963 | |||||
| 2964 | MOZ_IMPLICIT MaybeBlockedDatabaseInfo(SafeRefPtr<Database> aDatabase) | ||||
| 2965 | : mDatabase(std::move(aDatabase)), mBlocked(false) { | ||||
| 2966 | MOZ_ASSERT(mDatabase)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabase)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabase))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabase", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 2966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 2966); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 2967 | |||||
| 2968 | MOZ_COUNT_CTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo >, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, FactoryOp ::MaybeBlockedDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 2969 | } | ||||
| 2970 | |||||
| 2971 | ~MaybeBlockedDatabaseInfo() { | ||||
| 2972 | MOZ_COUNT_DTOR(FactoryOp::MaybeBlockedDatabaseInfo)do { static_assert(std::is_class_v<FactoryOp::MaybeBlockedDatabaseInfo >, "Token '" "FactoryOp::MaybeBlockedDatabaseInfo" "' is not a class type." ); static_assert(!std::is_base_of_v<nsISupports, FactoryOp ::MaybeBlockedDatabaseInfo>, "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogDtor((void*)this, "FactoryOp::MaybeBlockedDatabaseInfo" , sizeof(*this)); } while (0); | ||||
| 2973 | } | ||||
| 2974 | |||||
| 2975 | bool operator==(const Database* aOther) const { | ||||
| 2976 | return mDatabase == aOther; | ||||
| 2977 | } | ||||
| 2978 | |||||
| 2979 | Database* operator->() const& MOZ_NO_ADDREF_RELEASE_ON_RETURN { | ||||
| 2980 | return mDatabase.unsafeGetRawPtr(); | ||||
| 2981 | } | ||||
| 2982 | }; | ||||
| 2983 | |||||
| 2984 | protected: | ||||
| 2985 | enum class State { | ||||
| 2986 | // Just created on the PBackground thread, dispatched to the current thread. | ||||
| 2987 | // Next step is either SendingResults if opening initialization failed, or | ||||
| 2988 | // DirectoryOpenPending if the opening initialization succeeded. | ||||
| 2989 | Initial, | ||||
| 2990 | |||||
| 2991 | // Waiting for directory open allowed on the PBackground thread. The next | ||||
| 2992 | // step is either SendingResults if directory lock failed to acquire, or | ||||
| 2993 | // DirectoryWorkOpen if the factory operation is not tied up to a specific | ||||
| 2994 | // database, or DatabaseOpenPending otherwise. | ||||
| 2995 | DirectoryOpenPending, | ||||
| 2996 | |||||
| 2997 | // Waiting to do/doing directory work on the QuotaManager IO thread. Its | ||||
| 2998 | // next step is DirectoryWorkDone if directory work was successful or | ||||
| 2999 | // SendingResults if directory work failed. | ||||
| 3000 | DirectoryWorkOpen, | ||||
| 3001 | |||||
| 3002 | // Checking if database work can be started. If the database is not blocked | ||||
| 3003 | // by other factory operations then the next step is DatabaseWorkOpen. | ||||
| 3004 | // Otherwise the next step is DatabaseOpenPending. | ||||
| 3005 | DirectoryWorkDone, | ||||
| 3006 | |||||
| 3007 | // Waiting for database open allowed on the PBackground thread. The next | ||||
| 3008 | // step is DatabaseWorkOpen. | ||||
| 3009 | DatabaseOpenPending, | ||||
| 3010 | |||||
| 3011 | // Waiting to do/doing work on the QuotaManager IO thread. Its next step is | ||||
| 3012 | // either BeginVersionChange if the requested version doesn't match the | ||||
| 3013 | // existing database version or SendingResults if the versions match. | ||||
| 3014 | DatabaseWorkOpen, | ||||
| 3015 | |||||
| 3016 | // Starting a version change transaction or deleting a database on the | ||||
| 3017 | // PBackground thread. We need to notify other databases that a version | ||||
| 3018 | // change is about to happen, and maybe tell the request that a version | ||||
| 3019 | // change has been blocked. If databases are notified then the next step is | ||||
| 3020 | // WaitingForOtherDatabasesToClose. Otherwise the next step is | ||||
| 3021 | // WaitingForTransactionsToComplete. | ||||
| 3022 | BeginVersionChange, | ||||
| 3023 | |||||
| 3024 | // Waiting for other databases to close on the PBackground thread. This | ||||
| 3025 | // state may persist until all databases are closed. The next state is | ||||
| 3026 | // WaitingForTransactionsToComplete. | ||||
| 3027 | WaitingForOtherDatabasesToClose, | ||||
| 3028 | |||||
| 3029 | // Waiting for all transactions that could interfere with this operation to | ||||
| 3030 | // complete on the PBackground thread. Next state is | ||||
| 3031 | // DatabaseWorkVersionChange. | ||||
| 3032 | WaitingForTransactionsToComplete, | ||||
| 3033 | |||||
| 3034 | // Waiting to do/doing work on the "work thread". This involves waiting for | ||||
| 3035 | // the VersionChangeOp (OpenDatabaseOp and DeleteDatabaseOp each have a | ||||
| 3036 | // different implementation) to do its work. If the VersionChangeOp is | ||||
| 3037 | // OpenDatabaseOp and it succeeded then the next state is | ||||
| 3038 | // DatabaseWorkVersionUpdate. Otherwise the next step is SendingResults. | ||||
| 3039 | DatabaseWorkVersionChange, | ||||
| 3040 | |||||
| 3041 | // Waiting to do/doing finalization work on the QuotaManager IO thread. | ||||
| 3042 | // Eventually the state will transition to SendingResults. | ||||
| 3043 | DatabaseWorkVersionUpdate, | ||||
| 3044 | |||||
| 3045 | // Waiting to send/sending results on the PBackground thread. Next step is | ||||
| 3046 | // Completed. | ||||
| 3047 | SendingResults, | ||||
| 3048 | |||||
| 3049 | // All done. | ||||
| 3050 | Completed | ||||
| 3051 | }; | ||||
| 3052 | |||||
| 3053 | // Must be released on the background thread! | ||||
| 3054 | SafeRefPtr<Factory> mFactory; | ||||
| 3055 | |||||
| 3056 | Maybe<ContentParentId> mContentParentId; | ||||
| 3057 | |||||
| 3058 | // Must be released on the main thread! | ||||
| 3059 | ClientDirectoryLockHandle mDirectoryLockHandle; | ||||
| 3060 | |||||
| 3061 | nsTArray<NotNull<RefPtr<FactoryOp>>> mBlocking; | ||||
| 3062 | nsTHashSet<RefPtr<FactoryOp>> mBlockedOn; | ||||
| 3063 | |||||
| 3064 | nsTArray<MaybeBlockedDatabaseInfo> mMaybeBlockedDatabases; | ||||
| 3065 | |||||
| 3066 | const PrincipalInfo mPrincipalInfo; | ||||
| 3067 | OriginMetadata mOriginMetadata; | ||||
| 3068 | Maybe<nsString> mDatabaseName; | ||||
| 3069 | Maybe<nsCString> mDatabaseId; | ||||
| 3070 | Maybe<nsString> mDatabaseFilePath; | ||||
| 3071 | Maybe<nsString> mDatabaseFilenameBase; | ||||
| 3072 | int64_t mDirectoryLockId; | ||||
| 3073 | const PersistenceType mPersistenceType; | ||||
| 3074 | State mState; | ||||
| 3075 | bool mWaitingForPermissionRetry; | ||||
| 3076 | bool mEnforcingQuota; | ||||
| 3077 | const bool mDeleting; | ||||
| 3078 | FlippedOnce<false> mInPrivateBrowsing; | ||||
| 3079 | |||||
| 3080 | public: | ||||
| 3081 | const nsACString& Origin() const { | ||||
| 3082 | AssertIsOnOwningThread(); | ||||
| 3083 | |||||
| 3084 | return mOriginMetadata.mOrigin; | ||||
| 3085 | } | ||||
| 3086 | |||||
| 3087 | const Maybe<nsString>& DatabaseNameRef() const { | ||||
| 3088 | AssertIsOnOwningThread(); | ||||
| 3089 | |||||
| 3090 | return mDatabaseName; | ||||
| 3091 | } | ||||
| 3092 | |||||
| 3093 | bool DatabaseFilePathIsKnown() const { | ||||
| 3094 | AssertIsOnOwningThread(); | ||||
| 3095 | |||||
| 3096 | return mDatabaseFilePath.isSome(); | ||||
| 3097 | } | ||||
| 3098 | |||||
| 3099 | const nsAString& DatabaseFilePath() const { | ||||
| 3100 | AssertIsOnOwningThread(); | ||||
| 3101 | MOZ_ASSERT(mDatabaseFilePath)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mDatabaseFilePath)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mDatabaseFilePath))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mDatabaseFilePath" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3101) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath" ")"); do { MOZ_CrashSequence(__null, 3101); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3102 | |||||
| 3103 | return mDatabaseFilePath.ref(); | ||||
| 3104 | } | ||||
| 3105 | |||||
| 3106 | nsresult DispatchThisAfterProcessingCurrentEvent( | ||||
| 3107 | nsCOMPtr<nsIEventTarget> aEventTarget); | ||||
| 3108 | |||||
| 3109 | void NoteDatabaseBlocked(Database* aDatabase); | ||||
| 3110 | |||||
| 3111 | void NoteDatabaseClosed(Database* aDatabase); | ||||
| 3112 | |||||
| 3113 | #ifdef DEBUG1 | ||||
| 3114 | bool HasBlockedDatabases() const { return !mMaybeBlockedDatabases.IsEmpty(); } | ||||
| 3115 | #endif | ||||
| 3116 | |||||
| 3117 | void StringifyState(nsACString& aResult) const; | ||||
| 3118 | |||||
| 3119 | void Stringify(nsACString& aResult) const; | ||||
| 3120 | |||||
| 3121 | protected: | ||||
| 3122 | FactoryOp(SafeRefPtr<Factory> aFactory, | ||||
| 3123 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3124 | const PersistenceType aPersistenceType, | ||||
| 3125 | const PrincipalInfo& aPrincipalInfo, | ||||
| 3126 | const Maybe<nsString>& aDatabaseName, bool aDeleting); | ||||
| 3127 | |||||
| 3128 | ~FactoryOp() override { | ||||
| 3129 | // Normally this would be out-of-line since it is a virtual function but | ||||
| 3130 | // MSVC 2010 fails to link for some reason if it is not inlined here... | ||||
| 3131 | MOZ_ASSERT_IF(OperationMayProceed(),do { if (OperationMayProceed()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(mState == State:: Initial || mState == State::Completed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState == State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mState == State::Initial || mState == State::Completed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed" ")"); do { MOZ_CrashSequence(__null, 3132); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3132 | mState == State::Initial || mState == State::Completed)do { if (OperationMayProceed()) { do { static_assert( mozilla ::detail::AssertionConditionType<decltype(mState == State:: Initial || mState == State::Completed)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mState == State::Initial || mState == State::Completed))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mState == State::Initial || mState == State::Completed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3132); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::Completed" ")"); do { MOZ_CrashSequence(__null, 3132); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3133 | MOZ_DIAGNOSTIC_ASSERT(!isInList())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!isInList())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!isInList()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!isInList()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3133); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!isInList()" ")"); do { MOZ_CrashSequence(__null, 3133); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3134 | } | ||||
| 3135 | |||||
| 3136 | nsresult Open(); | ||||
| 3137 | |||||
| 3138 | nsresult DirectoryOpen(); | ||||
| 3139 | |||||
| 3140 | nsresult DirectoryWorkDone(); | ||||
| 3141 | |||||
| 3142 | nsresult SendToIOThread(); | ||||
| 3143 | |||||
| 3144 | void WaitForTransactions(); | ||||
| 3145 | |||||
| 3146 | void CleanupMetadata(); | ||||
| 3147 | |||||
| 3148 | void FinishSendResults(); | ||||
| 3149 | |||||
| 3150 | nsresult SendVersionChangeMessages(DatabaseActorInfo* aDatabaseActorInfo, | ||||
| 3151 | Maybe<Database&> aOpeningDatabase, | ||||
| 3152 | uint64_t aOldVersion, | ||||
| 3153 | const Maybe<uint64_t>& aNewVersion); | ||||
| 3154 | |||||
| 3155 | // Methods that subclasses must implement. | ||||
| 3156 | virtual nsresult DoDirectoryWork() = 0; | ||||
| 3157 | |||||
| 3158 | virtual nsresult DatabaseOpen() = 0; | ||||
| 3159 | |||||
| 3160 | virtual nsresult DoDatabaseWork() = 0; | ||||
| 3161 | |||||
| 3162 | virtual nsresult BeginVersionChange() = 0; | ||||
| 3163 | |||||
| 3164 | virtual bool AreActorsAlive() = 0; | ||||
| 3165 | |||||
| 3166 | virtual nsresult DispatchToWorkThread() = 0; | ||||
| 3167 | |||||
| 3168 | virtual nsresult DoVersionUpdate() = 0; | ||||
| 3169 | |||||
| 3170 | // Should only be called by Run(). | ||||
| 3171 | virtual void SendResults() = 0; | ||||
| 3172 | |||||
| 3173 | // Common nsIRunnable implementation that subclasses may not override. | ||||
| 3174 | NS_IMETHODvirtual nsresult | ||||
| 3175 | Run() final; | ||||
| 3176 | |||||
| 3177 | void DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle); | ||||
| 3178 | |||||
| 3179 | void DirectoryLockFailed(); | ||||
| 3180 | |||||
| 3181 | virtual void SendBlockedNotification() = 0; | ||||
| 3182 | |||||
| 3183 | private: | ||||
| 3184 | static nsAutoString GetDatabaseFilenameBase(const nsAString& aDatabaseName, | ||||
| 3185 | bool aIsPrivate); | ||||
| 3186 | |||||
| 3187 | // Test whether this FactoryOp needs to wait for the given op. | ||||
| 3188 | bool MustWaitFor(const FactoryOp& aExistingOp); | ||||
| 3189 | |||||
| 3190 | void AddBlockingOp(FactoryOp& aOp) { | ||||
| 3191 | AssertIsOnOwningThread(); | ||||
| 3192 | |||||
| 3193 | mBlocking.AppendElement(WrapNotNull(&aOp)); | ||||
| 3194 | } | ||||
| 3195 | |||||
| 3196 | void AddBlockedOnOp(FactoryOp& aOp) { | ||||
| 3197 | AssertIsOnOwningThread(); | ||||
| 3198 | |||||
| 3199 | mBlockedOn.Insert(&aOp); | ||||
| 3200 | } | ||||
| 3201 | |||||
| 3202 | void MaybeUnblock(FactoryOp& aOp) { | ||||
| 3203 | AssertIsOnOwningThread(); | ||||
| 3204 | |||||
| 3205 | mBlockedOn.Remove(&aOp); | ||||
| 3206 | if (mBlockedOn.IsEmpty()) { | ||||
| 3207 | MOZ_ALWAYS_SUCCEEDS(NS_DispatchToCurrentThread(this))do { if ((__builtin_expect(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl (NS_DispatchToCurrentThread(this))), 1)))), 1))) { } else { do { do { } while (false); MOZ_ReportCrash("" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3207) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(this))" ")"); do { MOZ_CrashSequence(__null, 3207); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 3208 | } | ||||
| 3209 | } | ||||
| 3210 | }; | ||||
| 3211 | |||||
| 3212 | class FactoryRequestOp : public FactoryOp, | ||||
| 3213 | public PBackgroundIDBFactoryRequestParent { | ||||
| 3214 | protected: | ||||
| 3215 | const CommonFactoryRequestParams mCommonParams; | ||||
| 3216 | |||||
| 3217 | FactoryRequestOp(SafeRefPtr<Factory> aFactory, | ||||
| 3218 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3219 | const CommonFactoryRequestParams& aCommonParams, | ||||
| 3220 | bool aDeleting) | ||||
| 3221 | : FactoryOp(std::move(aFactory), aContentParentId, | ||||
| 3222 | aCommonParams.metadata().persistenceType(), | ||||
| 3223 | aCommonParams.principalInfo(), | ||||
| 3224 | Some(aCommonParams.metadata().name()), aDeleting), | ||||
| 3225 | mCommonParams(aCommonParams) {} | ||||
| 3226 | |||||
| 3227 | nsresult DoDirectoryWork() override; | ||||
| 3228 | |||||
| 3229 | // IPDL methods. | ||||
| 3230 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 3231 | }; | ||||
| 3232 | |||||
| 3233 | class OpenDatabaseOp final : public FactoryRequestOp { | ||||
| 3234 | friend class Database; | ||||
| 3235 | friend class VersionChangeTransaction; | ||||
| 3236 | |||||
| 3237 | class VersionChangeOp; | ||||
| 3238 | |||||
| 3239 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | ||||
| 3240 | |||||
| 3241 | uint64_t mRequestedVersion; | ||||
| 3242 | SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 3243 | |||||
| 3244 | SafeRefPtr<Database> mDatabase; | ||||
| 3245 | SafeRefPtr<VersionChangeTransaction> mVersionChangeTransaction; | ||||
| 3246 | |||||
| 3247 | // This is only set while a VersionChangeOp is live. It holds a strong | ||||
| 3248 | // reference to its OpenDatabaseOp object so this is a weak pointer to avoid | ||||
| 3249 | // cycles. | ||||
| 3250 | VersionChangeOp* mVersionChangeOp; | ||||
| 3251 | |||||
| 3252 | MoveOnlyFunction<void()> mCompleteCallback; | ||||
| 3253 | |||||
| 3254 | uint32_t mTelemetryId; | ||||
| 3255 | |||||
| 3256 | public: | ||||
| 3257 | OpenDatabaseOp(SafeRefPtr<Factory> aFactory, | ||||
| 3258 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3259 | const CommonFactoryRequestParams& aParams); | ||||
| 3260 | |||||
| 3261 | private: | ||||
| 3262 | ~OpenDatabaseOp() override { MOZ_ASSERT(!mVersionChangeOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mVersionChangeOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mVersionChangeOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mVersionChangeOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3262) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeOp" ")"); do { MOZ_CrashSequence(__null, 3262); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 3263 | |||||
| 3264 | nsresult LoadDatabaseInformation(mozIStorageConnection& aConnection); | ||||
| 3265 | |||||
| 3266 | nsresult SendUpgradeNeeded(); | ||||
| 3267 | |||||
| 3268 | void EnsureDatabaseActor(); | ||||
| 3269 | |||||
| 3270 | nsresult EnsureDatabaseActorIsAlive(); | ||||
| 3271 | |||||
| 3272 | mozilla::Result<DatabaseSpec, nsresult> MetadataToSpec() const; | ||||
| 3273 | |||||
| 3274 | void AssertMetadataConsistency(const FullDatabaseMetadata& aMetadata) | ||||
| 3275 | #ifdef DEBUG1 | ||||
| 3276 | ; | ||||
| 3277 | #else | ||||
| 3278 | { | ||||
| 3279 | } | ||||
| 3280 | #endif | ||||
| 3281 | |||||
| 3282 | void ConnectionClosedCallback(); | ||||
| 3283 | |||||
| 3284 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 3285 | |||||
| 3286 | nsresult DatabaseOpen() override; | ||||
| 3287 | |||||
| 3288 | nsresult DoDatabaseWork() override; | ||||
| 3289 | |||||
| 3290 | nsresult BeginVersionChange() override; | ||||
| 3291 | |||||
| 3292 | bool AreActorsAlive() override; | ||||
| 3293 | |||||
| 3294 | void SendBlockedNotification() override; | ||||
| 3295 | |||||
| 3296 | nsresult DispatchToWorkThread() override; | ||||
| 3297 | |||||
| 3298 | nsresult DoVersionUpdate() override; | ||||
| 3299 | |||||
| 3300 | void SendResults() override; | ||||
| 3301 | |||||
| 3302 | static nsresult UpdateLocaleAwareIndex(mozIStorageConnection& aConnection, | ||||
| 3303 | const IndexMetadata& aIndexMetadata, | ||||
| 3304 | const nsCString& aLocale); | ||||
| 3305 | }; | ||||
| 3306 | |||||
| 3307 | class OpenDatabaseOp::VersionChangeOp final | ||||
| 3308 | : public TransactionDatabaseOperationBase { | ||||
| 3309 | friend class OpenDatabaseOp; | ||||
| 3310 | |||||
| 3311 | RefPtr<OpenDatabaseOp> mOpenDatabaseOp; | ||||
| 3312 | const uint64_t mRequestedVersion; | ||||
| 3313 | uint64_t mPreviousVersion; | ||||
| 3314 | |||||
| 3315 | private: | ||||
| 3316 | explicit VersionChangeOp(OpenDatabaseOp* aOpenDatabaseOp) | ||||
| 3317 | : TransactionDatabaseOperationBase( | ||||
| 3318 | aOpenDatabaseOp->mVersionChangeTransaction.clonePtr(), | ||||
| 3319 | /* aRequestId */ 0, aOpenDatabaseOp->LoggingSerialNumber()), | ||||
| 3320 | mOpenDatabaseOp(aOpenDatabaseOp), | ||||
| 3321 | mRequestedVersion(aOpenDatabaseOp->mRequestedVersion), | ||||
| 3322 | mPreviousVersion( | ||||
| 3323 | aOpenDatabaseOp->mMetadata->mCommonMetadata.version()) { | ||||
| 3324 | MOZ_ASSERT(aOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3324) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 3324); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3325 | MOZ_ASSERT(mRequestedVersion)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mRequestedVersion)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mRequestedVersion))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mRequestedVersion" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3325) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRequestedVersion" ")"); do { MOZ_CrashSequence(__null, 3325); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3326 | } | ||||
| 3327 | |||||
| 3328 | ~VersionChangeOp() override { MOZ_ASSERT(!mOpenDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(!mOpenDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(!mOpenDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("!mOpenDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3328) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 3328); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 3329 | |||||
| 3330 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3331 | |||||
| 3332 | TransactionOpResult SendSuccessResult() override; | ||||
| 3333 | |||||
| 3334 | bool SendFailureResult(const TransactionOpResult& aResult) override; | ||||
| 3335 | |||||
| 3336 | void Cleanup() override; | ||||
| 3337 | }; | ||||
| 3338 | |||||
| 3339 | class DeleteDatabaseOp final : public FactoryRequestOp { | ||||
| 3340 | class VersionChangeOp; | ||||
| 3341 | |||||
| 3342 | nsString mDatabaseDirectoryPath; | ||||
| 3343 | uint64_t mPreviousVersion; | ||||
| 3344 | |||||
| 3345 | public: | ||||
| 3346 | DeleteDatabaseOp(SafeRefPtr<Factory> aFactory, | ||||
| 3347 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3348 | const CommonFactoryRequestParams& aParams) | ||||
| 3349 | : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams, | ||||
| 3350 | /* aDeleting */ true), | ||||
| 3351 | mPreviousVersion(0) {} | ||||
| 3352 | |||||
| 3353 | private: | ||||
| 3354 | ~DeleteDatabaseOp() override = default; | ||||
| 3355 | |||||
| 3356 | nsresult LoadPreviousVersion(nsIFile& aDatabaseFile); | ||||
| 3357 | |||||
| 3358 | nsresult DatabaseOpen() override; | ||||
| 3359 | |||||
| 3360 | nsresult DoDatabaseWork() override; | ||||
| 3361 | |||||
| 3362 | nsresult BeginVersionChange() override; | ||||
| 3363 | |||||
| 3364 | bool AreActorsAlive() override; | ||||
| 3365 | |||||
| 3366 | void SendBlockedNotification() override; | ||||
| 3367 | |||||
| 3368 | nsresult DispatchToWorkThread() override; | ||||
| 3369 | |||||
| 3370 | nsresult DoVersionUpdate() override; | ||||
| 3371 | |||||
| 3372 | void SendResults() override; | ||||
| 3373 | }; | ||||
| 3374 | |||||
| 3375 | class DeleteDatabaseOp::VersionChangeOp final : public DatabaseOperationBase { | ||||
| 3376 | friend class DeleteDatabaseOp; | ||||
| 3377 | |||||
| 3378 | RefPtr<DeleteDatabaseOp> mDeleteDatabaseOp; | ||||
| 3379 | |||||
| 3380 | private: | ||||
| 3381 | explicit VersionChangeOp(DeleteDatabaseOp* aDeleteDatabaseOp) | ||||
| 3382 | : DatabaseOperationBase(aDeleteDatabaseOp->BackgroundChildLoggingId(), | ||||
| 3383 | aDeleteDatabaseOp->LoggingSerialNumber()), | ||||
| 3384 | mDeleteDatabaseOp(aDeleteDatabaseOp) { | ||||
| 3385 | MOZ_ASSERT(aDeleteDatabaseOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aDeleteDatabaseOp)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aDeleteDatabaseOp))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aDeleteDatabaseOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3385) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDeleteDatabaseOp" ")"); do { MOZ_CrashSequence(__null, 3385); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3386 | MOZ_ASSERT(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty())do { static_assert( mozilla::detail::AssertionConditionType< decltype(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty ())>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty ()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDeleteDatabaseOp->mDatabaseDirectoryPath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 3386); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3387 | } | ||||
| 3388 | |||||
| 3389 | ~VersionChangeOp() override = default; | ||||
| 3390 | |||||
| 3391 | nsresult RunOnIOThread(); | ||||
| 3392 | |||||
| 3393 | void RunOnOwningThread(); | ||||
| 3394 | |||||
| 3395 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 3396 | }; | ||||
| 3397 | |||||
| 3398 | class GetDatabasesOp final : public FactoryOp { | ||||
| 3399 | nsTHashMap<nsStringHashKey, DatabaseMetadata> mDatabaseMetadataTable; | ||||
| 3400 | nsTArray<DatabaseMetadata> mDatabaseMetadataArray; | ||||
| 3401 | Factory::GetDatabasesResolver mResolver; | ||||
| 3402 | |||||
| 3403 | public: | ||||
| 3404 | GetDatabasesOp(SafeRefPtr<Factory> aFactory, | ||||
| 3405 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 3406 | const PersistenceType aPersistenceType, | ||||
| 3407 | const PrincipalInfo& aPrincipalInfo, | ||||
| 3408 | Factory::GetDatabasesResolver&& aResolver) | ||||
| 3409 | : FactoryOp(std::move(aFactory), aContentParentId, aPersistenceType, | ||||
| 3410 | aPrincipalInfo, Nothing(), /* aDeleting */ false), | ||||
| 3411 | mResolver(std::move(aResolver)) {} | ||||
| 3412 | |||||
| 3413 | private: | ||||
| 3414 | ~GetDatabasesOp() override = default; | ||||
| 3415 | |||||
| 3416 | nsresult DatabasesNotAvailable(); | ||||
| 3417 | |||||
| 3418 | nsresult DoDirectoryWork() override; | ||||
| 3419 | |||||
| 3420 | nsresult DatabaseOpen() override; | ||||
| 3421 | |||||
| 3422 | nsresult DoDatabaseWork() override; | ||||
| 3423 | |||||
| 3424 | nsresult BeginVersionChange() override; | ||||
| 3425 | |||||
| 3426 | bool AreActorsAlive() override; | ||||
| 3427 | |||||
| 3428 | void SendBlockedNotification() override; | ||||
| 3429 | |||||
| 3430 | nsresult DispatchToWorkThread() override; | ||||
| 3431 | |||||
| 3432 | nsresult DoVersionUpdate() override; | ||||
| 3433 | |||||
| 3434 | void SendResults() override; | ||||
| 3435 | }; | ||||
| 3436 | |||||
| 3437 | class VersionChangeTransactionOp : public TransactionDatabaseOperationBase { | ||||
| 3438 | public: | ||||
| 3439 | void Cleanup() override; | ||||
| 3440 | |||||
| 3441 | protected: | ||||
| 3442 | explicit VersionChangeTransactionOp( | ||||
| 3443 | SafeRefPtr<VersionChangeTransaction> aTransaction) | ||||
| 3444 | : TransactionDatabaseOperationBase(std::move(aTransaction), | ||||
| 3445 | /* aRequestId */ 0) {} | ||||
| 3446 | |||||
| 3447 | ~VersionChangeTransactionOp() override = default; | ||||
| 3448 | |||||
| 3449 | private: | ||||
| 3450 | TransactionOpResult SendSuccessResult() override; | ||||
| 3451 | |||||
| 3452 | bool SendFailureResult(const TransactionOpResult& aResult) override; | ||||
| 3453 | }; | ||||
| 3454 | |||||
| 3455 | class CreateObjectStoreOp final : public VersionChangeTransactionOp { | ||||
| 3456 | friend class VersionChangeTransaction; | ||||
| 3457 | |||||
| 3458 | const ObjectStoreMetadata mMetadata; | ||||
| 3459 | |||||
| 3460 | private: | ||||
| 3461 | // Only created by VersionChangeTransaction. | ||||
| 3462 | CreateObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3463 | const ObjectStoreMetadata& aMetadata) | ||||
| 3464 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 3465 | mMetadata(aMetadata) { | ||||
| 3466 | MOZ_ASSERT(aMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(aMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aMetadata.id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aMetadata.id()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 3466) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")" ); do { MOZ_CrashSequence(__null, 3466); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3467 | } | ||||
| 3468 | |||||
| 3469 | ~CreateObjectStoreOp() override = default; | ||||
| 3470 | |||||
| 3471 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3472 | }; | ||||
| 3473 | |||||
| 3474 | class DeleteObjectStoreOp final : public VersionChangeTransactionOp { | ||||
| 3475 | friend class VersionChangeTransaction; | ||||
| 3476 | |||||
| 3477 | const SafeRefPtr<FullObjectStoreMetadata> mMetadata; | ||||
| 3478 | const bool mIsLastObjectStore; | ||||
| 3479 | |||||
| 3480 | private: | ||||
| 3481 | // Only created by VersionChangeTransaction. | ||||
| 3482 | DeleteObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3483 | SafeRefPtr<FullObjectStoreMetadata> aMetadata, | ||||
| 3484 | const bool aIsLastObjectStore) | ||||
| 3485 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 3486 | mMetadata(std::move(aMetadata)), | ||||
| 3487 | mIsLastObjectStore(aIsLastObjectStore) { | ||||
| 3488 | MOZ_ASSERT(mMetadata->mCommonMetadata.id())do { static_assert( mozilla::detail::AssertionConditionType< decltype(mMetadata->mCommonMetadata.id())>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mMetadata->mCommonMetadata .id()))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("mMetadata->mCommonMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3488); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 3488); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3489 | } | ||||
| 3490 | |||||
| 3491 | ~DeleteObjectStoreOp() override = default; | ||||
| 3492 | |||||
| 3493 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3494 | }; | ||||
| 3495 | |||||
| 3496 | class RenameObjectStoreOp final : public VersionChangeTransactionOp { | ||||
| 3497 | friend class VersionChangeTransaction; | ||||
| 3498 | |||||
| 3499 | const int64_t mId; | ||||
| 3500 | const nsString mNewName; | ||||
| 3501 | |||||
| 3502 | private: | ||||
| 3503 | // Only created by VersionChangeTransaction. | ||||
| 3504 | RenameObjectStoreOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3505 | FullObjectStoreMetadata& aMetadata) | ||||
| 3506 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 3507 | mId(aMetadata.mCommonMetadata.id()), | ||||
| 3508 | mNewName(aMetadata.mCommonMetadata.name()) { | ||||
| 3509 | MOZ_ASSERT(mId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mId)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(mId))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("mId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mId" ")"); do { MOZ_CrashSequence(__null, 3509); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 3510 | } | ||||
| 3511 | |||||
| 3512 | ~RenameObjectStoreOp() override = default; | ||||
| 3513 | |||||
| 3514 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3515 | }; | ||||
| 3516 | |||||
| 3517 | class CreateIndexOp final : public VersionChangeTransactionOp { | ||||
| 3518 | friend class VersionChangeTransaction; | ||||
| 3519 | |||||
| 3520 | class UpdateIndexDataValuesFunction; | ||||
| 3521 | |||||
| 3522 | const IndexMetadata mMetadata; | ||||
| 3523 | Maybe<UniqueIndexTable> mMaybeUniqueIndexTable; | ||||
| 3524 | const SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 3525 | const nsCString mDatabaseId; | ||||
| 3526 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 3527 | |||||
| 3528 | private: | ||||
| 3529 | // Only created by VersionChangeTransaction. | ||||
| 3530 | CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3531 | IndexOrObjectStoreId aObjectStoreId, | ||||
| 3532 | const IndexMetadata& aMetadata); | ||||
| 3533 | |||||
| 3534 | ~CreateIndexOp() override = default; | ||||
| 3535 | |||||
| 3536 | nsresult InsertDataFromObjectStore(DatabaseConnection* aConnection); | ||||
| 3537 | |||||
| 3538 | nsresult InsertDataFromObjectStoreInternal( | ||||
| 3539 | DatabaseConnection* aConnection) const; | ||||
| 3540 | |||||
| 3541 | bool Init(TransactionBase& aTransaction) override; | ||||
| 3542 | |||||
| 3543 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3544 | }; | ||||
| 3545 | |||||
| 3546 | class CreateIndexOp::UpdateIndexDataValuesFunction final | ||||
| 3547 | : public mozIStorageFunction { | ||||
| 3548 | RefPtr<CreateIndexOp> mOp; | ||||
| 3549 | RefPtr<DatabaseConnection> mConnection; | ||||
| 3550 | const NotNull<SafeRefPtr<Database>> mDatabase; | ||||
| 3551 | |||||
| 3552 | public: | ||||
| 3553 | UpdateIndexDataValuesFunction(CreateIndexOp* aOp, | ||||
| 3554 | DatabaseConnection* aConnection, | ||||
| 3555 | SafeRefPtr<Database> aDatabase) | ||||
| 3556 | : mOp(aOp), | ||||
| 3557 | mConnection(aConnection), | ||||
| 3558 | mDatabase(WrapNotNull(std::move(aDatabase))) { | ||||
| 3559 | MOZ_ASSERT(aOp)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aOp)>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(aOp))), 0))) { do { } while (false ); MOZ_ReportAssertionFailure("aOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3559); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOp" ")"); do { MOZ_CrashSequence(__null, 3559); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 3560 | MOZ_ASSERT(aConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(aConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3560); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 3560); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3561 | aConnection->AssertIsOnConnectionThread(); | ||||
| 3562 | } | ||||
| 3563 | |||||
| 3564 | NS_DECL_ISUPPORTSpublic: virtual nsresult QueryInterface(const nsIID& aIID , void** aInstancePtr) override; virtual MozExternalRefCountType AddRef(void) override; virtual MozExternalRefCountType Release (void) override; using HasThreadSafeRefCnt = std::false_type; protected: nsAutoRefCnt mRefCnt; nsAutoOwningThread _mOwningThread ; public: | ||||
| 3565 | |||||
| 3566 | private: | ||||
| 3567 | ~UpdateIndexDataValuesFunction() = default; | ||||
| 3568 | |||||
| 3569 | NS_DECL_MOZISTORAGEFUNCTIONvirtual nsresult OnFunctionCall(mozIStorageValueArray *aFunctionArguments , nsIVariant **_retval) override; | ||||
| 3570 | }; | ||||
| 3571 | |||||
| 3572 | class DeleteIndexOp final : public VersionChangeTransactionOp { | ||||
| 3573 | friend class VersionChangeTransaction; | ||||
| 3574 | |||||
| 3575 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 3576 | const IndexOrObjectStoreId mIndexId; | ||||
| 3577 | const bool mUnique; | ||||
| 3578 | const bool mIsLastIndex; | ||||
| 3579 | |||||
| 3580 | private: | ||||
| 3581 | // Only created by VersionChangeTransaction. | ||||
| 3582 | DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3583 | IndexOrObjectStoreId aObjectStoreId, | ||||
| 3584 | IndexOrObjectStoreId aIndexId, const bool aUnique, | ||||
| 3585 | const bool aIsLastIndex); | ||||
| 3586 | |||||
| 3587 | ~DeleteIndexOp() override = default; | ||||
| 3588 | |||||
| 3589 | nsresult RemoveReferencesToIndex( | ||||
| 3590 | DatabaseConnection* aConnection, const Key& aObjectDataKey, | ||||
| 3591 | nsTArray<IndexDataValue>& aIndexValues) const; | ||||
| 3592 | |||||
| 3593 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3594 | }; | ||||
| 3595 | |||||
| 3596 | class RenameIndexOp final : public VersionChangeTransactionOp { | ||||
| 3597 | friend class VersionChangeTransaction; | ||||
| 3598 | |||||
| 3599 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 3600 | const IndexOrObjectStoreId mIndexId; | ||||
| 3601 | const nsString mNewName; | ||||
| 3602 | |||||
| 3603 | private: | ||||
| 3604 | // Only created by VersionChangeTransaction. | ||||
| 3605 | RenameIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 3606 | FullIndexMetadata& aMetadata, | ||||
| 3607 | IndexOrObjectStoreId aObjectStoreId) | ||||
| 3608 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 3609 | mObjectStoreId(aObjectStoreId), | ||||
| 3610 | mIndexId(aMetadata.mCommonMetadata.id()), | ||||
| 3611 | mNewName(aMetadata.mCommonMetadata.name()) { | ||||
| 3612 | MOZ_ASSERT(mIndexId)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mIndexId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mIndexId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3612); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIndexId" ")" ); do { MOZ_CrashSequence(__null, 3612); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3613 | } | ||||
| 3614 | |||||
| 3615 | ~RenameIndexOp() override = default; | ||||
| 3616 | |||||
| 3617 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3618 | }; | ||||
| 3619 | |||||
| 3620 | class NormalTransactionOp : public TransactionDatabaseOperationBase, | ||||
| 3621 | public PBackgroundIDBRequestParent { | ||||
| 3622 | #ifdef DEBUG1 | ||||
| 3623 | bool mResponseSent; | ||||
| 3624 | #endif | ||||
| 3625 | |||||
| 3626 | public: | ||||
| 3627 | void Cleanup() override; | ||||
| 3628 | |||||
| 3629 | protected: | ||||
| 3630 | NormalTransactionOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 3631 | const int64_t aRequestId) | ||||
| 3632 | : TransactionDatabaseOperationBase(std::move(aTransaction), aRequestId) | ||||
| 3633 | #ifdef DEBUG1 | ||||
| 3634 | , | ||||
| 3635 | mResponseSent(false) | ||||
| 3636 | #endif | ||||
| 3637 | { | ||||
| 3638 | } | ||||
| 3639 | |||||
| 3640 | ~NormalTransactionOp() override = default; | ||||
| 3641 | |||||
| 3642 | // An overload of DatabaseOperationBase's function that can avoid doing extra | ||||
| 3643 | // work on non-versionchange transactions. | ||||
| 3644 | mozilla::Result<bool, nsresult> ObjectStoreHasIndexes( | ||||
| 3645 | DatabaseConnection& aConnection, IndexOrObjectStoreId aObjectStoreId, | ||||
| 3646 | bool aMayHaveIndexes); | ||||
| 3647 | |||||
| 3648 | virtual mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams(); | ||||
| 3649 | |||||
| 3650 | // Subclasses use this override to set the IPDL response value. | ||||
| 3651 | virtual void GetResponse(RequestResponse& aResponse, | ||||
| 3652 | size_t* aResponseSize) = 0; | ||||
| 3653 | |||||
| 3654 | private: | ||||
| 3655 | nsresult SendPreprocessInfo() override; | ||||
| 3656 | |||||
| 3657 | TransactionOpResult SendSuccessResult() override; | ||||
| 3658 | |||||
| 3659 | bool SendFailureResult(const TransactionOpResult& aResult) override; | ||||
| 3660 | |||||
| 3661 | // IPDL methods. | ||||
| 3662 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 3663 | |||||
| 3664 | mozilla::ipc::IPCResult RecvContinue( | ||||
| 3665 | const PreprocessResponse& aResponse) final; | ||||
| 3666 | }; | ||||
| 3667 | |||||
| 3668 | class ObjectStoreAddOrPutRequestOp final : public NormalTransactionOp { | ||||
| 3669 | friend class TransactionBase; | ||||
| 3670 | |||||
| 3671 | using PersistenceType = mozilla::dom::quota::PersistenceType; | ||||
| 3672 | |||||
| 3673 | class StoredFileInfo final { | ||||
| 3674 | InitializedOnce<const NotNull<SafeRefPtr<DatabaseFileInfo>>> mFileInfo; | ||||
| 3675 | // Either nothing, a file actor or a non-Blob-backed inputstream to write to | ||||
| 3676 | // disk. | ||||
| 3677 | using FileActorOrInputStream = | ||||
| 3678 | Variant<Nothing, RefPtr<DatabaseFile>, nsCOMPtr<nsIInputStream>>; | ||||
| 3679 | InitializedOnce<const FileActorOrInputStream> mFileActorOrInputStream; | ||||
| 3680 | #ifdef DEBUG1 | ||||
| 3681 | const StructuredCloneFileBase::FileType mType; | ||||
| 3682 | #endif | ||||
| 3683 | void EnsureCipherKey(); | ||||
| 3684 | void AssertInvariants() const; | ||||
| 3685 | |||||
| 3686 | StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3687 | RefPtr<DatabaseFile> aFileActor); | ||||
| 3688 | |||||
| 3689 | StoredFileInfo(SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3690 | nsCOMPtr<nsIInputStream> aInputStream); | ||||
| 3691 | |||||
| 3692 | public: | ||||
| 3693 | #if defined(NS_BUILD_REFCNT_LOGGING1) | ||||
| 3694 | // Only for MOZ_COUNT_CTOR. | ||||
| 3695 | StoredFileInfo(StoredFileInfo&& aOther) | ||||
| 3696 | : mFileInfo{std::move(aOther.mFileInfo)}, | ||||
| 3697 | mFileActorOrInputStream{std::move(aOther.mFileActorOrInputStream)} | ||||
| 3698 | # ifdef DEBUG1 | ||||
| 3699 | , | ||||
| 3700 | mType{aOther.mType} | ||||
| 3701 | # endif | ||||
| 3702 | { | ||||
| 3703 | MOZ_COUNT_CTOR(ObjectStoreAddOrPutRequestOp::StoredFileInfo)do { static_assert(std::is_class_v<ObjectStoreAddOrPutRequestOp ::StoredFileInfo>, "Token '" "ObjectStoreAddOrPutRequestOp::StoredFileInfo" "' is not a class type."); static_assert(!std::is_base_of_v< nsISupports, ObjectStoreAddOrPutRequestOp::StoredFileInfo> , "nsISupports classes don't need to call MOZ_COUNT_CTOR or " "MOZ_COUNT_DTOR");; NS_LogCtor((void*)this, "ObjectStoreAddOrPutRequestOp::StoredFileInfo" , sizeof(*this)); } while (0); | ||||
| 3704 | } | ||||
| 3705 | #else | ||||
| 3706 | StoredFileInfo(StoredFileInfo&&) = default; | ||||
| 3707 | #endif | ||||
| 3708 | |||||
| 3709 | static StoredFileInfo CreateForBlob(SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3710 | RefPtr<DatabaseFile> aFileActor); | ||||
| 3711 | static StoredFileInfo CreateForStructuredClone( | ||||
| 3712 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3713 | nsCOMPtr<nsIInputStream> aInputStream); | ||||
| 3714 | |||||
| 3715 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | ||||
| 3716 | ~StoredFileInfo() { | ||||
| 3717 | AssertIsOnBackgroundThread(); | ||||
| 3718 | AssertInvariants(); | ||||
| 3719 | |||||
| 3720 | 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); | ||||
| 3721 | } | ||||
| 3722 | #endif | ||||
| 3723 | |||||
| 3724 | bool IsValid() const { return static_cast<bool>(mFileInfo); } | ||||
| 3725 | |||||
| 3726 | const DatabaseFileInfo& GetFileInfo() const { return **mFileInfo; } | ||||
| 3727 | |||||
| 3728 | bool ShouldCompress() const; | ||||
| 3729 | |||||
| 3730 | void NotifyWriteSucceeded() const; | ||||
| 3731 | |||||
| 3732 | using InputStreamResult = | ||||
| 3733 | mozilla::Result<nsCOMPtr<nsIInputStream>, nsresult>; | ||||
| 3734 | InputStreamResult GetInputStream(); | ||||
| 3735 | |||||
| 3736 | void Serialize(nsString& aText) const; | ||||
| 3737 | }; | ||||
| 3738 | class SCInputStream; | ||||
| 3739 | |||||
| 3740 | ObjectStoreAddPutParams mParams; | ||||
| 3741 | Maybe<UniqueIndexTable> mUniqueIndexTable; | ||||
| 3742 | |||||
| 3743 | // This must be non-const so that we can update the mNextAutoIncrementId field | ||||
| 3744 | // if we are modifying an autoIncrement objectStore. | ||||
| 3745 | SafeRefPtr<FullObjectStoreMetadata> mMetadata; | ||||
| 3746 | |||||
| 3747 | nsTArray<StoredFileInfo> mStoredFileInfos; | ||||
| 3748 | |||||
| 3749 | Key mResponse; | ||||
| 3750 | const OriginMetadata mOriginMetadata; | ||||
| 3751 | const PersistenceType mPersistenceType; | ||||
| 3752 | const bool mOverwrite; | ||||
| 3753 | bool mObjectStoreMayHaveIndexes; | ||||
| 3754 | bool mDataOverThreshold; | ||||
| 3755 | |||||
| 3756 | private: | ||||
| 3757 | // Only created by TransactionBase. | ||||
| 3758 | ObjectStoreAddOrPutRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 3759 | const int64_t aRequestId, | ||||
| 3760 | RequestParams&& aParams); | ||||
| 3761 | |||||
| 3762 | ~ObjectStoreAddOrPutRequestOp() override = default; | ||||
| 3763 | |||||
| 3764 | nsresult RemoveOldIndexDataValues(DatabaseConnection* aConnection); | ||||
| 3765 | |||||
| 3766 | bool Init(TransactionBase& aTransaction) override; | ||||
| 3767 | |||||
| 3768 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 3769 | |||||
| 3770 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 3771 | |||||
| 3772 | void Cleanup() override; | ||||
| 3773 | }; | ||||
| 3774 | |||||
| 3775 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::AssertInvariants() const { | ||||
| 3776 | // The only allowed types are eStructuredClone, eBlob and eMutableFile. | ||||
| 3777 | 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", 3779) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { MOZ_CrashSequence(__null, 3779); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 3778 | 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", 3779) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { MOZ_CrashSequence(__null, 3779); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 3779 | 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", 3779) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType || StructuredCloneFileBase::eBlob == mType || StructuredCloneFileBase::eMutableFile == mType" ")"); do { MOZ_CrashSequence(__null, 3779); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3780 | |||||
| 3781 | // mFileInfo and a file actor in mFileActorOrInputStream are present until | ||||
| 3782 | // the object is moved away, but an inputStream in mFileActorOrInputStream | ||||
| 3783 | // can be released early. | ||||
| 3784 | 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", 3786) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { MOZ_CrashSequence(__null, 3786); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3785 | 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", 3786) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { MOZ_CrashSequence(__null, 3786); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3786 | 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", 3786) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<bool>(mFileInfo)" ")"); do { MOZ_CrashSequence(__null, 3786); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3787 | |||||
| 3788 | if (mFileInfo) { | ||||
| 3789 | // In a non-moved StoredFileInfo, one of the following is true: | ||||
| 3790 | // - This was an overflow structured clone (eStructuredClone) and | ||||
| 3791 | // storedFileInfo.mFileActorOrInputStream CAN be a non-nullptr input | ||||
| 3792 | // stream (but that might have been release by ReleaseInputStream). | ||||
| 3793 | 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", 3797) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3797); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3794 | 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", 3797) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3797); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3795 | !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", 3797) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3797); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3796 | (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", 3797) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3797); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3797 | 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", 3797) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileActorOrInputStream || (mFileActorOrInputStream->is<nsCOMPtr<nsIInputStream>>() && mFileActorOrInputStream->as<nsCOMPtr<nsIInputStream>>())" ")"); do { MOZ_CrashSequence(__null, 3797); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3798 | |||||
| 3799 | // - This is a reference to a Blob (eBlob) that may or may not have | ||||
| 3800 | // already been written to disk. storedFileInfo.mFileActorOrInputStream | ||||
| 3801 | // MUST be a non-null file actor, but its GetInputStream may return | ||||
| 3802 | // nullptr (so don't assert on that). | ||||
| 3803 | 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", 3805) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { MOZ_CrashSequence(__null, 3805); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3804 | 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", 3805) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { MOZ_CrashSequence(__null, 3805); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3805 | 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", 3805) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<RefPtr<DatabaseFile>>() && mFileActorOrInputStream->as<RefPtr<DatabaseFile>>()" ")"); do { MOZ_CrashSequence(__null, 3805); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3806 | |||||
| 3807 | // - It's a mutable file (eMutableFile). No writing will be performed, | ||||
| 3808 | // and storedFileInfo.mFileActorOrInputStream is Nothing. | ||||
| 3809 | 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", 3810) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()" ")"); do { MOZ_CrashSequence(__null, 3810); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 3810 | 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", 3810) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileActorOrInputStream->is<Nothing>()" ")"); do { MOZ_CrashSequence(__null, 3810); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 3811 | } | ||||
| 3812 | } | ||||
| 3813 | |||||
| 3814 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::EnsureCipherKey() { | ||||
| 3815 | const auto& fileInfo = GetFileInfo(); | ||||
| 3816 | const auto& fileManager = fileInfo.Manager(); | ||||
| 3817 | |||||
| 3818 | // No need to generate cipher keys if we are not in PBM | ||||
| 3819 | if (!fileManager.IsInPrivateBrowsingMode()) { | ||||
| 3820 | return; | ||||
| 3821 | } | ||||
| 3822 | |||||
| 3823 | nsCString keyId; | ||||
| 3824 | keyId.AppendInt(fileInfo.Id()); | ||||
| 3825 | |||||
| 3826 | fileManager.MutableCipherKeyManagerRef().Ensure(keyId); | ||||
| 3827 | } | ||||
| 3828 | |||||
| 3829 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo( | ||||
| 3830 | SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) | ||||
| 3831 | : mFileInfo{WrapNotNull(std::move(aFileInfo))}, | ||||
| 3832 | mFileActorOrInputStream{std::move(aFileActor)} | ||||
| 3833 | #ifdef DEBUG1 | ||||
| 3834 | , | ||||
| 3835 | mType{StructuredCloneFileBase::eBlob} | ||||
| 3836 | #endif | ||||
| 3837 | { | ||||
| 3838 | AssertIsOnBackgroundThread(); | ||||
| 3839 | AssertInvariants(); | ||||
| 3840 | |||||
| 3841 | EnsureCipherKey(); | ||||
| 3842 | 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); | ||||
| 3843 | } | ||||
| 3844 | |||||
| 3845 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::StoredFileInfo( | ||||
| 3846 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3847 | nsCOMPtr<nsIInputStream> aInputStream) | ||||
| 3848 | : mFileInfo{WrapNotNull(std::move(aFileInfo))}, | ||||
| 3849 | mFileActorOrInputStream{std::move(aInputStream)} | ||||
| 3850 | #ifdef DEBUG1 | ||||
| 3851 | , | ||||
| 3852 | mType{StructuredCloneFileBase::eStructuredClone} | ||||
| 3853 | #endif | ||||
| 3854 | { | ||||
| 3855 | AssertIsOnBackgroundThread(); | ||||
| 3856 | AssertInvariants(); | ||||
| 3857 | |||||
| 3858 | EnsureCipherKey(); | ||||
| 3859 | 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); | ||||
| 3860 | } | ||||
| 3861 | |||||
| 3862 | ObjectStoreAddOrPutRequestOp::StoredFileInfo | ||||
| 3863 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForBlob( | ||||
| 3864 | SafeRefPtr<DatabaseFileInfo> aFileInfo, RefPtr<DatabaseFile> aFileActor) { | ||||
| 3865 | return {std::move(aFileInfo), std::move(aFileActor)}; | ||||
| 3866 | } | ||||
| 3867 | |||||
| 3868 | ObjectStoreAddOrPutRequestOp::StoredFileInfo | ||||
| 3869 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::CreateForStructuredClone( | ||||
| 3870 | SafeRefPtr<DatabaseFileInfo> aFileInfo, | ||||
| 3871 | nsCOMPtr<nsIInputStream> aInputStream) { | ||||
| 3872 | return {std::move(aFileInfo), std::move(aInputStream)}; | ||||
| 3873 | } | ||||
| 3874 | |||||
| 3875 | bool ObjectStoreAddOrPutRequestOp::StoredFileInfo::ShouldCompress() const { | ||||
| 3876 | // Must not be called after moving. | ||||
| 3877 | 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" , 3877); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { MOZ_CrashSequence(__null, 3877); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3878 | |||||
| 3879 | // Compression is only necessary for eStructuredClone, i.e. when | ||||
| 3880 | // mFileActorOrInputStream stored an input stream. However, this is only | ||||
| 3881 | // called after GetInputStream, when mFileActorOrInputStream has been | ||||
| 3882 | // cleared, which is only possible for this type. | ||||
| 3883 | const bool res = !mFileActorOrInputStream; | ||||
| 3884 | 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", 3884) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "res == (StructuredCloneFileBase::eStructuredClone == mType)" ")"); do { MOZ_CrashSequence(__null, 3884); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3885 | return res; | ||||
| 3886 | } | ||||
| 3887 | |||||
| 3888 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::NotifyWriteSucceeded() | ||||
| 3889 | const { | ||||
| 3890 | 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" , 3890); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { MOZ_CrashSequence(__null, 3890); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3891 | |||||
| 3892 | // For eBlob, clear the blob implementation. | ||||
| 3893 | if (mFileActorOrInputStream && | ||||
| 3894 | mFileActorOrInputStream->is<RefPtr<DatabaseFile>>()) { | ||||
| 3895 | mFileActorOrInputStream->as<RefPtr<DatabaseFile>>() | ||||
| 3896 | ->WriteSucceededClearBlobImpl(); | ||||
| 3897 | } | ||||
| 3898 | |||||
| 3899 | // For the other types, no action is necessary. | ||||
| 3900 | } | ||||
| 3901 | |||||
| 3902 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::InputStreamResult | ||||
| 3903 | ObjectStoreAddOrPutRequestOp::StoredFileInfo::GetInputStream() { | ||||
| 3904 | if (!mFileActorOrInputStream) { | ||||
| 3905 | 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", 3905) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StructuredCloneFileBase::eStructuredClone == mType" ")"); do { MOZ_CrashSequence(__null, 3905); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3906 | return nsCOMPtr<nsIInputStream>{}; | ||||
| 3907 | } | ||||
| 3908 | |||||
| 3909 | // For the different cases, see also the comments in AssertInvariants. | ||||
| 3910 | return mFileActorOrInputStream->match( | ||||
| 3911 | [](const Nothing&) -> InputStreamResult { | ||||
| 3912 | return nsCOMPtr<nsIInputStream>{}; | ||||
| 3913 | }, | ||||
| 3914 | [](const RefPtr<DatabaseFile>& databaseActor) -> InputStreamResult { | ||||
| 3915 | ErrorResult rv; | ||||
| 3916 | auto inputStream = databaseActor->GetInputStream(rv); | ||||
| 3917 | if (NS_WARN_IF(rv.Failed())NS_warn_if_impl(rv.Failed(), "rv.Failed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 3917)) { | ||||
| 3918 | return Err(rv.StealNSResult()); | ||||
| 3919 | } | ||||
| 3920 | |||||
| 3921 | return inputStream; | ||||
| 3922 | }, | ||||
| 3923 | [this](const nsCOMPtr<nsIInputStream>& inputStream) -> InputStreamResult { | ||||
| 3924 | auto res = inputStream; | ||||
| 3925 | // destroy() clears the inputStream parameter, so we needed to make a | ||||
| 3926 | // copy before | ||||
| 3927 | mFileActorOrInputStream.destroy(); | ||||
| 3928 | AssertInvariants(); | ||||
| 3929 | return res; | ||||
| 3930 | }); | ||||
| 3931 | } | ||||
| 3932 | |||||
| 3933 | void ObjectStoreAddOrPutRequestOp::StoredFileInfo::Serialize( | ||||
| 3934 | nsString& aText) const { | ||||
| 3935 | AssertInvariants(); | ||||
| 3936 | 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" , 3936); AnnotateMozCrashReason("MOZ_ASSERT" "(" "IsValid()" ")" ); do { MOZ_CrashSequence(__null, 3936); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 3937 | |||||
| 3938 | const int64_t id = (*mFileInfo)->Id(); | ||||
| 3939 | |||||
| 3940 | auto structuredCloneHandler = [&aText, id](const nsCOMPtr<nsIInputStream>&) { | ||||
| 3941 | // eStructuredClone | ||||
| 3942 | aText.Append('.'); | ||||
| 3943 | aText.AppendInt(id); | ||||
| 3944 | }; | ||||
| 3945 | |||||
| 3946 | // If mFileActorOrInputStream was moved, we had an inputStream before. | ||||
| 3947 | if (!mFileActorOrInputStream) { | ||||
| 3948 | structuredCloneHandler(nullptr); | ||||
| 3949 | return; | ||||
| 3950 | } | ||||
| 3951 | |||||
| 3952 | // This encoding is parsed in DeserializeStructuredCloneFile. | ||||
| 3953 | mFileActorOrInputStream->match( | ||||
| 3954 | [&aText, id](const Nothing&) { | ||||
| 3955 | // eMutableFile | ||||
| 3956 | aText.AppendInt(-id); | ||||
| 3957 | }, | ||||
| 3958 | [&aText, id](const RefPtr<DatabaseFile>&) { | ||||
| 3959 | // eBlob | ||||
| 3960 | aText.AppendInt(id); | ||||
| 3961 | }, | ||||
| 3962 | structuredCloneHandler); | ||||
| 3963 | } | ||||
| 3964 | |||||
| 3965 | class ObjectStoreAddOrPutRequestOp::SCInputStream final | ||||
| 3966 | : public nsIInputStream { | ||||
| 3967 | const JSStructuredCloneData& mData; | ||||
| 3968 | JSStructuredCloneData::Iterator mIter; | ||||
| 3969 | |||||
| 3970 | public: | ||||
| 3971 | explicit SCInputStream(const JSStructuredCloneData& aData) | ||||
| 3972 | : mData(aData), mIter(aData.Start()) {} | ||||
| 3973 | |||||
| 3974 | private: | ||||
| 3975 | virtual ~SCInputStream() = default; | ||||
| 3976 | |||||
| 3977 | 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: | ||||
| 3978 | 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; | ||||
| 3979 | }; | ||||
| 3980 | |||||
| 3981 | class ObjectStoreGetRequestOp final : public NormalTransactionOp { | ||||
| 3982 | friend class TransactionBase; | ||||
| 3983 | |||||
| 3984 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 3985 | SafeRefPtr<Database> mDatabase; | ||||
| 3986 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 3987 | AutoTArray<StructuredCloneReadInfoParent, 1> mResponse; | ||||
| 3988 | PBackgroundParent* mBackgroundParent; | ||||
| 3989 | uint32_t mPreprocessInfoCount; | ||||
| 3990 | const uint32_t mLimit; | ||||
| 3991 | const IDBCursorDirection mDirection; | ||||
| 3992 | const bool mGetAll; | ||||
| 3993 | |||||
| 3994 | private: | ||||
| 3995 | // Only created by TransactionBase. | ||||
| 3996 | ObjectStoreGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 3997 | const int64_t aRequestId, | ||||
| 3998 | const RequestParams& aParams, bool aGetAll); | ||||
| 3999 | |||||
| 4000 | ~ObjectStoreGetRequestOp() override = default; | ||||
| 4001 | |||||
| 4002 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4003 | |||||
| 4004 | bool HasPreprocessInfo() override; | ||||
| 4005 | |||||
| 4006 | mozilla::Result<PreprocessParams, nsresult> GetPreprocessParams() override; | ||||
| 4007 | |||||
| 4008 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4009 | }; | ||||
| 4010 | |||||
| 4011 | class ObjectStoreGetKeyRequestOp final : public NormalTransactionOp { | ||||
| 4012 | friend class TransactionBase; | ||||
| 4013 | |||||
| 4014 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 4015 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4016 | const uint32_t mLimit; | ||||
| 4017 | const IDBCursorDirection mDirection; | ||||
| 4018 | const bool mGetAll; | ||||
| 4019 | nsTArray<Key> mResponse; | ||||
| 4020 | |||||
| 4021 | private: | ||||
| 4022 | // Only created by TransactionBase. | ||||
| 4023 | ObjectStoreGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4024 | const int64_t aRequestId, | ||||
| 4025 | const RequestParams& aParams, bool aGetAll); | ||||
| 4026 | |||||
| 4027 | ~ObjectStoreGetKeyRequestOp() override = default; | ||||
| 4028 | |||||
| 4029 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4030 | |||||
| 4031 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4032 | }; | ||||
| 4033 | |||||
| 4034 | class ObjectStoreDeleteRequestOp final : public NormalTransactionOp { | ||||
| 4035 | friend class TransactionBase; | ||||
| 4036 | |||||
| 4037 | const ObjectStoreDeleteParams mParams; | ||||
| 4038 | ObjectStoreDeleteResponse mResponse; | ||||
| 4039 | bool mObjectStoreMayHaveIndexes; | ||||
| 4040 | |||||
| 4041 | private: | ||||
| 4042 | ObjectStoreDeleteRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4043 | const int64_t aRequestId, | ||||
| 4044 | const ObjectStoreDeleteParams& aParams); | ||||
| 4045 | |||||
| 4046 | ~ObjectStoreDeleteRequestOp() override = default; | ||||
| 4047 | |||||
| 4048 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4049 | |||||
| 4050 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | ||||
| 4051 | aResponse = std::move(mResponse); | ||||
| 4052 | *aResponseSize = 0; | ||||
| 4053 | } | ||||
| 4054 | }; | ||||
| 4055 | |||||
| 4056 | class ObjectStoreClearRequestOp final : public NormalTransactionOp { | ||||
| 4057 | friend class TransactionBase; | ||||
| 4058 | |||||
| 4059 | const ObjectStoreClearParams mParams; | ||||
| 4060 | ObjectStoreClearResponse mResponse; | ||||
| 4061 | bool mObjectStoreMayHaveIndexes; | ||||
| 4062 | |||||
| 4063 | private: | ||||
| 4064 | ObjectStoreClearRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4065 | const int64_t aRequestId, | ||||
| 4066 | const ObjectStoreClearParams& aParams); | ||||
| 4067 | |||||
| 4068 | ~ObjectStoreClearRequestOp() override = default; | ||||
| 4069 | |||||
| 4070 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4071 | |||||
| 4072 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | ||||
| 4073 | aResponse = std::move(mResponse); | ||||
| 4074 | *aResponseSize = 0; | ||||
| 4075 | } | ||||
| 4076 | }; | ||||
| 4077 | |||||
| 4078 | class ObjectStoreCountRequestOp final : public NormalTransactionOp { | ||||
| 4079 | friend class TransactionBase; | ||||
| 4080 | |||||
| 4081 | const ObjectStoreCountParams mParams; | ||||
| 4082 | ObjectStoreCountResponse mResponse; | ||||
| 4083 | |||||
| 4084 | private: | ||||
| 4085 | ObjectStoreCountRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4086 | const int64_t aRequestId, | ||||
| 4087 | const ObjectStoreCountParams& aParams) | ||||
| 4088 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 4089 | mParams(aParams) {} | ||||
| 4090 | |||||
| 4091 | ~ObjectStoreCountRequestOp() override = default; | ||||
| 4092 | |||||
| 4093 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4094 | |||||
| 4095 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | ||||
| 4096 | aResponse = std::move(mResponse); | ||||
| 4097 | *aResponseSize = sizeof(uint64_t); | ||||
| 4098 | } | ||||
| 4099 | }; | ||||
| 4100 | |||||
| 4101 | class IndexRequestOpBase : public NormalTransactionOp { | ||||
| 4102 | protected: | ||||
| 4103 | const SafeRefPtr<FullIndexMetadata> mMetadata; | ||||
| 4104 | |||||
| 4105 | protected: | ||||
| 4106 | IndexRequestOpBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4107 | const int64_t aRequestId, const RequestParams& aParams) | ||||
| 4108 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 4109 | mMetadata(IndexMetadataForParams(Transaction(), aParams)) {} | ||||
| 4110 | |||||
| 4111 | ~IndexRequestOpBase() override = default; | ||||
| 4112 | |||||
| 4113 | private: | ||||
| 4114 | static SafeRefPtr<FullIndexMetadata> IndexMetadataForParams( | ||||
| 4115 | const TransactionBase& aTransaction, const RequestParams& aParams); | ||||
| 4116 | }; | ||||
| 4117 | |||||
| 4118 | class IndexGetRequestOp final : public IndexRequestOpBase { | ||||
| 4119 | friend class TransactionBase; | ||||
| 4120 | |||||
| 4121 | SafeRefPtr<Database> mDatabase; | ||||
| 4122 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4123 | AutoTArray<StructuredCloneReadInfoParent, 1> mResponse; | ||||
| 4124 | PBackgroundParent* mBackgroundParent; | ||||
| 4125 | const uint32_t mLimit; | ||||
| 4126 | const IDBCursorDirection mDirection; | ||||
| 4127 | const bool mGetAll; | ||||
| 4128 | |||||
| 4129 | private: | ||||
| 4130 | // Only created by TransactionBase. | ||||
| 4131 | IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4132 | const int64_t aRequestId, const RequestParams& aParams, | ||||
| 4133 | bool aGetAll); | ||||
| 4134 | |||||
| 4135 | ~IndexGetRequestOp() override = default; | ||||
| 4136 | |||||
| 4137 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4138 | |||||
| 4139 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4140 | |||||
| 4141 | nsCString MakeQuery() const; | ||||
| 4142 | }; | ||||
| 4143 | |||||
| 4144 | class IndexGetKeyRequestOp final : public IndexRequestOpBase { | ||||
| 4145 | friend class TransactionBase; | ||||
| 4146 | |||||
| 4147 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4148 | AutoTArray<Key, 1> mResponse; | ||||
| 4149 | const uint32_t mLimit; | ||||
| 4150 | const IDBCursorDirection mDirection; | ||||
| 4151 | const bool mGetAll; | ||||
| 4152 | |||||
| 4153 | private: | ||||
| 4154 | // Only created by TransactionBase. | ||||
| 4155 | IndexGetKeyRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4156 | const int64_t aRequestId, const RequestParams& aParams, | ||||
| 4157 | bool aGetAll); | ||||
| 4158 | |||||
| 4159 | ~IndexGetKeyRequestOp() override = default; | ||||
| 4160 | |||||
| 4161 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4162 | |||||
| 4163 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4164 | |||||
| 4165 | nsCString MakeQuery() const; | ||||
| 4166 | }; | ||||
| 4167 | |||||
| 4168 | class IndexCountRequestOp final : public IndexRequestOpBase { | ||||
| 4169 | friend class TransactionBase; | ||||
| 4170 | |||||
| 4171 | const IndexCountParams mParams; | ||||
| 4172 | IndexCountResponse mResponse; | ||||
| 4173 | |||||
| 4174 | private: | ||||
| 4175 | // Only created by TransactionBase. | ||||
| 4176 | IndexCountRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4177 | const int64_t aRequestId, const RequestParams& aParams) | ||||
| 4178 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | ||||
| 4179 | mParams(aParams.get_IndexCountParams()) {} | ||||
| 4180 | |||||
| 4181 | ~IndexCountRequestOp() override = default; | ||||
| 4182 | |||||
| 4183 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4184 | |||||
| 4185 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override { | ||||
| 4186 | aResponse = std::move(mResponse); | ||||
| 4187 | *aResponseSize = sizeof(uint64_t); | ||||
| 4188 | } | ||||
| 4189 | }; | ||||
| 4190 | |||||
| 4191 | class ObjectStoreGetAllRecordsRequestOp final : public NormalTransactionOp { | ||||
| 4192 | friend class TransactionBase; | ||||
| 4193 | |||||
| 4194 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 4195 | SafeRefPtr<Database> mDatabase; | ||||
| 4196 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4197 | nsTArray<Key> mKeys; | ||||
| 4198 | FallibleTArray<StructuredCloneReadInfoParent> mCloneInfos; | ||||
| 4199 | PBackgroundParent* mBackgroundParent; | ||||
| 4200 | const uint32_t mLimit; | ||||
| 4201 | const IDBCursorDirection mDirection; | ||||
| 4202 | |||||
| 4203 | private: | ||||
| 4204 | // Only created by TransactionBase. | ||||
| 4205 | ObjectStoreGetAllRecordsRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4206 | const int64_t aRequestId, | ||||
| 4207 | const RequestParams& aParams); | ||||
| 4208 | |||||
| 4209 | ~ObjectStoreGetAllRecordsRequestOp() override = default; | ||||
| 4210 | |||||
| 4211 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4212 | |||||
| 4213 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4214 | }; | ||||
| 4215 | |||||
| 4216 | class IndexGetAllRecordsRequestOp final : public IndexRequestOpBase { | ||||
| 4217 | friend class TransactionBase; | ||||
| 4218 | |||||
| 4219 | SafeRefPtr<Database> mDatabase; | ||||
| 4220 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4221 | nsTArray<Key> mKeys; | ||||
| 4222 | nsTArray<Key> mPrimaryKeys; | ||||
| 4223 | FallibleTArray<StructuredCloneReadInfoParent> mCloneInfos; | ||||
| 4224 | PBackgroundParent* mBackgroundParent; | ||||
| 4225 | const uint32_t mLimit; | ||||
| 4226 | const IDBCursorDirection mDirection; | ||||
| 4227 | |||||
| 4228 | private: | ||||
| 4229 | // Only created by TransactionBase. | ||||
| 4230 | IndexGetAllRecordsRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4231 | const int64_t aRequestId, | ||||
| 4232 | const RequestParams& aParams); | ||||
| 4233 | |||||
| 4234 | ~IndexGetAllRecordsRequestOp() override = default; | ||||
| 4235 | |||||
| 4236 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4237 | |||||
| 4238 | void GetResponse(RequestResponse& aResponse, size_t* aResponseSize) override; | ||||
| 4239 | |||||
| 4240 | nsCString MakeQuery() const; | ||||
| 4241 | }; | ||||
| 4242 | |||||
| 4243 | template <IDBCursorType CursorType> | ||||
| 4244 | class Cursor; | ||||
| 4245 | |||||
| 4246 | constexpr IDBCursorType ToKeyOnlyType(const IDBCursorType aType) { | ||||
| 4247 | 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", 4249) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4249); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4248 | 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", 4249) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4249); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4249 | 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", 4249) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4249); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4250 | switch (aType) { | ||||
| 4251 | case IDBCursorType::ObjectStore: | ||||
| 4252 | [[fallthrough]]; | ||||
| 4253 | case IDBCursorType::ObjectStoreKey: | ||||
| 4254 | return IDBCursorType::ObjectStoreKey; | ||||
| 4255 | case IDBCursorType::Index: | ||||
| 4256 | [[fallthrough]]; | ||||
| 4257 | case IDBCursorType::IndexKey: | ||||
| 4258 | return IDBCursorType::IndexKey; | ||||
| 4259 | } | ||||
| 4260 | } | ||||
| 4261 | |||||
| 4262 | template <IDBCursorType CursorType> | ||||
| 4263 | using CursorPosition = CursorData<ToKeyOnlyType(CursorType)>; | ||||
| 4264 | |||||
| 4265 | #ifdef DEBUG1 | ||||
| 4266 | constexpr indexedDB::OpenCursorParams::Type ToOpenCursorParamsType( | ||||
| 4267 | const IDBCursorType aType) { | ||||
| 4268 | 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", 4270) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4270); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4269 | 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", 4270) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4270); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4270 | 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", 4270) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aType == IDBCursorType::ObjectStore || aType == IDBCursorType::ObjectStoreKey || aType == IDBCursorType::Index || aType == IDBCursorType::IndexKey" ")"); do { MOZ_CrashSequence(__null, 4270); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4271 | switch (aType) { | ||||
| 4272 | case IDBCursorType::ObjectStore: | ||||
| 4273 | return indexedDB::OpenCursorParams::TObjectStoreOpenCursorParams; | ||||
| 4274 | case IDBCursorType::ObjectStoreKey: | ||||
| 4275 | return indexedDB::OpenCursorParams::TObjectStoreOpenKeyCursorParams; | ||||
| 4276 | case IDBCursorType::Index: | ||||
| 4277 | return indexedDB::OpenCursorParams::TIndexOpenCursorParams; | ||||
| 4278 | case IDBCursorType::IndexKey: | ||||
| 4279 | return indexedDB::OpenCursorParams::TIndexOpenKeyCursorParams; | ||||
| 4280 | } | ||||
| 4281 | } | ||||
| 4282 | #endif | ||||
| 4283 | |||||
| 4284 | class CursorBase : public PBackgroundIDBCursorParent { | ||||
| 4285 | friend class TransactionBase; | ||||
| 4286 | template <IDBCursorType CursorType> | ||||
| 4287 | friend class CommonOpenOpHelper; | ||||
| 4288 | |||||
| 4289 | protected: | ||||
| 4290 | const SafeRefPtr<TransactionBase> mTransaction; | ||||
| 4291 | |||||
| 4292 | // This should only be touched on the PBackground thread to check whether | ||||
| 4293 | // the objectStore has been deleted. Holding these saves a hash lookup for | ||||
| 4294 | // every call to continue()/advance(). | ||||
| 4295 | InitializedOnce<const NotNull<SafeRefPtr<FullObjectStoreMetadata>>> | ||||
| 4296 | mObjectStoreMetadata; | ||||
| 4297 | |||||
| 4298 | const IndexOrObjectStoreId mObjectStoreId; | ||||
| 4299 | |||||
| 4300 | LazyInitializedOnce<const Key> | ||||
| 4301 | mLocaleAwareRangeBound; ///< If the cursor is based on a key range, the | ||||
| 4302 | ///< bound in the direction of iteration (e.g. | ||||
| 4303 | ///< the upper bound in case of mDirection == | ||||
| 4304 | ///< NEXT). If the cursor is based on a key, it | ||||
| 4305 | ///< is unset. If mLocale is set, this was | ||||
| 4306 | ///< converted to mLocale. | ||||
| 4307 | |||||
| 4308 | const Direction mDirection; | ||||
| 4309 | |||||
| 4310 | const int32_t mMaxExtraCount; | ||||
| 4311 | |||||
| 4312 | const bool mIsSameProcessActor; | ||||
| 4313 | |||||
| 4314 | struct ConstructFromTransactionBase {}; | ||||
| 4315 | |||||
| 4316 | public: | ||||
| 4317 | 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" , 4318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4318 ); __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" , 4318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4318 ); __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: | ||||
| 4318 | 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" , 4318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4318 ); __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" , 4318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4318 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::CursorBase")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | ||||
| 4319 | |||||
| 4320 | CursorBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4321 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 4322 | Direction aDirection, | ||||
| 4323 | ConstructFromTransactionBase aConstructionTag); | ||||
| 4324 | |||||
| 4325 | protected: | ||||
| 4326 | // Reference counted. | ||||
| 4327 | ~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", 4327) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 4327); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 4328 | |||||
| 4329 | private: | ||||
| 4330 | virtual bool Start(const int64_t aRequestId, | ||||
| 4331 | const OpenCursorParams& aParams) = 0; | ||||
| 4332 | }; | ||||
| 4333 | |||||
| 4334 | class IndexCursorBase : public CursorBase { | ||||
| 4335 | public: | ||||
| 4336 | bool IsLocaleAware() const { return !mLocale.IsEmpty(); } | ||||
| 4337 | |||||
| 4338 | IndexCursorBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4339 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 4340 | SafeRefPtr<FullIndexMetadata> aIndexMetadata, | ||||
| 4341 | Direction aDirection, | ||||
| 4342 | ConstructFromTransactionBase aConstructionTag) | ||||
| 4343 | : CursorBase{std::move(aTransaction), std::move(aObjectStoreMetadata), | ||||
| 4344 | aDirection, aConstructionTag}, | ||||
| 4345 | mIndexMetadata(WrapNotNull(std::move(aIndexMetadata))), | ||||
| 4346 | mIndexId((*mIndexMetadata)->mCommonMetadata.id()), | ||||
| 4347 | mUniqueIndex((*mIndexMetadata)->mCommonMetadata.unique()), | ||||
| 4348 | mLocale((*mIndexMetadata)->mCommonMetadata.locale()) {} | ||||
| 4349 | |||||
| 4350 | protected: | ||||
| 4351 | IndexOrObjectStoreId Id() const { return mIndexId; } | ||||
| 4352 | |||||
| 4353 | // This should only be touched on the PBackground thread to check whether | ||||
| 4354 | // the index has been deleted. Holding these saves a hash lookup for every | ||||
| 4355 | // call to continue()/advance(). | ||||
| 4356 | InitializedOnce<const NotNull<SafeRefPtr<FullIndexMetadata>>> mIndexMetadata; | ||||
| 4357 | const IndexOrObjectStoreId mIndexId; | ||||
| 4358 | const bool mUniqueIndex; | ||||
| 4359 | const nsCString | ||||
| 4360 | mLocale; ///< The locale if the cursor is locale-aware, otherwise empty. | ||||
| 4361 | |||||
| 4362 | struct ContinueQueries { | ||||
| 4363 | nsCString mContinueQuery; | ||||
| 4364 | nsCString mContinueToQuery; | ||||
| 4365 | nsCString mContinuePrimaryKeyQuery; | ||||
| 4366 | |||||
| 4367 | const nsACString& GetContinueQuery(const bool hasContinueKey, | ||||
| 4368 | const bool hasContinuePrimaryKey) const { | ||||
| 4369 | return hasContinuePrimaryKey ? mContinuePrimaryKeyQuery | ||||
| 4370 | : hasContinueKey ? mContinueToQuery | ||||
| 4371 | : mContinueQuery; | ||||
| 4372 | } | ||||
| 4373 | }; | ||||
| 4374 | }; | ||||
| 4375 | |||||
| 4376 | class ObjectStoreCursorBase : public CursorBase { | ||||
| 4377 | public: | ||||
| 4378 | using CursorBase::CursorBase; | ||||
| 4379 | |||||
| 4380 | static constexpr bool IsLocaleAware() { return false; } | ||||
| 4381 | |||||
| 4382 | protected: | ||||
| 4383 | IndexOrObjectStoreId Id() const { return mObjectStoreId; } | ||||
| 4384 | |||||
| 4385 | struct ContinueQueries { | ||||
| 4386 | nsCString mContinueQuery; | ||||
| 4387 | nsCString mContinueToQuery; | ||||
| 4388 | |||||
| 4389 | const nsACString& GetContinueQuery(const bool hasContinueKey, | ||||
| 4390 | const bool hasContinuePrimaryKey) const { | ||||
| 4391 | 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", 4391) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasContinuePrimaryKey" ")"); do { MOZ_CrashSequence(__null, 4391); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4392 | return hasContinueKey ? mContinueToQuery : mContinueQuery; | ||||
| 4393 | } | ||||
| 4394 | }; | ||||
| 4395 | }; | ||||
| 4396 | |||||
| 4397 | using FilesArray = nsTArray<nsTArray<StructuredCloneFileParent>>; | ||||
| 4398 | |||||
| 4399 | struct PseudoFilesArray { | ||||
| 4400 | static constexpr bool IsEmpty() { return true; } | ||||
| 4401 | |||||
| 4402 | static constexpr void Clear() {} | ||||
| 4403 | }; | ||||
| 4404 | |||||
| 4405 | template <IDBCursorType CursorType> | ||||
| 4406 | using FilesArrayT = | ||||
| 4407 | std::conditional_t<!CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | ||||
| 4408 | FilesArray, PseudoFilesArray>; | ||||
| 4409 | |||||
| 4410 | class ValueCursorBase { | ||||
| 4411 | friend struct ValuePopulateResponseHelper<true>; | ||||
| 4412 | friend struct ValuePopulateResponseHelper<false>; | ||||
| 4413 | |||||
| 4414 | protected: | ||||
| 4415 | explicit ValueCursorBase(TransactionBase* const aTransaction) | ||||
| 4416 | : mDatabase(aTransaction->GetDatabasePtr()), | ||||
| 4417 | mFileManager(mDatabase->GetFileManagerPtr()), | ||||
| 4418 | mBackgroundParent(WrapNotNull(aTransaction->GetBackgroundParent())) { | ||||
| 4419 | 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" , 4419); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 4419); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4420 | } | ||||
| 4421 | |||||
| 4422 | void ProcessFiles(CursorResponse& aResponse, const FilesArray& aFiles); | ||||
| 4423 | |||||
| 4424 | ~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", 4424) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 4424); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 4425 | |||||
| 4426 | const SafeRefPtr<Database> mDatabase; | ||||
| 4427 | const NotNull<SafeRefPtr<DatabaseFileManager>> mFileManager; | ||||
| 4428 | |||||
| 4429 | InitializedOnce<const NotNull<PBackgroundParent*>> mBackgroundParent; | ||||
| 4430 | }; | ||||
| 4431 | |||||
| 4432 | class KeyCursorBase { | ||||
| 4433 | protected: | ||||
| 4434 | explicit KeyCursorBase(TransactionBase* const /*aTransaction*/) {} | ||||
| 4435 | |||||
| 4436 | static constexpr void ProcessFiles(CursorResponse& aResponse, | ||||
| 4437 | const PseudoFilesArray& aFiles) {} | ||||
| 4438 | }; | ||||
| 4439 | |||||
| 4440 | template <IDBCursorType CursorType> | ||||
| 4441 | class CursorOpBaseHelperBase; | ||||
| 4442 | |||||
| 4443 | template <IDBCursorType CursorType> | ||||
| 4444 | class Cursor final | ||||
| 4445 | : public std::conditional_t< | ||||
| 4446 | CursorTypeTraits<CursorType>::IsObjectStoreCursor, | ||||
| 4447 | ObjectStoreCursorBase, IndexCursorBase>, | ||||
| 4448 | public std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | ||||
| 4449 | KeyCursorBase, ValueCursorBase> { | ||||
| 4450 | using Base = | ||||
| 4451 | std::conditional_t<CursorTypeTraits<CursorType>::IsObjectStoreCursor, | ||||
| 4452 | ObjectStoreCursorBase, IndexCursorBase>; | ||||
| 4453 | |||||
| 4454 | using KeyValueBase = | ||||
| 4455 | std::conditional_t<CursorTypeTraits<CursorType>::IsKeyOnlyCursor, | ||||
| 4456 | KeyCursorBase, ValueCursorBase>; | ||||
| 4457 | |||||
| 4458 | static constexpr bool IsIndexCursor = | ||||
| 4459 | !CursorTypeTraits<CursorType>::IsObjectStoreCursor; | ||||
| 4460 | |||||
| 4461 | static constexpr bool IsValueCursor = | ||||
| 4462 | !CursorTypeTraits<CursorType>::IsKeyOnlyCursor; | ||||
| 4463 | |||||
| 4464 | class CursorOpBase; | ||||
| 4465 | class OpenOp; | ||||
| 4466 | class ContinueOp; | ||||
| 4467 | |||||
| 4468 | using Base::Id; | ||||
| 4469 | using CursorBase::Manager; | ||||
| 4470 | using CursorBase::mDirection; | ||||
| 4471 | using CursorBase::mObjectStoreId; | ||||
| 4472 | using CursorBase::mTransaction; | ||||
| 4473 | using typename CursorBase::ActorDestroyReason; | ||||
| 4474 | |||||
| 4475 | using TypedOpenOpHelper = | ||||
| 4476 | std::conditional_t<IsIndexCursor, IndexOpenOpHelper<CursorType>, | ||||
| 4477 | ObjectStoreOpenOpHelper<CursorType>>; | ||||
| 4478 | |||||
| 4479 | friend class CursorOpBaseHelperBase<CursorType>; | ||||
| 4480 | friend class CommonOpenOpHelper<CursorType>; | ||||
| 4481 | friend TypedOpenOpHelper; | ||||
| 4482 | friend class OpenOpHelper<CursorType>; | ||||
| 4483 | |||||
| 4484 | CursorOpBase* mCurrentlyRunningOp = nullptr; | ||||
| 4485 | |||||
| 4486 | LazyInitializedOnce<const typename Base::ContinueQueries> mContinueQueries; | ||||
| 4487 | |||||
| 4488 | // Only called by TransactionBase. | ||||
| 4489 | bool Start(const int64_t aRequestId, const OpenCursorParams& aParams) final; | ||||
| 4490 | |||||
| 4491 | void SendResponseInternal(CursorResponse& aResponse, | ||||
| 4492 | const FilesArrayT<CursorType>& aFiles); | ||||
| 4493 | |||||
| 4494 | // IPDL methods. | ||||
| 4495 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 4496 | |||||
| 4497 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 4498 | |||||
| 4499 | mozilla::ipc::IPCResult RecvContinue( | ||||
| 4500 | const int64_t& aRequestId, const CursorRequestParams& aParams, | ||||
| 4501 | const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) override; | ||||
| 4502 | |||||
| 4503 | public: | ||||
| 4504 | Cursor(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4505 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 4506 | SafeRefPtr<FullIndexMetadata> aIndexMetadata, | ||||
| 4507 | typename Base::Direction aDirection, | ||||
| 4508 | typename Base::ConstructFromTransactionBase aConstructionTag) | ||||
| 4509 | : Base{std::move(aTransaction), std::move(aObjectStoreMetadata), | ||||
| 4510 | std::move(aIndexMetadata), aDirection, aConstructionTag}, | ||||
| 4511 | KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {} | ||||
| 4512 | |||||
| 4513 | Cursor(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 4514 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 4515 | typename Base::Direction aDirection, | ||||
| 4516 | typename Base::ConstructFromTransactionBase aConstructionTag) | ||||
| 4517 | : Base{std::move(aTransaction), std::move(aObjectStoreMetadata), | ||||
| 4518 | aDirection, aConstructionTag}, | ||||
| 4519 | KeyValueBase{this->mTransaction.unsafeGetRawPtr()} {} | ||||
| 4520 | |||||
| 4521 | // Must call SendResponseInternal! | ||||
| 4522 | bool SendResponse(const CursorResponse& aResponse) = delete; | ||||
| 4523 | |||||
| 4524 | private: | ||||
| 4525 | void SetOptionalKeyRange(const Maybe<SerializedKeyRange>& aOptionalKeyRange, | ||||
| 4526 | bool* aOpen); | ||||
| 4527 | |||||
| 4528 | bool VerifyRequestParams(const CursorRequestParams& aParams, | ||||
| 4529 | const CursorPosition<CursorType>& aPosition) const; | ||||
| 4530 | |||||
| 4531 | ~Cursor() final = default; | ||||
| 4532 | }; | ||||
| 4533 | |||||
| 4534 | template <IDBCursorType CursorType> | ||||
| 4535 | class Cursor<CursorType>::CursorOpBase | ||||
| 4536 | : public TransactionDatabaseOperationBase { | ||||
| 4537 | friend class CursorOpBaseHelperBase<CursorType>; | ||||
| 4538 | |||||
| 4539 | protected: | ||||
| 4540 | RefPtr<Cursor> mCursor; | ||||
| 4541 | FilesArrayT<CursorType> mFiles; // TODO: Consider removing this member | ||||
| 4542 | // entirely if we are no value cursor. | ||||
| 4543 | |||||
| 4544 | CursorResponse mResponse; | ||||
| 4545 | |||||
| 4546 | #ifdef DEBUG1 | ||||
| 4547 | bool mResponseSent; | ||||
| 4548 | #endif | ||||
| 4549 | |||||
| 4550 | protected: | ||||
| 4551 | explicit CursorOpBase(Cursor* aCursor, const int64_t aRequestId) | ||||
| 4552 | : TransactionDatabaseOperationBase(aCursor->mTransaction.clonePtr(), | ||||
| 4553 | /* aRequestId */ aRequestId), | ||||
| 4554 | mCursor(aCursor) | ||||
| 4555 | #ifdef DEBUG1 | ||||
| 4556 | , | ||||
| 4557 | mResponseSent(false) | ||||
| 4558 | #endif | ||||
| 4559 | { | ||||
| 4560 | AssertIsOnBackgroundThread(); | ||||
| 4561 | 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" , 4561); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCursor" ")" ); do { MOZ_CrashSequence(__null, 4561); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4562 | } | ||||
| 4563 | |||||
| 4564 | ~CursorOpBase() override = default; | ||||
| 4565 | |||||
| 4566 | bool SendFailureResult(const TransactionOpResult& aResult) final; | ||||
| 4567 | TransactionOpResult SendSuccessResult() final; | ||||
| 4568 | |||||
| 4569 | void Cleanup() override; | ||||
| 4570 | }; | ||||
| 4571 | |||||
| 4572 | template <IDBCursorType CursorType> | ||||
| 4573 | class OpenOpHelper; | ||||
| 4574 | |||||
| 4575 | using ResponseSizeOrError = Result<size_t, nsresult>; | ||||
| 4576 | |||||
| 4577 | template <IDBCursorType CursorType> | ||||
| 4578 | class CursorOpBaseHelperBase { | ||||
| 4579 | public: | ||||
| 4580 | explicit CursorOpBaseHelperBase( | ||||
| 4581 | typename Cursor<CursorType>::CursorOpBase& aOp) | ||||
| 4582 | : mOp{aOp} {} | ||||
| 4583 | |||||
| 4584 | ResponseSizeOrError PopulateResponseFromStatement(mozIStorageStatement* aStmt, | ||||
| 4585 | bool aInitializeResponse, | ||||
| 4586 | Key* const aOptOutSortKey); | ||||
| 4587 | |||||
| 4588 | void PopulateExtraResponses(mozIStorageStatement* aStmt, | ||||
| 4589 | uint32_t aMaxExtraCount, | ||||
| 4590 | const size_t aInitialResponseSize, | ||||
| 4591 | const nsACString& aOperation, | ||||
| 4592 | Key* const aOptPreviousSortKey); | ||||
| 4593 | |||||
| 4594 | protected: | ||||
| 4595 | Cursor<CursorType>& GetCursor() { | ||||
| 4596 | 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" , 4596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mCursor" ")"); do { MOZ_CrashSequence(__null, 4596); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4597 | return *mOp.mCursor; | ||||
| 4598 | } | ||||
| 4599 | |||||
| 4600 | void SetResponse(CursorResponse aResponse) { | ||||
| 4601 | mOp.mResponse = std::move(aResponse); | ||||
| 4602 | } | ||||
| 4603 | |||||
| 4604 | protected: | ||||
| 4605 | typename Cursor<CursorType>::CursorOpBase& mOp; | ||||
| 4606 | }; | ||||
| 4607 | |||||
| 4608 | class CommonOpenOpHelperBase { | ||||
| 4609 | protected: | ||||
| 4610 | static void AppendConditionClause(const nsACString& aColumnName, | ||||
| 4611 | const nsACString& aStatementParameterName, | ||||
| 4612 | bool aLessThan, bool aEquals, | ||||
| 4613 | nsCString& aResult); | ||||
| 4614 | }; | ||||
| 4615 | |||||
| 4616 | template <IDBCursorType CursorType> | ||||
| 4617 | class CommonOpenOpHelper : public CursorOpBaseHelperBase<CursorType>, | ||||
| 4618 | protected CommonOpenOpHelperBase { | ||||
| 4619 | public: | ||||
| 4620 | explicit CommonOpenOpHelper(typename Cursor<CursorType>::OpenOp& aOp) | ||||
| 4621 | : CursorOpBaseHelperBase<CursorType>{aOp} {} | ||||
| 4622 | |||||
| 4623 | protected: | ||||
| 4624 | using CursorOpBaseHelperBase<CursorType>::GetCursor; | ||||
| 4625 | using CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses; | ||||
| 4626 | using CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement; | ||||
| 4627 | using CursorOpBaseHelperBase<CursorType>::SetResponse; | ||||
| 4628 | |||||
| 4629 | const Maybe<SerializedKeyRange>& GetOptionalKeyRange() const { | ||||
| 4630 | // This downcast is safe, since we initialized mOp from an OpenOp in the | ||||
| 4631 | // ctor. | ||||
| 4632 | return static_cast<typename Cursor<CursorType>::OpenOp&>(this->mOp) | ||||
| 4633 | .mOptionalKeyRange; | ||||
| 4634 | } | ||||
| 4635 | |||||
| 4636 | nsresult ProcessStatementSteps(mozIStorageStatement* aStmt); | ||||
| 4637 | }; | ||||
| 4638 | |||||
| 4639 | template <IDBCursorType CursorType> | ||||
| 4640 | class ObjectStoreOpenOpHelper : protected CommonOpenOpHelper<CursorType> { | ||||
| 4641 | public: | ||||
| 4642 | using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper; | ||||
| 4643 | |||||
| 4644 | protected: | ||||
| 4645 | using CommonOpenOpHelper<CursorType>::GetCursor; | ||||
| 4646 | using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange; | ||||
| 4647 | using CommonOpenOpHelper<CursorType>::AppendConditionClause; | ||||
| 4648 | |||||
| 4649 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | ||||
| 4650 | const nsACString& aQueryStart); | ||||
| 4651 | }; | ||||
| 4652 | |||||
| 4653 | template <IDBCursorType CursorType> | ||||
| 4654 | class IndexOpenOpHelper : protected CommonOpenOpHelper<CursorType> { | ||||
| 4655 | public: | ||||
| 4656 | using CommonOpenOpHelper<CursorType>::CommonOpenOpHelper; | ||||
| 4657 | |||||
| 4658 | protected: | ||||
| 4659 | using CommonOpenOpHelper<CursorType>::GetCursor; | ||||
| 4660 | using CommonOpenOpHelper<CursorType>::GetOptionalKeyRange; | ||||
| 4661 | using CommonOpenOpHelper<CursorType>::AppendConditionClause; | ||||
| 4662 | |||||
| 4663 | void PrepareIndexKeyConditionClause( | ||||
| 4664 | const nsACString& aDirectionClause, | ||||
| 4665 | const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart); | ||||
| 4666 | }; | ||||
| 4667 | |||||
| 4668 | template <> | ||||
| 4669 | class OpenOpHelper<IDBCursorType::ObjectStore> | ||||
| 4670 | : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStore> { | ||||
| 4671 | public: | ||||
| 4672 | using ObjectStoreOpenOpHelper< | ||||
| 4673 | IDBCursorType::ObjectStore>::ObjectStoreOpenOpHelper; | ||||
| 4674 | |||||
| 4675 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | ||||
| 4676 | }; | ||||
| 4677 | |||||
| 4678 | template <> | ||||
| 4679 | class OpenOpHelper<IDBCursorType::ObjectStoreKey> | ||||
| 4680 | : public ObjectStoreOpenOpHelper<IDBCursorType::ObjectStoreKey> { | ||||
| 4681 | public: | ||||
| 4682 | using ObjectStoreOpenOpHelper< | ||||
| 4683 | IDBCursorType::ObjectStoreKey>::ObjectStoreOpenOpHelper; | ||||
| 4684 | |||||
| 4685 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | ||||
| 4686 | }; | ||||
| 4687 | |||||
| 4688 | template <> | ||||
| 4689 | class OpenOpHelper<IDBCursorType::Index> | ||||
| 4690 | : IndexOpenOpHelper<IDBCursorType::Index> { | ||||
| 4691 | private: | ||||
| 4692 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | ||||
| 4693 | nsAutoCString aQueryStart) { | ||||
| 4694 | PrepareIndexKeyConditionClause(aDirectionClause, "index_table."_ns, | ||||
| 4695 | std::move(aQueryStart)); | ||||
| 4696 | } | ||||
| 4697 | |||||
| 4698 | public: | ||||
| 4699 | using IndexOpenOpHelper<IDBCursorType::Index>::IndexOpenOpHelper; | ||||
| 4700 | |||||
| 4701 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | ||||
| 4702 | }; | ||||
| 4703 | |||||
| 4704 | template <> | ||||
| 4705 | class OpenOpHelper<IDBCursorType::IndexKey> | ||||
| 4706 | : IndexOpenOpHelper<IDBCursorType::IndexKey> { | ||||
| 4707 | private: | ||||
| 4708 | void PrepareKeyConditionClauses(const nsACString& aDirectionClause, | ||||
| 4709 | nsAutoCString aQueryStart) { | ||||
| 4710 | PrepareIndexKeyConditionClause(aDirectionClause, ""_ns, | ||||
| 4711 | std::move(aQueryStart)); | ||||
| 4712 | } | ||||
| 4713 | |||||
| 4714 | public: | ||||
| 4715 | using IndexOpenOpHelper<IDBCursorType::IndexKey>::IndexOpenOpHelper; | ||||
| 4716 | |||||
| 4717 | nsresult DoDatabaseWork(DatabaseConnection* aConnection); | ||||
| 4718 | }; | ||||
| 4719 | |||||
| 4720 | template <IDBCursorType CursorType> | ||||
| 4721 | class Cursor<CursorType>::OpenOp final : public CursorOpBase { | ||||
| 4722 | friend class Cursor<CursorType>; | ||||
| 4723 | friend class CommonOpenOpHelper<CursorType>; | ||||
| 4724 | |||||
| 4725 | const Maybe<SerializedKeyRange> mOptionalKeyRange; | ||||
| 4726 | |||||
| 4727 | using CursorOpBase::mCursor; | ||||
| 4728 | using CursorOpBase::mResponse; | ||||
| 4729 | |||||
| 4730 | // Only created by Cursor. | ||||
| 4731 | OpenOp(Cursor* const aCursor, const int64_t aRequestId, | ||||
| 4732 | const Maybe<SerializedKeyRange>& aOptionalKeyRange) | ||||
| 4733 | : CursorOpBase(aCursor, aRequestId), | ||||
| 4734 | mOptionalKeyRange(aOptionalKeyRange) {} | ||||
| 4735 | |||||
| 4736 | // Reference counted. | ||||
| 4737 | ~OpenOp() override = default; | ||||
| 4738 | |||||
| 4739 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4740 | }; | ||||
| 4741 | |||||
| 4742 | template <IDBCursorType CursorType> | ||||
| 4743 | class Cursor<CursorType>::ContinueOp final | ||||
| 4744 | : public Cursor<CursorType>::CursorOpBase { | ||||
| 4745 | friend class Cursor<CursorType>; | ||||
| 4746 | |||||
| 4747 | using CursorOpBase::mCursor; | ||||
| 4748 | using CursorOpBase::mResponse; | ||||
| 4749 | const CursorRequestParams mParams; | ||||
| 4750 | |||||
| 4751 | // Only created by Cursor. | ||||
| 4752 | ContinueOp(Cursor* const aCursor, int64_t aRequestId, | ||||
| 4753 | CursorRequestParams aParams, CursorPosition<CursorType> aPosition) | ||||
| 4754 | : CursorOpBase(aCursor, aRequestId), | ||||
| 4755 | mParams(std::move(aParams)), | ||||
| 4756 | mCurrentPosition{std::move(aPosition)} { | ||||
| 4757 | 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", 4757) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mParams.type() != CursorRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 4757); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4758 | } | ||||
| 4759 | |||||
| 4760 | // Reference counted. | ||||
| 4761 | ~ContinueOp() override = default; | ||||
| 4762 | |||||
| 4763 | nsresult DoDatabaseWork(DatabaseConnection* aConnection) override; | ||||
| 4764 | |||||
| 4765 | const CursorPosition<CursorType> mCurrentPosition; | ||||
| 4766 | }; | ||||
| 4767 | |||||
| 4768 | class Utils final : public PBackgroundIndexedDBUtilsParent { | ||||
| 4769 | #ifdef DEBUG1 | ||||
| 4770 | bool mActorDestroyed; | ||||
| 4771 | #endif | ||||
| 4772 | |||||
| 4773 | public: | ||||
| 4774 | Utils(); | ||||
| 4775 | |||||
| 4776 | 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" , 4776); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4776 ); __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" , 4776); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4776 ); __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: | ||||
| 4777 | |||||
| 4778 | private: | ||||
| 4779 | // Reference counted. | ||||
| 4780 | ~Utils() override; | ||||
| 4781 | |||||
| 4782 | // IPDL methods are only called by IPDL. | ||||
| 4783 | void ActorDestroy(ActorDestroyReason aWhy) override; | ||||
| 4784 | |||||
| 4785 | mozilla::ipc::IPCResult RecvDeleteMe() override; | ||||
| 4786 | |||||
| 4787 | mozilla::ipc::IPCResult RecvGetFileReferences( | ||||
| 4788 | const PersistenceType& aPersistenceType, const nsACString& aOrigin, | ||||
| 4789 | const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt, | ||||
| 4790 | int32_t* aDBRefCnt, bool* aResult) override; | ||||
| 4791 | |||||
| 4792 | mozilla::ipc::IPCResult RecvDoMaintenance( | ||||
| 4793 | DoMaintenanceResolver&& aResolver) override; | ||||
| 4794 | }; | ||||
| 4795 | |||||
| 4796 | /******************************************************************************* | ||||
| 4797 | * Other class declarations | ||||
| 4798 | ******************************************************************************/ | ||||
| 4799 | |||||
| 4800 | struct DatabaseActorInfo final { | ||||
| 4801 | friend mozilla::DefaultDelete<DatabaseActorInfo>; | ||||
| 4802 | |||||
| 4803 | SafeRefPtr<FullDatabaseMetadata> mMetadata; | ||||
| 4804 | // We don't use LinkedList<CheckedUnsafePtr<Database>> because | ||||
| 4805 | // CheckedUnsafePtr is not suitable for use within LinkedList. While it's | ||||
| 4806 | // theoretically possible to adapt LinkedList to support it, doing so would | ||||
| 4807 | // introduce unnecessary overhead. Instead, we use a simpler and more | ||||
| 4808 | // efficient approach. Each Database instance asserts !isInList() in its | ||||
| 4809 | // destructor to catch dangling pointer issues. | ||||
| 4810 | LinkedList<Database> mLiveDatabases; | ||||
| 4811 | RefPtr<FactoryOp> mWaitingFactoryOp; | ||||
| 4812 | |||||
| 4813 | DatabaseActorInfo(SafeRefPtr<FullDatabaseMetadata> aMetadata, | ||||
| 4814 | NotNull<Database*> aDatabase) | ||||
| 4815 | : mMetadata(std::move(aMetadata)) { | ||||
| 4816 | 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); | ||||
| 4817 | |||||
| 4818 | mLiveDatabases.insertBack(aDatabase); | ||||
| 4819 | } | ||||
| 4820 | |||||
| 4821 | private: | ||||
| 4822 | ~DatabaseActorInfo() { | ||||
| 4823 | 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", 4823) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLiveDatabases.isEmpty()" ")"); do { MOZ_CrashSequence(__null, 4823); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4824 | 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", 4824) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mWaitingFactoryOp || !mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { MOZ_CrashSequence(__null, 4824); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4825 | |||||
| 4826 | 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); | ||||
| 4827 | } | ||||
| 4828 | }; | ||||
| 4829 | |||||
| 4830 | class DatabaseLoggingInfo final { | ||||
| 4831 | #ifdef DEBUG1 | ||||
| 4832 | // Just for potential warnings. | ||||
| 4833 | friend class Factory; | ||||
| 4834 | #endif | ||||
| 4835 | |||||
| 4836 | LoggingInfo mLoggingInfo; | ||||
| 4837 | |||||
| 4838 | public: | ||||
| 4839 | explicit DatabaseLoggingInfo(const LoggingInfo& aLoggingInfo) | ||||
| 4840 | : mLoggingInfo(aLoggingInfo) { | ||||
| 4841 | AssertIsOnBackgroundThread(); | ||||
| 4842 | 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", 4842) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextTransactionSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 4842); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4843 | 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" , 4843); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextVersionChangeTransactionSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 4843); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4844 | 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", 4844) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.nextRequestSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 4844); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4845 | } | ||||
| 4846 | |||||
| 4847 | const nsID& Id() const { | ||||
| 4848 | AssertIsOnBackgroundThread(); | ||||
| 4849 | |||||
| 4850 | return mLoggingInfo.backgroundChildLoggingId(); | ||||
| 4851 | } | ||||
| 4852 | |||||
| 4853 | int64_t NextTransactionSN(IDBTransaction::Mode aMode) { | ||||
| 4854 | AssertIsOnBackgroundThread(); | ||||
| 4855 | 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", 4855) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextTransactionSerialNumber() < (9223372036854775807L)" ")"); do { MOZ_CrashSequence(__null, 4855); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4856 | 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", 4857) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" ")"); do { MOZ_CrashSequence(__null, 4857); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 4857 | 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", 4857) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextVersionChangeTransactionSerialNumber() > (-9223372036854775807L-1)" ")"); do { MOZ_CrashSequence(__null, 4857); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4858 | |||||
| 4859 | if (aMode == IDBTransaction::Mode::VersionChange) { | ||||
| 4860 | return mLoggingInfo.nextVersionChangeTransactionSerialNumber()--; | ||||
| 4861 | } | ||||
| 4862 | |||||
| 4863 | return mLoggingInfo.nextTransactionSerialNumber()++; | ||||
| 4864 | } | ||||
| 4865 | |||||
| 4866 | uint64_t NextRequestSN() { | ||||
| 4867 | AssertIsOnBackgroundThread(); | ||||
| 4868 | 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", 4868) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingInfo.nextRequestSerialNumber() < (18446744073709551615UL)" ")"); do { MOZ_CrashSequence(__null, 4868); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4869 | |||||
| 4870 | return mLoggingInfo.nextRequestSerialNumber()++; | ||||
| 4871 | } | ||||
| 4872 | |||||
| 4873 | 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" , 4873); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4873 ); __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" , 4873); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4873 ); __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: | ||||
| 4874 | |||||
| 4875 | private: | ||||
| 4876 | ~DatabaseLoggingInfo(); | ||||
| 4877 | }; | ||||
| 4878 | |||||
| 4879 | class QuotaClient final : public mozilla::dom::quota::Client { | ||||
| 4880 | friend class GetDatabasesOp; | ||||
| 4881 | |||||
| 4882 | static QuotaClient* sInstance; | ||||
| 4883 | |||||
| 4884 | nsCOMPtr<nsIEventTarget> mBackgroundThread; | ||||
| 4885 | nsCOMPtr<nsITimer> mDeleteTimer; | ||||
| 4886 | nsTArray<RefPtr<Maintenance>> mMaintenanceQueue; | ||||
| 4887 | RefPtr<Maintenance> mCurrentMaintenance; | ||||
| 4888 | RefPtr<nsThreadPool> mMaintenanceThreadPool; | ||||
| 4889 | nsClassHashtable<nsRefPtrHashKey<DatabaseFileManager>, nsTArray<int64_t>> | ||||
| 4890 | mPendingDeleteInfos; | ||||
| 4891 | |||||
| 4892 | public: | ||||
| 4893 | QuotaClient(); | ||||
| 4894 | |||||
| 4895 | static QuotaClient* GetInstance() { | ||||
| 4896 | AssertIsOnBackgroundThread(); | ||||
| 4897 | |||||
| 4898 | return sInstance; | ||||
| 4899 | } | ||||
| 4900 | |||||
| 4901 | nsIEventTarget* BackgroundThread() const { | ||||
| 4902 | 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", 4902) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundThread" ")"); do { MOZ_CrashSequence(__null, 4902); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4903 | return mBackgroundThread; | ||||
| 4904 | } | ||||
| 4905 | |||||
| 4906 | nsresult AsyncDeleteFile(DatabaseFileManager* aFileManager, int64_t aFileId); | ||||
| 4907 | |||||
| 4908 | nsresult FlushPendingFileDeletions(); | ||||
| 4909 | |||||
| 4910 | RefPtr<BoolPromise> DoMaintenance(); | ||||
| 4911 | |||||
| 4912 | RefPtr<Maintenance> GetCurrentMaintenance() const { | ||||
| 4913 | return mCurrentMaintenance; | ||||
| 4914 | } | ||||
| 4915 | |||||
| 4916 | void NoteFinishedMaintenance(Maintenance* aMaintenance) { | ||||
| 4917 | AssertIsOnBackgroundThread(); | ||||
| 4918 | 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" , 4918); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMaintenance" ")"); do { MOZ_CrashSequence(__null, 4918); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4919 | 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" , 4919); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentMaintenance == aMaintenance" ")"); do { MOZ_CrashSequence(__null, 4919); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 4920 | |||||
| 4921 | mCurrentMaintenance = nullptr; | ||||
| 4922 | |||||
| 4923 | QuotaManager::MaybeRecordQuotaClientShutdownStep(quota::Client::IDB, | ||||
| 4924 | "Maintenance finished"_ns); | ||||
| 4925 | |||||
| 4926 | ProcessMaintenanceQueue(); | ||||
| 4927 | } | ||||
| 4928 | |||||
| 4929 | nsThreadPool* GetOrCreateThreadPool(); | ||||
| 4930 | |||||
| 4931 | 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" , 4932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4932 ); __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" , 4932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4932 ); __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: | ||||
| 4932 | 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" , 4932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 4932 ); __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" , 4932); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 4932 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsrefcnt count = --mRefCnt; NS_LogRelease((this), ( count), ("mozilla::dom::indexedDB::QuotaClient")); if (count == 0) { delete (this); return 0; } return count; } using HasThreadSafeRefCnt = std::true_type; protected: ::mozilla::ThreadSafeAutoRefCnt mRefCnt; public: | ||||
| 4933 | |||||
| 4934 | mozilla::dom::quota::Client::Type GetType() override; | ||||
| 4935 | |||||
| 4936 | nsresult UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) override; | ||||
| 4937 | |||||
| 4938 | nsresult UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) override; | ||||
| 4939 | |||||
| 4940 | Result<UsageInfo, nsresult> InitOrigin(PersistenceType aPersistenceType, | ||||
| 4941 | const OriginMetadata& aOriginMetadata, | ||||
| 4942 | const AtomicBool& aCanceled) override; | ||||
| 4943 | |||||
| 4944 | nsresult InitOriginWithoutTracking(PersistenceType aPersistenceType, | ||||
| 4945 | const OriginMetadata& aOriginMetadata, | ||||
| 4946 | const AtomicBool& aCanceled) override; | ||||
| 4947 | |||||
| 4948 | Result<UsageInfo, nsresult> GetUsageForOrigin( | ||||
| 4949 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 4950 | const AtomicBool& aCanceled) override; | ||||
| 4951 | |||||
| 4952 | void OnOriginClearCompleted(const OriginMetadata& aOriginMetadata) override; | ||||
| 4953 | |||||
| 4954 | void OnRepositoryClearCompleted(PersistenceType aPersistenceType) override; | ||||
| 4955 | |||||
| 4956 | void ReleaseIOThreadObjects() override; | ||||
| 4957 | |||||
| 4958 | void AbortOperationsForLocks( | ||||
| 4959 | const DirectoryLockIdTable& aDirectoryLockIds) override; | ||||
| 4960 | |||||
| 4961 | void AbortOperationsForProcess(ContentParentId aContentParentId) override; | ||||
| 4962 | |||||
| 4963 | void AbortAllOperations() override; | ||||
| 4964 | |||||
| 4965 | void StartIdleMaintenance() override; | ||||
| 4966 | |||||
| 4967 | void StopIdleMaintenance() override; | ||||
| 4968 | |||||
| 4969 | private: | ||||
| 4970 | ~QuotaClient() override; | ||||
| 4971 | |||||
| 4972 | void InitiateShutdown() override; | ||||
| 4973 | bool IsShutdownCompleted() const override; | ||||
| 4974 | nsCString GetShutdownStatus() const override; | ||||
| 4975 | void ForceKillActors() override; | ||||
| 4976 | void FinalizeShutdown() override; | ||||
| 4977 | |||||
| 4978 | static void DeleteTimerCallback(nsITimer* aTimer, void* aClosure); | ||||
| 4979 | |||||
| 4980 | void AbortAllMaintenances(); | ||||
| 4981 | |||||
| 4982 | Result<nsCOMPtr<nsIFile>, nsresult> GetDirectory( | ||||
| 4983 | const OriginMetadata& aOriginMetadata); | ||||
| 4984 | |||||
| 4985 | struct SubdirectoriesToProcessAndDatabaseFilenames { | ||||
| 4986 | AutoTArray<nsString, 20> subdirsToProcess; | ||||
| 4987 | nsTHashSet<nsString> databaseFilenames{20}; | ||||
| 4988 | }; | ||||
| 4989 | |||||
| 4990 | struct SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames { | ||||
| 4991 | AutoTArray<nsString, 20> subdirsToProcess; | ||||
| 4992 | nsTHashSet<nsString> databaseFilenames{20}; | ||||
| 4993 | nsTHashSet<nsString> obsoleteFilenames{20}; | ||||
| 4994 | }; | ||||
| 4995 | |||||
| 4996 | enum class ObsoleteFilenamesHandling { Include, Omit }; | ||||
| 4997 | |||||
| 4998 | template <ObsoleteFilenamesHandling ObsoleteFilenames> | ||||
| 4999 | using GetDatabaseFilenamesResult = std::conditional_t< | ||||
| 5000 | ObsoleteFilenames == ObsoleteFilenamesHandling::Include, | ||||
| 5001 | SubdirectoriesToProcessAndDatabaseFilenamesAndObsoleteFilenames, | ||||
| 5002 | SubdirectoriesToProcessAndDatabaseFilenames>; | ||||
| 5003 | |||||
| 5004 | // Returns a two-part or three-part structure: | ||||
| 5005 | // | ||||
| 5006 | // The first part is an array of subdirectories to process. | ||||
| 5007 | // | ||||
| 5008 | // The second part is a hashtable of database filenames. | ||||
| 5009 | // | ||||
| 5010 | // When ObsoleteFilenames is ObsoleteFilenamesHandling::Include, will also | ||||
| 5011 | // collect files based on the marker files. For now, | ||||
| 5012 | // GetUsageForOriginInternal() is the only consumer of this result because it | ||||
| 5013 | // checks those unfinished deletion and clean them up after that. | ||||
| 5014 | template <ObsoleteFilenamesHandling ObsoleteFilenames = | ||||
| 5015 | ObsoleteFilenamesHandling::Omit> | ||||
| 5016 | Result<GetDatabaseFilenamesResult<ObsoleteFilenames>, | ||||
| 5017 | nsresult> static GetDatabaseFilenames(nsIFile& aDirectory, | ||||
| 5018 | const AtomicBool& aCanceled); | ||||
| 5019 | |||||
| 5020 | nsresult GetUsageForOriginInternal(PersistenceType aPersistenceType, | ||||
| 5021 | const OriginMetadata& aOriginMetadata, | ||||
| 5022 | const AtomicBool& aCanceled, | ||||
| 5023 | bool aInitializing, UsageInfo* aUsageInfo); | ||||
| 5024 | |||||
| 5025 | // Runs on the PBackground thread. Checks to see if there's a queued | ||||
| 5026 | // Maintenance to run. | ||||
| 5027 | void ProcessMaintenanceQueue(); | ||||
| 5028 | }; | ||||
| 5029 | |||||
| 5030 | class DeleteFilesRunnable final : public Runnable { | ||||
| 5031 | using ClientDirectoryLock = mozilla::dom::quota::ClientDirectoryLock; | ||||
| 5032 | |||||
| 5033 | enum State { | ||||
| 5034 | // Just created on the PBackground thread. Next step is | ||||
| 5035 | // State_DirectoryOpenPending. | ||||
| 5036 | State_Initial, | ||||
| 5037 | |||||
| 5038 | // Waiting for directory open allowed on the main thread. The next step is | ||||
| 5039 | // State_DatabaseWorkOpen. | ||||
| 5040 | State_DirectoryOpenPending, | ||||
| 5041 | |||||
| 5042 | // Waiting to do/doing work on the QuotaManager IO thread. The next step is | ||||
| 5043 | // State_UnblockingOpen. | ||||
| 5044 | State_DatabaseWorkOpen, | ||||
| 5045 | |||||
| 5046 | // Notifying the QuotaManager that it can proceed to the next operation on | ||||
| 5047 | // the main thread. Next step is State_Completed. | ||||
| 5048 | State_UnblockingOpen, | ||||
| 5049 | |||||
| 5050 | // All done. | ||||
| 5051 | State_Completed | ||||
| 5052 | }; | ||||
| 5053 | |||||
| 5054 | nsCOMPtr<nsIEventTarget> mOwningEventTarget; | ||||
| 5055 | SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 5056 | ClientDirectoryLockHandle mDirectoryLockHandle; | ||||
| 5057 | nsTArray<int64_t> mFileIds; | ||||
| 5058 | State mState; | ||||
| 5059 | DEBUGONLY(bool mDEBUGCountsAsPending = false)bool mDEBUGCountsAsPending = false; | ||||
| 5060 | |||||
| 5061 | static uint64_t sPendingRunnables; | ||||
| 5062 | |||||
| 5063 | public: | ||||
| 5064 | DeleteFilesRunnable(SafeRefPtr<DatabaseFileManager> aFileManager, | ||||
| 5065 | nsTArray<int64_t>&& aFileIds); | ||||
| 5066 | |||||
| 5067 | void RunImmediately(); | ||||
| 5068 | |||||
| 5069 | static bool IsDeletionPending() { return sPendingRunnables > 0; } | ||||
| 5070 | |||||
| 5071 | private: | ||||
| 5072 | #ifdef DEBUG1 | ||||
| 5073 | ~DeleteFilesRunnable(); | ||||
| 5074 | #else | ||||
| 5075 | ~DeleteFilesRunnable() = default; | ||||
| 5076 | #endif | ||||
| 5077 | |||||
| 5078 | void Open(); | ||||
| 5079 | |||||
| 5080 | void DoDatabaseWork(); | ||||
| 5081 | |||||
| 5082 | void Finish(); | ||||
| 5083 | |||||
| 5084 | void UnblockOpen(); | ||||
| 5085 | |||||
| 5086 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 5087 | |||||
| 5088 | void DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle); | ||||
| 5089 | |||||
| 5090 | void DirectoryLockFailed(); | ||||
| 5091 | }; | ||||
| 5092 | |||||
| 5093 | class Maintenance final : public Runnable { | ||||
| 5094 | struct DirectoryInfo final { | ||||
| 5095 | InitializedOnce<const OriginMetadata> mOriginMetadata; | ||||
| 5096 | InitializedOnce<const nsTArray<nsString>> mDatabasePaths; | ||||
| 5097 | const PersistenceType mPersistenceType; | ||||
| 5098 | |||||
| 5099 | DirectoryInfo(PersistenceType aPersistenceType, | ||||
| 5100 | OriginMetadata aOriginMetadata, | ||||
| 5101 | nsTArray<nsString>&& aDatabasePaths); | ||||
| 5102 | |||||
| 5103 | DirectoryInfo(const DirectoryInfo& aOther) = delete; | ||||
| 5104 | DirectoryInfo(DirectoryInfo&& aOther) = delete; | ||||
| 5105 | |||||
| 5106 | ~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); } | ||||
| 5107 | }; | ||||
| 5108 | |||||
| 5109 | enum class State { | ||||
| 5110 | // Newly created on the PBackground thread. Will proceed immediately or be | ||||
| 5111 | // added to the maintenance queue. The next step is either | ||||
| 5112 | // DirectoryOpenPending if IndexedDatabaseManager is running, or | ||||
| 5113 | // CreateIndexedDatabaseManager if not. | ||||
| 5114 | Initial = 0, | ||||
| 5115 | |||||
| 5116 | // Create IndexedDatabaseManager on the main thread. The next step is either | ||||
| 5117 | // Finishing if IndexedDatabaseManager initialization fails, or | ||||
| 5118 | // IndexedDatabaseManagerOpen if initialization succeeds. | ||||
| 5119 | CreateIndexedDatabaseManager, | ||||
| 5120 | |||||
| 5121 | // Call OpenDirectory() on the PBackground thread. The next step is | ||||
| 5122 | // DirectoryOpenPending. | ||||
| 5123 | IndexedDatabaseManagerOpen, | ||||
| 5124 | |||||
| 5125 | // Waiting for directory open allowed on the PBackground thread. The next | ||||
| 5126 | // step is either Finishing if directory lock failed to acquire, or | ||||
| 5127 | // DirectoryWorkOpen if directory lock is acquired. | ||||
| 5128 | DirectoryOpenPending, | ||||
| 5129 | |||||
| 5130 | // Waiting to do/doing work on the QuotaManager IO thread. The next step is | ||||
| 5131 | // BeginDatabaseMaintenance. | ||||
| 5132 | DirectoryWorkOpen, | ||||
| 5133 | |||||
| 5134 | // Dispatching a runnable for each database on the PBackground thread. The | ||||
| 5135 | // next state is either WaitingForDatabaseMaintenancesToComplete if at least | ||||
| 5136 | // one runnable has been dispatched, or Finishing otherwise. | ||||
| 5137 | BeginDatabaseMaintenance, | ||||
| 5138 | |||||
| 5139 | // Waiting for DatabaseMaintenance to finish on maintenance thread pool. | ||||
| 5140 | // The next state is Finishing if the last runnable has finished. | ||||
| 5141 | WaitingForDatabaseMaintenancesToComplete, | ||||
| 5142 | |||||
| 5143 | // Waiting to finish/finishing on the PBackground thread. The next step is | ||||
| 5144 | // Completed. | ||||
| 5145 | Finishing, | ||||
| 5146 | |||||
| 5147 | // All done. | ||||
| 5148 | Complete | ||||
| 5149 | }; | ||||
| 5150 | |||||
| 5151 | RefPtr<QuotaClient> mQuotaClient; | ||||
| 5152 | MozPromiseHolder<BoolPromise> mPromiseHolder; | ||||
| 5153 | PRTime mStartTime; | ||||
| 5154 | RefPtr<UniversalDirectoryLock> mPendingDirectoryLock; | ||||
| 5155 | // The directory lock is normally dropped by BeginDatabaseMaintenance, but if | ||||
| 5156 | // something fails (in any method), the Finish method will do the cleanup. | ||||
| 5157 | RefPtr<UniversalDirectoryLock> mDirectoryLock; | ||||
| 5158 | nsTArray<nsCOMPtr<nsIRunnable>> mCompleteCallbacks; | ||||
| 5159 | nsTArray<DirectoryInfo> mDirectoryInfos; | ||||
| 5160 | nsTHashMap<nsStringHashKey, DatabaseMaintenance*> mDatabaseMaintenances; | ||||
| 5161 | nsresult mResultCode; | ||||
| 5162 | Atomic<bool> mAborted; | ||||
| 5163 | bool mOpenStorageForAllRepositoriesFailed; | ||||
| 5164 | State mState; | ||||
| 5165 | |||||
| 5166 | public: | ||||
| 5167 | explicit Maintenance(QuotaClient* aQuotaClient) | ||||
| 5168 | : Runnable("dom::indexedDB::Maintenance"), | ||||
| 5169 | mQuotaClient(aQuotaClient), | ||||
| 5170 | mStartTime(PR_Now()), | ||||
| 5171 | mResultCode(NS_OK), | ||||
| 5172 | mAborted(false), | ||||
| 5173 | mOpenStorageForAllRepositoriesFailed(false), | ||||
| 5174 | mState(State::Initial) { | ||||
| 5175 | AssertIsOnBackgroundThread(); | ||||
| 5176 | 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" , 5176); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaClient" ")"); do { MOZ_CrashSequence(__null, 5176); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5177 | 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", 5177) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "QuotaClient::GetInstance() == aQuotaClient" ")"); do { MOZ_CrashSequence(__null, 5177); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5178 | 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" , 5178); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mStartTime" ")"); do { MOZ_CrashSequence(__null, 5178); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5179 | } | ||||
| 5180 | |||||
| 5181 | nsIEventTarget* BackgroundThread() const { | ||||
| 5182 | 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" , 5182); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaClient" ")"); do { MOZ_CrashSequence(__null, 5182); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5183 | return mQuotaClient->BackgroundThread(); | ||||
| 5184 | } | ||||
| 5185 | |||||
| 5186 | PRTime StartTime() const { return mStartTime; } | ||||
| 5187 | |||||
| 5188 | bool IsAborted() const { return mAborted; } | ||||
| 5189 | |||||
| 5190 | void RunImmediately() { | ||||
| 5191 | 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", 5191) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { MOZ_CrashSequence(__null, 5191); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5192 | |||||
| 5193 | (void)this->Run(); | ||||
| 5194 | } | ||||
| 5195 | |||||
| 5196 | RefPtr<BoolPromise> OnResults() { | ||||
| 5197 | AssertIsOnBackgroundThread(); | ||||
| 5198 | |||||
| 5199 | return mPromiseHolder.Ensure(__func__); | ||||
| 5200 | } | ||||
| 5201 | |||||
| 5202 | void Abort(); | ||||
| 5203 | |||||
| 5204 | void RegisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance); | ||||
| 5205 | |||||
| 5206 | void UnregisterDatabaseMaintenance(DatabaseMaintenance* aDatabaseMaintenance); | ||||
| 5207 | |||||
| 5208 | bool HasDatabaseMaintenances() const { return mDatabaseMaintenances.Count(); } | ||||
| 5209 | |||||
| 5210 | RefPtr<DatabaseMaintenance> GetDatabaseMaintenance( | ||||
| 5211 | const nsAString& aDatabasePath) const { | ||||
| 5212 | AssertIsOnBackgroundThread(); | ||||
| 5213 | |||||
| 5214 | return mDatabaseMaintenances.Get(aDatabasePath); | ||||
| 5215 | } | ||||
| 5216 | |||||
| 5217 | void WaitForCompletion(nsIRunnable* aCallback) { | ||||
| 5218 | AssertIsOnBackgroundThread(); | ||||
| 5219 | 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" , 5219); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseMaintenances.Count()" ")"); do { MOZ_CrashSequence(__null, 5219); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5220 | |||||
| 5221 | mCompleteCallbacks.AppendElement(aCallback); | ||||
| 5222 | } | ||||
| 5223 | |||||
| 5224 | void Stringify(nsACString& aResult) const; | ||||
| 5225 | |||||
| 5226 | private: | ||||
| 5227 | ~Maintenance() override { | ||||
| 5228 | 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", 5228) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Complete" ")"); do { MOZ_CrashSequence(__null, 5228); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5229 | 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" , 5229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseMaintenances.Count()" ")"); do { MOZ_CrashSequence(__null, 5229); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5230 | } | ||||
| 5231 | |||||
| 5232 | // Runs on the PBackground thread. Checks if IndexedDatabaseManager is | ||||
| 5233 | // running. Calls OpenDirectory() or dispatches to the main thread on which | ||||
| 5234 | // CreateIndexedDatabaseManager() is called. | ||||
| 5235 | nsresult Start(); | ||||
| 5236 | |||||
| 5237 | // Runs on the main thread. Once IndexedDatabaseManager is created it will | ||||
| 5238 | // dispatch to the PBackground thread on which OpenDirectory() is called. | ||||
| 5239 | nsresult CreateIndexedDatabaseManager(); | ||||
| 5240 | |||||
| 5241 | RefPtr<UniversalDirectoryLockPromise> OpenStorageDirectory( | ||||
| 5242 | const PersistenceScope& aPersistenceScope, bool aInitializeOrigins); | ||||
| 5243 | |||||
| 5244 | // Runs on the PBackground thread. Once QuotaManager has given a lock it will | ||||
| 5245 | // call DirectoryOpen(). | ||||
| 5246 | nsresult OpenDirectory(); | ||||
| 5247 | |||||
| 5248 | // Runs on the PBackground thread. Dispatches to the QuotaManager I/O thread. | ||||
| 5249 | nsresult DirectoryOpen(); | ||||
| 5250 | |||||
| 5251 | // Runs on the QuotaManager I/O thread. Once it finds databases it will | ||||
| 5252 | // dispatch to the PBackground thread on which BeginDatabaseMaintenance() | ||||
| 5253 | // is called. | ||||
| 5254 | nsresult DirectoryWork(); | ||||
| 5255 | |||||
| 5256 | // Runs on the PBackground thread. It dispatches a runnable for each database. | ||||
| 5257 | nsresult BeginDatabaseMaintenance(); | ||||
| 5258 | |||||
| 5259 | // Runs on the PBackground thread. Called when the maintenance is finished or | ||||
| 5260 | // if any of above methods fails. | ||||
| 5261 | void Finish(); | ||||
| 5262 | |||||
| 5263 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 5264 | |||||
| 5265 | void DirectoryLockAcquired(UniversalDirectoryLock* aLock); | ||||
| 5266 | |||||
| 5267 | void DirectoryLockFailed(); | ||||
| 5268 | }; | ||||
| 5269 | |||||
| 5270 | Maintenance::DirectoryInfo::DirectoryInfo(PersistenceType aPersistenceType, | ||||
| 5271 | OriginMetadata aOriginMetadata, | ||||
| 5272 | nsTArray<nsString>&& aDatabasePaths) | ||||
| 5273 | : mOriginMetadata(std::move(aOriginMetadata)), | ||||
| 5274 | mDatabasePaths(std::move(aDatabasePaths)), | ||||
| 5275 | mPersistenceType(aPersistenceType) { | ||||
| 5276 | 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", 5276) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPersistenceType != PERSISTENCE_TYPE_INVALID" ")"); do { MOZ_CrashSequence(__null, 5276); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5277 | 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", 5277) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mGroup.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5277); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5278 | 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", 5278) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOriginMetadata->mOrigin.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5278); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5279 | #ifdef DEBUG1 | ||||
| 5280 | 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" , 5280); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasePaths->IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5280); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5281 | for (const nsAString& databasePath : *mDatabasePaths) { | ||||
| 5282 | 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", 5282) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5282); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5283 | } | ||||
| 5284 | #endif | ||||
| 5285 | |||||
| 5286 | 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); | ||||
| 5287 | } | ||||
| 5288 | |||||
| 5289 | class DatabaseMaintenance final : public Runnable { | ||||
| 5290 | // The minimum amount of time that has passed since the last vacuum before we | ||||
| 5291 | // will attempt to analyze the database for fragmentation. | ||||
| 5292 | static const PRTime kMinVacuumAge = | ||||
| 5293 | PRTime(PR_USEC_PER_SEC1000000L) * 60 * 60 * 24 * 7; | ||||
| 5294 | |||||
| 5295 | // If the percent of database pages that are not in contiguous order is higher | ||||
| 5296 | // than this percentage we will attempt a vacuum. | ||||
| 5297 | static const int32_t kPercentUnorderedThreshold = 30; | ||||
| 5298 | |||||
| 5299 | // If the percent of file size growth since the last vacuum is higher than | ||||
| 5300 | // this percentage we will attempt a vacuum. | ||||
| 5301 | static const int32_t kPercentFileSizeGrowthThreshold = 10; | ||||
| 5302 | |||||
| 5303 | // The number of freelist pages beyond which we will favor an incremental | ||||
| 5304 | // vacuum over a full vacuum. | ||||
| 5305 | static const int32_t kMaxFreelistThreshold = 5; | ||||
| 5306 | |||||
| 5307 | // If the percent of unused file bytes in the database exceeds this percentage | ||||
| 5308 | // then we will attempt a full vacuum. | ||||
| 5309 | static const int32_t kPercentUnusedThreshold = 20; | ||||
| 5310 | |||||
| 5311 | enum class MaintenanceAction { Nothing = 0, IncrementalVacuum, FullVacuum }; | ||||
| 5312 | |||||
| 5313 | RefPtr<Maintenance> mMaintenance; | ||||
| 5314 | // The directory lock is dropped in RunOnOwningThread which serves as a | ||||
| 5315 | // cleanup method and is always called. | ||||
| 5316 | RefPtr<ClientDirectoryLock> mDirectoryLock; | ||||
| 5317 | const OriginMetadata mOriginMetadata; | ||||
| 5318 | const nsString mDatabasePath; | ||||
| 5319 | int64_t mDirectoryLockId; | ||||
| 5320 | nsCOMPtr<nsIRunnable> mCompleteCallback; | ||||
| 5321 | const PersistenceType mPersistenceType; | ||||
| 5322 | const Maybe<CipherKey> mMaybeKey; | ||||
| 5323 | Atomic<bool> mAborted; | ||||
| 5324 | DataMutex<nsCOMPtr<mozIStorageConnection>> mSharedStorageConnection; | ||||
| 5325 | |||||
| 5326 | public: | ||||
| 5327 | DatabaseMaintenance(Maintenance* aMaintenance, | ||||
| 5328 | RefPtr<ClientDirectoryLock> aDirectoryLock, | ||||
| 5329 | PersistenceType aPersistenceType, | ||||
| 5330 | const OriginMetadata& aOriginMetadata, | ||||
| 5331 | const nsAString& aDatabasePath, | ||||
| 5332 | const Maybe<CipherKey>& aMaybeKey) | ||||
| 5333 | : Runnable("dom::indexedDB::DatabaseMaintenance"), | ||||
| 5334 | mMaintenance(aMaintenance), | ||||
| 5335 | mDirectoryLock(std::move(aDirectoryLock)), | ||||
| 5336 | mOriginMetadata(aOriginMetadata), | ||||
| 5337 | mDatabasePath(aDatabasePath), | ||||
| 5338 | mPersistenceType(aPersistenceType), | ||||
| 5339 | mMaybeKey{aMaybeKey}, | ||||
| 5340 | mAborted(false), | ||||
| 5341 | mSharedStorageConnection("sharedStorageConnection") { | ||||
| 5342 | 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", 5342) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock" ")" ); do { MOZ_CrashSequence(__null, 5342); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5343 | |||||
| 5344 | 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" , 5344); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLock->Id() >= 0" ")"); do { MOZ_CrashSequence(__null, 5344); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5345 | mDirectoryLockId = mDirectoryLock->Id(); | ||||
| 5346 | } | ||||
| 5347 | |||||
| 5348 | const nsAString& DatabasePath() const { return mDatabasePath; } | ||||
| 5349 | |||||
| 5350 | void WaitForCompletion(nsIRunnable* aCallback) { | ||||
| 5351 | AssertIsOnBackgroundThread(); | ||||
| 5352 | 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", 5352) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCompleteCallback" ")"); do { MOZ_CrashSequence(__null, 5352); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5353 | |||||
| 5354 | mCompleteCallback = aCallback; | ||||
| 5355 | } | ||||
| 5356 | |||||
| 5357 | void Stringify(nsACString& aResult) const; | ||||
| 5358 | |||||
| 5359 | nsresult Abort(); | ||||
| 5360 | |||||
| 5361 | private: | ||||
| 5362 | ~DatabaseMaintenance() override = default; | ||||
| 5363 | |||||
| 5364 | // Runs on maintenance thread pool. Does maintenance on the database. | ||||
| 5365 | void PerformMaintenanceOnDatabase(); | ||||
| 5366 | |||||
| 5367 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | ||||
| 5368 | nsresult CheckIntegrity(mozIStorageConnection& aConnection, bool* aOk); | ||||
| 5369 | |||||
| 5370 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | ||||
| 5371 | nsresult DetermineMaintenanceAction(mozIStorageConnection& aConnection, | ||||
| 5372 | nsIFile* aDatabaseFile, | ||||
| 5373 | MaintenanceAction* aMaintenanceAction); | ||||
| 5374 | |||||
| 5375 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | ||||
| 5376 | void IncrementalVacuum(mozIStorageConnection& aConnection); | ||||
| 5377 | |||||
| 5378 | // Runs on maintenance thread pool as part of PerformMaintenanceOnDatabase. | ||||
| 5379 | void FullVacuum(mozIStorageConnection& aConnection, nsIFile* aDatabaseFile); | ||||
| 5380 | |||||
| 5381 | // Runs on the PBackground thread. It dispatches a complete callback and | ||||
| 5382 | // unregisters from Maintenance. | ||||
| 5383 | void RunOnOwningThread(); | ||||
| 5384 | |||||
| 5385 | // Runs on maintenance thread pool. Once it performs database maintenance | ||||
| 5386 | // it will dispatch to the PBackground thread on which RunOnOwningThread() | ||||
| 5387 | // is called. | ||||
| 5388 | void RunOnConnectionThread(); | ||||
| 5389 | |||||
| 5390 | // TODO: Could QuotaClient::IsShuttingDownOnNonBackgroundThread() call | ||||
| 5391 | // be part of mMaintenance::IsAborted() ? | ||||
| 5392 | inline bool IsAborted() const { | ||||
| 5393 | return mMaintenance->IsAborted() || mAborted || | ||||
| 5394 | NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5394); | ||||
| 5395 | } | ||||
| 5396 | |||||
| 5397 | NS_DECL_NSIRUNNABLEvirtual nsresult Run(void) override; | ||||
| 5398 | }; | ||||
| 5399 | |||||
| 5400 | #ifdef DEBUG1 | ||||
| 5401 | |||||
| 5402 | class DEBUGThreadSlower final : public nsIThreadObserver { | ||||
| 5403 | public: | ||||
| 5404 | DEBUGThreadSlower() { | ||||
| 5405 | AssertIsOnBackgroundThread(); | ||||
| 5406 | 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", 5406) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS" ")"); do { MOZ_CrashSequence(__null, 5406); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5407 | } | ||||
| 5408 | |||||
| 5409 | 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: | ||||
| 5410 | |||||
| 5411 | private: | ||||
| 5412 | ~DEBUGThreadSlower() { AssertIsOnBackgroundThread(); } | ||||
| 5413 | |||||
| 5414 | NS_DECL_NSITHREADOBSERVERvirtual nsresult OnDispatchedEvent(void) override; virtual nsresult OnProcessNextEvent(nsIThreadInternal *thread, bool mayWait) override ; virtual nsresult AfterProcessNextEvent(nsIThreadInternal *thread , bool eventWasProcessed) override; | ||||
| 5415 | }; | ||||
| 5416 | |||||
| 5417 | #endif // DEBUG | ||||
| 5418 | |||||
| 5419 | /******************************************************************************* | ||||
| 5420 | * Helper classes | ||||
| 5421 | ******************************************************************************/ | ||||
| 5422 | |||||
| 5423 | // XXX Get rid of FileHelper and move the functions into DatabaseFileManager. | ||||
| 5424 | // Then, DatabaseFileManager::Get(Journal)Directory and | ||||
| 5425 | // DatabaseFileManager::GetFileForId might eventually be made private. | ||||
| 5426 | class MOZ_STACK_CLASS FileHelper final { | ||||
| 5427 | const SafeRefPtr<DatabaseFileManager> mFileManager; | ||||
| 5428 | |||||
| 5429 | LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mFileDirectory; | ||||
| 5430 | LazyInitializedOnce<const NotNull<nsCOMPtr<nsIFile>>> mJournalDirectory; | ||||
| 5431 | |||||
| 5432 | class ReadCallback; | ||||
| 5433 | LazyInitializedOnce<const NotNull<RefPtr<ReadCallback>>> mReadCallback; | ||||
| 5434 | |||||
| 5435 | public: | ||||
| 5436 | explicit FileHelper(SafeRefPtr<DatabaseFileManager>&& aFileManager) | ||||
| 5437 | : mFileManager(std::move(aFileManager)) { | ||||
| 5438 | 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" , 5438); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 5438); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5439 | } | ||||
| 5440 | |||||
| 5441 | nsresult Init(); | ||||
| 5442 | |||||
| 5443 | [[nodiscard]] nsCOMPtr<nsIFile> GetFile(const DatabaseFileInfo& aFileInfo); | ||||
| 5444 | |||||
| 5445 | [[nodiscard]] nsCOMPtr<nsIFile> GetJournalFile( | ||||
| 5446 | const DatabaseFileInfo& aFileInfo); | ||||
| 5447 | |||||
| 5448 | nsresult CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile, | ||||
| 5449 | nsIInputStream& aInputStream, bool aCompress, | ||||
| 5450 | const Maybe<CipherKey>& aMaybeKey); | ||||
| 5451 | |||||
| 5452 | private: | ||||
| 5453 | nsresult SyncCopy(nsIInputStream& aInputStream, | ||||
| 5454 | nsIOutputStream& aOutputStream, char* aBuffer, | ||||
| 5455 | uint32_t aBufferSize); | ||||
| 5456 | |||||
| 5457 | nsresult SyncRead(nsIInputStream& aInputStream, char* aBuffer, | ||||
| 5458 | uint32_t aBufferSize, uint32_t* aRead); | ||||
| 5459 | }; | ||||
| 5460 | |||||
| 5461 | /******************************************************************************* | ||||
| 5462 | * Helper Functions | ||||
| 5463 | ******************************************************************************/ | ||||
| 5464 | |||||
| 5465 | bool GetFilenameBase(const nsAString& aFilename, const nsAString& aSuffix, | ||||
| 5466 | nsDependentSubstring& aFilenameBase) { | ||||
| 5467 | 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", 5467) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5467); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5468 | 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", 5468) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilenameBase.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5468); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5469 | |||||
| 5470 | if (!StringEndsWith(aFilename, aSuffix) || | ||||
| 5471 | aFilename.Length() == aSuffix.Length()) { | ||||
| 5472 | return false; | ||||
| 5473 | } | ||||
| 5474 | |||||
| 5475 | 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", 5475) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFilename.Length() > aSuffix.Length()" ")"); do { MOZ_CrashSequence(__null, 5475); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5476 | |||||
| 5477 | aFilenameBase.Rebind(aFilename, 0, aFilename.Length() - aSuffix.Length()); | ||||
| 5478 | return true; | ||||
| 5479 | } | ||||
| 5480 | |||||
| 5481 | class EncryptedFileBlobImpl final : public FileBlobImpl { | ||||
| 5482 | public: | ||||
| 5483 | EncryptedFileBlobImpl(const nsCOMPtr<nsIFile>& aNativeFile, | ||||
| 5484 | const DatabaseFileInfo::IdType aId, | ||||
| 5485 | const CipherKey& aKey) | ||||
| 5486 | : FileBlobImpl{aNativeFile}, mKey{aKey} { | ||||
| 5487 | SetFileId(aId); | ||||
| 5488 | } | ||||
| 5489 | |||||
| 5490 | // The size of the blob is stored in the metadata where EncryptedFileBlobImpl | ||||
| 5491 | // is used, allowing a child process to set the size lazily. Therefore, the | ||||
| 5492 | // parent process is allowed to return a dummy value to avoid sync I/O. In a | ||||
| 5493 | // child process, the size should already be set beforehand and GetSize should | ||||
| 5494 | // only accesses it. And the reason why 0 is returned, even when the size is | ||||
| 5495 | // not set in a child process, is is because the spec doesn't allow Blob.size | ||||
| 5496 | // to throw. | ||||
| 5497 | uint64_t GetSize(ErrorResult& aRv) override { | ||||
| 5498 | 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", 5498) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "XRE_IsParentProcess() || mLength.isSome()" ")"); do { MOZ_CrashSequence(__null, 5498); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5499 | return mLength.valueOr(0); | ||||
| 5500 | } | ||||
| 5501 | |||||
| 5502 | void CreateInputStream(nsIInputStream** aInputStream, | ||||
| 5503 | ErrorResult& aRv) const override { | ||||
| 5504 | nsCOMPtr<nsIInputStream> baseInputStream; | ||||
| 5505 | FileBlobImpl::CreateInputStream(getter_AddRefs(baseInputStream), aRv); | ||||
| 5506 | if (NS_WARN_IF(aRv.Failed())NS_warn_if_impl(aRv.Failed(), "aRv.Failed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5506)) { | ||||
| 5507 | return; | ||||
| 5508 | } | ||||
| 5509 | |||||
| 5510 | *aInputStream = | ||||
| 5511 | MakeAndAddRef<DecryptingInputStream<IndexedDBCipherStrategy>>( | ||||
| 5512 | WrapNotNull(std::move(baseInputStream)), kEncryptedStreamBlockSize, | ||||
| 5513 | mKey) | ||||
| 5514 | .take(); | ||||
| 5515 | } | ||||
| 5516 | |||||
| 5517 | void GetBlobImplType(nsAString& aBlobImplType) const override { | ||||
| 5518 | aBlobImplType = u"EncryptedFileBlobImpl"_ns; | ||||
| 5519 | } | ||||
| 5520 | |||||
| 5521 | already_AddRefed<BlobImpl> CreateSlice(uint64_t aStart, uint64_t aLength, | ||||
| 5522 | const nsAString& aContentType, | ||||
| 5523 | ErrorResult& aRv) const override { | ||||
| 5524 | 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", 5524) ; AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 5524); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 5525 | } | ||||
| 5526 | |||||
| 5527 | private: | ||||
| 5528 | const CipherKey mKey; | ||||
| 5529 | }; | ||||
| 5530 | |||||
| 5531 | RefPtr<BlobImpl> CreateFileBlobImpl(const Database& aDatabase, | ||||
| 5532 | const nsCOMPtr<nsIFile>& aNativeFile, | ||||
| 5533 | const DatabaseFileInfo::IdType aId) { | ||||
| 5534 | if (aDatabase.IsInPrivateBrowsing()) { | ||||
| 5535 | nsCString keyId; | ||||
| 5536 | keyId.AppendInt(aId); | ||||
| 5537 | |||||
| 5538 | const auto& key = | ||||
| 5539 | aDatabase.GetFileManager().MutableCipherKeyManagerRef().Get(keyId); | ||||
| 5540 | |||||
| 5541 | 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" , 5541); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "key.isSome()" ")"); do { MOZ_CrashSequence(__null, 5541); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5542 | return MakeRefPtr<EncryptedFileBlobImpl>(aNativeFile, aId, *key); | ||||
| 5543 | } | ||||
| 5544 | |||||
| 5545 | auto impl = MakeRefPtr<FileBlobImpl>(aNativeFile); | ||||
| 5546 | impl->SetFileId(aId); | ||||
| 5547 | |||||
| 5548 | return impl; | ||||
| 5549 | } | ||||
| 5550 | |||||
| 5551 | Result<nsTArray<SerializedStructuredCloneFile>, nsresult> | ||||
| 5552 | SerializeStructuredCloneFiles(const SafeRefPtr<Database>& aDatabase, | ||||
| 5553 | const nsTArray<StructuredCloneFileParent>& aFiles, | ||||
| 5554 | bool aForPreprocess) { | ||||
| 5555 | AssertIsOnBackgroundThread(); | ||||
| 5556 | 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" , 5556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabase" ")" ); do { MOZ_CrashSequence(__null, 5556); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5557 | |||||
| 5558 | if (aFiles.IsEmpty()) { | ||||
| 5559 | return nsTArray<SerializedStructuredCloneFile>{}; | ||||
| 5560 | } | ||||
| 5561 | |||||
| 5562 | const nsCOMPtr<nsIFile> directory = | ||||
| 5563 | aDatabase->GetFileManager().GetCheckedDirectory(); | ||||
| 5564 | QM_TRY(OkIf(directory), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult880 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult880)::ok_type>); if ((__builtin_expect (!!(tryResult880.isErr()), 0))) { auto tryTempError = tryResult880 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5565, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5565, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(directory)" , tryTempError, Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)); }} | ||||
| 5565 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult880 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult880)::ok_type>); if ((__builtin_expect (!!(tryResult880.isErr()), 0))) { auto tryTempError = tryResult880 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(directory)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5565, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5565, 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)); }}; | ||||
| 5566 | |||||
| 5567 | nsTArray<SerializedStructuredCloneFile> serializedStructuredCloneFiles; | ||||
| 5568 | QM_TRY(OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(),{auto tryResult881 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult881)::ok_type>); if ((__builtin_expect (!!(tryResult881.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult881.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5570, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }} | ||||
| 5569 | fallible)),{auto tryResult881 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult881)::ok_type>); if ((__builtin_expect (!!(tryResult881.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult881.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5570, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }} | ||||
| 5570 | Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult881 = (OkIf(serializedStructuredCloneFiles.SetCapacity (aFiles.Length(), fallible))); static_assert(std::is_empty_v< typename decltype(tryResult881)::ok_type>); if ((__builtin_expect (!!(tryResult881.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult881.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(serializedStructuredCloneFiles.SetCapacity(aFiles.Length(), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5570, 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)); }}; | ||||
| 5571 | |||||
| 5572 | QM_TRY(TransformIfAbortOnErr({auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5573 | aFiles, MakeBackInserter(serializedStructuredCloneFiles),{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5574 | [aForPreprocess](const auto& file) {{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5575 | return !aForPreprocess ||{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5576 | file.Type() == StructuredCloneFileBase::eStructuredClone;{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5577 | },{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5578 | [&directory, &aDatabase, aForPreprocess]({auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5579 | const auto& file) -> Result<SerializedStructuredCloneFile, nsresult> {{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5580 | const int64_t fileId = file.FileInfo().Id();{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5581 | MOZ_ASSERT(fileId > 0);{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5582 | |||||
| 5583 | const nsCOMPtr<nsIFile> nativeFile ={auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5584 | mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId({auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5585 | directory, fileId);{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5586 | QM_TRY(OkIf(nativeFile), Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5587 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5588 | |||||
| 5589 | switch (file.Type()) {{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5590 | case StructuredCloneFileBase::eStructuredClone:{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5591 | if (!aForPreprocess) {{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5592 | return SerializedStructuredCloneFile{{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5593 | null_t(), StructuredCloneFileBase::eStructuredClone};{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5594 | }{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5595 | |||||
| 5596 | [[fallthrough]];{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5597 | |||||
| 5598 | case StructuredCloneFileBase::eBlob: {{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5599 | const auto impl = CreateFileBlobImpl(*aDatabase, nativeFile,{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5600 | file.FileInfo().Id());{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5601 | |||||
| 5602 | IPCBlob ipcBlob;{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5603 | |||||
| 5604 | // This can only fail if the child has crashed.{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5605 | QM_TRY(MOZ_TO_RESULT(IPCBlobUtils::Serialize(impl, ipcBlob)),{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5606 | Err(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR),{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5607 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5608 | |||||
| 5609 | aDatabase->MapBlob(ipcBlob, file.FileInfoPtr());{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5610 | |||||
| 5611 | return SerializedStructuredCloneFile{ipcBlob, file.Type()};{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5612 | }{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5613 | |||||
| 5614 | case StructuredCloneFileBase::eMutableFile:{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5615 | case StructuredCloneFileBase::eWasmBytecode:{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5616 | case StructuredCloneFileBase::eWasmCompiled: {{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5617 | // Set file() to null, support for storing WebAssembly.Modules has{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5618 | // been removed in bug 1469395. Support for de-serialization of{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5619 | // WebAssembly.Modules modules has been removed in bug 1561876.{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5620 | // Support for MutableFile has been removed in bug 1500343. Full{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5621 | // removal is tracked in bug 1487479.{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5622 | |||||
| 5623 | return SerializedStructuredCloneFile{null_t(), file.Type()};{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5624 | }{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5625 | |||||
| 5626 | default:{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5627 | MOZ_CRASH("Should never get here!");{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5628 | }{auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }} | ||||
| 5629 | })){auto tryResult884 = (TransformIfAbortOnErr( aFiles, MakeBackInserter (serializedStructuredCloneFiles), [aForPreprocess](const auto & file) { return !aForPreprocess || file.Type() == StructuredCloneFileBase ::eStructuredClone; }, [&directory, &aDatabase, aForPreprocess ]( const auto& file) -> Result<SerializedStructuredCloneFile , nsresult> { const int64_t fileId = file.FileInfo().Id(); do { static_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", 5581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileId > 0" ")") ; do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); const nsCOMPtr <nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager ::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect( !!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(nativeFile)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl , ipcBlob))); static_assert(std::is_empty_v<typename decltype (tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883 .isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, mozilla::dom::quota::Severity::Error); [](const auto& ) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5607, 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" , 5627); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } })); static_assert (std::is_empty_v<typename decltype(tryResult884)::ok_type> ); if ((__builtin_expect(!!(tryResult884.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\", 5581); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileId > 0\" \")\"); do { MOZ_CrashSequence(__null, 5581); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); const nsCOMPtr<nsIFile> nativeFile = mozilla::dom::indexedDB::DatabaseFileManager::GetCheckedFileForId( directory, fileId); {auto tryResult882 = (OkIf(nativeFile)); static_assert(std::is_empty_v<typename decltype(tryResult882)::ok_type>); if ((__builtin_expect(!!(tryResult882.isErr()), 0))) { auto tryTempError = tryResult882.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(nativeFile)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5587, 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 tryResult883 = (ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))); static_assert(std::is_empty_v<typename decltype(tryResult883)::ok_type>); if ((__builtin_expect(!!(tryResult883.isErr()), 0))) { auto tryTempError = tryResult883.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(IPCBlobUtils::Serialize(impl, ipcBlob))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5607, 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\", 5627); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 5627); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } })" , tryResult884.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5629, mozilla::dom::quota::Severity::Error); return tryResult884 .propagateErr(); }}; | ||||
| 5630 | |||||
| 5631 | return std::move(serializedStructuredCloneFiles); | ||||
| 5632 | } | ||||
| 5633 | |||||
| 5634 | bool IsFileNotFoundError(const nsresult aRv) { | ||||
| 5635 | return aRv == NS_ERROR_FILE_NOT_FOUND; | ||||
| 5636 | } | ||||
| 5637 | |||||
| 5638 | enum struct Idempotency { Yes, No }; | ||||
| 5639 | |||||
| 5640 | // Delete a file, decreasing the quota usage as appropriate. If the file no | ||||
| 5641 | // longer exists but aIdempotency is Idempotency::Yes, success is returned, | ||||
| 5642 | // although quota usage can't be decreased. (With the assumption being that the | ||||
| 5643 | // file was already deleted prior to this logic running, and the non-existent | ||||
| 5644 | // file was no longer tracked by quota because it didn't exist at | ||||
| 5645 | // initialization time or a previous deletion call updated the usage.) | ||||
| 5646 | nsresult DeleteFile(nsIFile& aFile, QuotaManager* const aQuotaManager, | ||||
| 5647 | const PersistenceType aPersistenceType, | ||||
| 5648 | const OriginMetadata& aOriginMetadata, | ||||
| 5649 | const Idempotency aIdempotency) { | ||||
| 5650 | 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", 5650) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 5650); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5651 | 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", 5651) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 5651); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5652 | |||||
| 5653 | // Callers which pass Idempotency::Yes call this function without checking if | ||||
| 5654 | // the file already exists (idempotent usage). QM_OR_ELSE_WARN_IF is not used | ||||
| 5655 | // here since we just want to log NS_ERROR_FILE_NOT_FOUND results and not spam | ||||
| 5656 | // the reports. | ||||
| 5657 | // Theoretically, there should be no QM_OR_ELSE_(WARN|LOG_VERBOSE)_IF when a | ||||
| 5658 | // caller passes Idempotency::No, but it's simpler when the predicate just | ||||
| 5659 | // always returns false in that case. | ||||
| 5660 | |||||
| 5661 | const auto isIgnorableError = [&aIdempotency]() -> bool (*)(nsresult) { | ||||
| 5662 | if (aIdempotency == Idempotency::Yes) { | ||||
| 5663 | return IsFileNotFoundError; | ||||
| 5664 | } | ||||
| 5665 | |||||
| 5666 | return [](const nsresult rv) { return false; }; | ||||
| 5667 | }(); | ||||
| 5668 | |||||
| 5669 | QM_TRY_INSPECT(auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5670 | const auto& fileSize,auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5671 | ([aQuotaManager, &aFile,auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5672 | isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> {auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5673 | if (aQuotaManager) {auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5674 | QM_TRY_INSPECT(auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5675 | const Maybe<int64_t>& fileSize,auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5676 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5677 | // Expression.auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5678 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, GetFileSize)auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5679 | .map([](const int64_t val) { return Some(val); }),auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5680 | // Predicate.auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5681 | isIgnorableError,auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5682 | // Fallback.auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5683 | ErrToDefaultOk<Maybe<int64_t>>));auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5684 | |||||
| 5685 | // XXX Can we really assert that the file size is not 0 ifauto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5686 | // it existed? This might be violated by externalauto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5687 | // influences.auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5688 | MOZ_ASSERT(!fileSize || fileSize.value() >= 0);auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5689 | |||||
| 5690 | return fileSize;auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5691 | }auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5692 | |||||
| 5693 | return Some(int64_t(0));auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect (); | ||||
| 5694 | }()))auto tryResult886 = (([aQuotaManager, &aFile, isIgnorableError ]() -> Result<Maybe<int64_t>, nsresult> { if ( aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf ( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla:: detail::DerefedType<decltype(aFile)>::GetFileSize ) .map ([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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" , 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885 .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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)" , tryResult885.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5683, mozilla::dom::quota::Severity::Error); return tryResult885 .propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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" , 5688); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!fileSize || fileSize.value() >= 0" ")"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return fileSize ; } return Some(int64_t(0)); }())); if ((__builtin_expect(!!( tryResult886.isErr()), 0))) { mozilla::dom::quota::HandleError ("([aQuotaManager, &aFile, isIgnorableError]() -> Result<Maybe<int64_t>, nsresult> { if (aQuotaManager) { auto tryResult885 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::GetFileSize ) .map([](const int64_t val) { return Some(val); })), [&](const auto& firstRes) { bool res = 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\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)); if ((__builtin_expect(!!(tryResult885.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\\\", 5683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<int64_t>>)\", tryResult885.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5683, mozilla::dom::quota::Severity::Error); return tryResult885.propagateErr(); } const Maybe<int64_t>& fileSize = tryResult885.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\", 5688); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!fileSize || fileSize.value() >= 0\" \")\"); do { MOZ_CrashSequence(__null, 5688); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return fileSize; } return Some(int64_t(0)); }())" , tryResult886.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5694, mozilla::dom::quota::Severity::Error); return tryResult886 .propagateErr(); } const auto& fileSize = tryResult886.inspect ();; | ||||
| 5695 | |||||
| 5696 | if (!fileSize) { | ||||
| 5697 | return NS_OK; | ||||
| 5698 | } | ||||
| 5699 | |||||
| 5700 | QM_TRY_INSPECT(const auto& didExist,auto tryResult887 = (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" , 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult887 .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\", 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5707, mozilla::dom::quota::Severity::Error); return tryResult887 .propagateErr(); } const auto& didExist = tryResult887.inspect (); | ||||
| 5701 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult887 = (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" , 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult887 .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\", 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5707, mozilla::dom::quota::Severity::Error); return tryResult887 .propagateErr(); } const auto& didExist = tryResult887.inspect (); | ||||
| 5702 | // Expression.auto tryResult887 = (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" , 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult887 .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\", 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5707, mozilla::dom::quota::Severity::Error); return tryResult887 .propagateErr(); } const auto& didExist = tryResult887.inspect (); | ||||
| 5703 | MOZ_TO_RESULT(aFile.Remove(false)).map(Some<Ok>),auto tryResult887 = (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" , 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult887 .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\", 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5707, mozilla::dom::quota::Severity::Error); return tryResult887 .propagateErr(); } const auto& didExist = tryResult887.inspect (); | ||||
| 5704 | // Predicate.auto tryResult887 = (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" , 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult887 .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\", 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5707, mozilla::dom::quota::Severity::Error); return tryResult887 .propagateErr(); } const auto& didExist = tryResult887.inspect (); | ||||
| 5705 | isIgnorableError,auto tryResult887 = (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" , 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult887 .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\", 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5707, mozilla::dom::quota::Severity::Error); return tryResult887 .propagateErr(); } const auto& didExist = tryResult887.inspect (); | ||||
| 5706 | // Fallback.auto tryResult887 = (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" , 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult887 .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\", 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5707, mozilla::dom::quota::Severity::Error); return tryResult887 .propagateErr(); } const auto& didExist = tryResult887.inspect (); | ||||
| 5707 | ErrToDefaultOk<Maybe<Ok>>))auto tryResult887 = (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" , 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult887 .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\", 5707, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult887.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5707, mozilla::dom::quota::Severity::Error); return tryResult887 .propagateErr(); } const auto& didExist = tryResult887.inspect ();; | ||||
| 5708 | |||||
| 5709 | if (!didExist) { | ||||
| 5710 | // XXX If we get here, this means that the file still existed when we | ||||
| 5711 | // queried its size, but no longer when we tried to remove it. Not sure if | ||||
| 5712 | // this should really be silently accepted in idempotent mode. | ||||
| 5713 | return NS_OK; | ||||
| 5714 | } | ||||
| 5715 | |||||
| 5716 | if (fileSize.value() > 0) { | ||||
| 5717 | 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", 5717); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aQuotaManager" ")") ; do { MOZ_CrashSequence(__null, 5717); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5718 | |||||
| 5719 | aQuotaManager->DecreaseUsageForClient( | ||||
| 5720 | ClientMetadata{aOriginMetadata, Client::IDB}, fileSize.value()); | ||||
| 5721 | } | ||||
| 5722 | |||||
| 5723 | return NS_OK; | ||||
| 5724 | } | ||||
| 5725 | |||||
| 5726 | nsresult DeleteFile(nsIFile& aDirectory, const nsAString& aFilename, | ||||
| 5727 | QuotaManager* const aQuotaManager, | ||||
| 5728 | const PersistenceType aPersistenceType, | ||||
| 5729 | const OriginMetadata& aOriginMetadata, | ||||
| 5730 | const Idempotency aIdempotent) { | ||||
| 5731 | AssertIsOnIOThread(); | ||||
| 5732 | 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", 5732) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5732); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5733 | |||||
| 5734 | QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(aDirectory, aFilename))auto tryResult888 = (CloneFileAndAppend(aDirectory, aFilename )); if ((__builtin_expect(!!(tryResult888.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, aFilename)" , tryResult888.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5734, mozilla::dom::quota::Severity::Error); return tryResult888 .propagateErr(); } const auto& file = tryResult888.inspect ();; | ||||
| 5735 | |||||
| 5736 | return DeleteFile(*file, aQuotaManager, aPersistenceType, aOriginMetadata, | ||||
| 5737 | aIdempotent); | ||||
| 5738 | } | ||||
| 5739 | |||||
| 5740 | // Delete files in a directory that you think exists. If the directory doesn't | ||||
| 5741 | // exist, an error will not be returned, but warning telemetry will be | ||||
| 5742 | // generated! So only call this on directories that you know exist (idempotent | ||||
| 5743 | // usage, but it's not recommended). | ||||
| 5744 | nsresult DeleteFilesNoQuota(nsIFile& aFile) { | ||||
| 5745 | AssertIsOnIOThread(); | ||||
| 5746 | |||||
| 5747 | QM_TRY_INSPECT(const auto& didExist,auto tryResult889 = (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" , 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult889 .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\", 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult889 .propagateErr(); } const auto& didExist = tryResult889.inspect (); | ||||
| 5748 | QM_OR_ELSE_WARN_IF(auto tryResult889 = (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" , 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult889 .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\", 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult889 .propagateErr(); } const auto& didExist = tryResult889.inspect (); | ||||
| 5749 | // Expression.auto tryResult889 = (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" , 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult889 .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\", 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult889 .propagateErr(); } const auto& didExist = tryResult889.inspect (); | ||||
| 5750 | MOZ_TO_RESULT(aFile.Remove(true)).map(Some<Ok>),auto tryResult889 = (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" , 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult889 .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\", 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult889 .propagateErr(); } const auto& didExist = tryResult889.inspect (); | ||||
| 5751 | // Predicate.auto tryResult889 = (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" , 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult889 .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\", 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult889 .propagateErr(); } const auto& didExist = tryResult889.inspect (); | ||||
| 5752 | IsFileNotFoundError,auto tryResult889 = (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" , 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult889 .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\", 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult889 .propagateErr(); } const auto& didExist = tryResult889.inspect (); | ||||
| 5753 | // Fallback.auto tryResult889 = (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" , 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult889 .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\", 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult889 .propagateErr(); } const auto& didExist = tryResult889.inspect (); | ||||
| 5754 | ErrToDefaultOk<Maybe<Ok>>))auto tryResult889 = (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" , 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <Maybe<Ok>>)); if ((__builtin_expect(!!(tryResult889 .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\", 5754, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<Maybe<Ok>>)" , tryResult889.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5754, mozilla::dom::quota::Severity::Error); return tryResult889 .propagateErr(); } const auto& didExist = tryResult889.inspect ();; | ||||
| 5755 | |||||
| 5756 | (void)didExist; | ||||
| 5757 | |||||
| 5758 | return NS_OK; | ||||
| 5759 | } | ||||
| 5760 | |||||
| 5761 | nsresult DeleteFilesNoQuota(nsIFile* aDirectory, const nsAString& aFilename) { | ||||
| 5762 | AssertIsOnIOThread(); | ||||
| 5763 | 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" , 5763); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 5763); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5764 | 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", 5764) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aFilename.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5764); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5765 | |||||
| 5766 | // The current using function hasn't initialized the origin, so in here we | ||||
| 5767 | // don't update the size of origin. Adding this assertion for preventing from | ||||
| 5768 | // misusing. | ||||
| 5769 | DebugOnly<QuotaManager*> quotaManager = QuotaManager::Get(); | ||||
| 5770 | 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", 5770); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!quotaManager->IsTemporaryStorageInitializedInternal()" ")"); do { MOZ_CrashSequence(__null, 5770); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5771 | |||||
| 5772 | QM_TRY_INSPECT(const auto& file, CloneFileAndAppend(*aDirectory, aFilename))auto tryResult890 = (CloneFileAndAppend(*aDirectory, aFilename )); if ((__builtin_expect(!!(tryResult890.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, aFilename)" , tryResult890.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5772, mozilla::dom::quota::Severity::Error); return tryResult890 .propagateErr(); } const auto& file = tryResult890.inspect ();; | ||||
| 5773 | |||||
| 5774 | QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(*file))){auto tryResult891 = (ToResult(DeleteFilesNoQuota(*file))); static_assert (std::is_empty_v<typename decltype(tryResult891)::ok_type> ); if ((__builtin_expect(!!(tryResult891.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(*file))" , tryResult891.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5774, mozilla::dom::quota::Severity::Error); return tryResult891 .propagateErr(); }}; | ||||
| 5775 | |||||
| 5776 | return NS_OK; | ||||
| 5777 | } | ||||
| 5778 | |||||
| 5779 | // CreateMarkerFile and RemoveMarkerFile are a pair of functions to indicate | ||||
| 5780 | // whether having removed all the files successfully. The marker file should | ||||
| 5781 | // be checked before executing the next operation or initialization. | ||||
| 5782 | Result<nsCOMPtr<nsIFile>, nsresult> CreateMarkerFile( | ||||
| 5783 | nsIFile& aBaseDirectory, const nsAString& aDatabaseNameBase) { | ||||
| 5784 | AssertIsOnIOThread(); | ||||
| 5785 | 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" , 5785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseNameBase.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5785); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5786 | |||||
| 5787 | QM_TRY_INSPECT(auto tryResult892 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult892 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult892.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5790, mozilla::dom::quota::Severity::Error); return tryResult892 .propagateErr(); } const auto& markerFile = tryResult892. inspect(); | ||||
| 5788 | const auto& markerFile,auto tryResult892 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult892 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult892.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5790, mozilla::dom::quota::Severity::Error); return tryResult892 .propagateErr(); } const auto& markerFile = tryResult892. inspect(); | ||||
| 5789 | CloneFileAndAppend(aBaseDirectory,auto tryResult892 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult892 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult892.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5790, mozilla::dom::quota::Severity::Error); return tryResult892 .propagateErr(); } const auto& markerFile = tryResult892. inspect(); | ||||
| 5790 | kIdbDeletionMarkerFilePrefix + aDatabaseNameBase))auto tryResult892 = (CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)); if ((__builtin_expect(!!(tryResult892 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(aBaseDirectory, kIdbDeletionMarkerFilePrefix + aDatabaseNameBase)" , tryResult892.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5790, mozilla::dom::quota::Severity::Error); return tryResult892 .propagateErr(); } const auto& markerFile = tryResult892. inspect();; | ||||
| 5791 | |||||
| 5792 | // Callers call this function without checking if the file already exists | ||||
| 5793 | // (idempotent usage). QM_OR_ELSE_WARN_IF is not used here since we just want | ||||
| 5794 | // to log NS_ERROR_FILE_ALREADY_EXISTS result and not spam the reports. | ||||
| 5795 | // | ||||
| 5796 | // TODO: In theory if this file exists, then RemoveDatabaseFilesAndDirectory | ||||
| 5797 | // should have cleaned it up, but obviously we can crash and not clean it up, | ||||
| 5798 | // which is the whole point of the marker file. In that case, we'll realize | ||||
| 5799 | // the marker file exists in OpenDatabaseOp::DoDatabaseWork or | ||||
| 5800 | // GetUsageForOriginInternal and resume the removal by calling | ||||
| 5801 | // RemoveDatabaseFilesAndDirectory again, but we will also try to create the | ||||
| 5802 | // marker file again, so if we see this marker file, it is part | ||||
| 5803 | // of our standard operating procedure to redundantly try and create the | ||||
| 5804 | // marker here. We currently treat this as idempotent usage, but we could | ||||
| 5805 | // add an additional argument to RemoveDatabaseFilesAndDirectory which would | ||||
| 5806 | // indicate that we are resuming an unfinished removal, so the marker already | ||||
| 5807 | // exists and doesn't have to be created, and change | ||||
| 5808 | // QM_OR_ELSE_LOG_VERBOSE_IF to QM_OR_ELSE_WARN_IF in the end. | ||||
| 5809 | QM_TRY(QM_OR_ELSE_LOG_VERBOSE_IF({auto tryResult893 = (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" , 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult893)::ok_type>); if ((__builtin_expect(!!(tryResult893 .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\", 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); }} | ||||
| 5810 | // Expression.{auto tryResult893 = (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" , 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult893)::ok_type>); if ((__builtin_expect(!!(tryResult893 .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\", 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); }} | ||||
| 5811 | MOZ_TO_RESULT(markerFile->Create(nsIFile::NORMAL_FILE_TYPE, 0644)),{auto tryResult893 = (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" , 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult893)::ok_type>); if ((__builtin_expect(!!(tryResult893 .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\", 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); }} | ||||
| 5812 | // Predicate.{auto tryResult893 = (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" , 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult893)::ok_type>); if ((__builtin_expect(!!(tryResult893 .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\", 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); }} | ||||
| 5813 | IsSpecificError<NS_ERROR_FILE_ALREADY_EXISTS>,{auto tryResult893 = (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" , 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult893)::ok_type>); if ((__builtin_expect(!!(tryResult893 .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\", 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); }} | ||||
| 5814 | // Fallback.{auto tryResult893 = (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" , 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult893)::ok_type>); if ((__builtin_expect(!!(tryResult893 .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\", 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); }} | ||||
| 5815 | ErrToDefaultOk<>)){auto tryResult893 = (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" , 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <>)); static_assert(std::is_empty_v<typename decltype (tryResult893)::ok_type>); if ((__builtin_expect(!!(tryResult893 .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\", 5815, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<>)" , tryResult893.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5815, mozilla::dom::quota::Severity::Error); return tryResult893 .propagateErr(); }}; | ||||
| 5816 | |||||
| 5817 | return markerFile; | ||||
| 5818 | } | ||||
| 5819 | |||||
| 5820 | nsresult RemoveMarkerFile(nsIFile* aMarkerFile) { | ||||
| 5821 | AssertIsOnIOThread(); | ||||
| 5822 | 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" , 5822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMarkerFile" ")"); do { MOZ_CrashSequence(__null, 5822); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5823 | |||||
| 5824 | DebugOnly<bool> exists; | ||||
| 5825 | 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", 5825) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(aMarkerFile->Exists(&exists))), 1)))" ")"); do { MOZ_CrashSequence(__null, 5825); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5826 | 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" , 5826); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { MOZ_CrashSequence(__null, 5826); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5827 | |||||
| 5828 | QM_TRY(MOZ_TO_RESULT(aMarkerFile->Remove(false))){auto tryResult894 = (ToResult(aMarkerFile->Remove(false)) ); static_assert(std::is_empty_v<typename decltype(tryResult894 )::ok_type>); if ((__builtin_expect(!!(tryResult894.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(aMarkerFile->Remove(false))" , tryResult894.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5828, mozilla::dom::quota::Severity::Error); return tryResult894 .propagateErr(); }}; | ||||
| 5829 | |||||
| 5830 | return NS_OK; | ||||
| 5831 | } | ||||
| 5832 | |||||
| 5833 | Result<Ok, nsresult> DeleteFileManagerDirectory( | ||||
| 5834 | nsIFile& aFileManagerDirectory, QuotaManager* aQuotaManager, | ||||
| 5835 | const PersistenceType aPersistenceType, | ||||
| 5836 | const OriginMetadata& aOriginMetadata) { | ||||
| 5837 | GECKO_TRACE_SCOPE("dom::indexedDB", "DeleteFileManagerDirectory")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider ::GetTracer("dom::indexedDB") ->StartSpan("DeleteFileManagerDirectory" ) ->Enter();; | ||||
| 5838 | |||||
| 5839 | // XXX In theory, deleting can continue for other files in case of a failure, | ||||
| 5840 | // leaving only those files behind that cause the problem actually. However, | ||||
| 5841 | // the current architecture doesn't allow having more databases (for the same | ||||
| 5842 | // name) on disk, so trying to delete as much as possible won't help much | ||||
| 5843 | // because we need to delete entire .files directory in the end anyway. | ||||
| 5844 | QM_TRY(DatabaseFileManager::TraverseFiles({auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5845 | aFileManagerDirectory,{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5846 | // KnownDirEntryOp{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5847 | [&aQuotaManager, aPersistenceType, &aOriginMetadata]({auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5848 | nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5849 | if (isDirectory) {{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5850 | // The journal directory doesn't count towards quota.{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5851 | QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5852 | }{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5853 | |||||
| 5854 | // Stored files do count towards quota.{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5855 | QM_TRY_RETURN({auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5856 | MOZ_TO_RESULT(DeleteFile(file, aQuotaManager, aPersistenceType,{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5857 | aOriginMetadata, Idempotency::Yes)));{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5858 | },{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5859 | // UnknownDirEntryOp{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5860 | [aPersistenceType, &aOriginMetadata]({auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5861 | nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5862 | // Unknown files and directories don't count towards quota.{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5863 | |||||
| 5864 | if (isDirectory) {{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5865 | QM_TRY_RETURN(MOZ_TO_RESULT(DeleteFilesNoQuota(file)));{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5866 | }{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5867 | |||||
| 5868 | QM_TRY_RETURN(MOZ_TO_RESULT({auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5869 | DeleteFile(file, /* doesn't count */ nullptr, aPersistenceType,{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5870 | aOriginMetadata, Idempotency::Yes)));{auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }} | ||||
| 5871 | })){auto tryResult899 = (DatabaseFileManager::TraverseFiles( aFileManagerDirectory , [&aQuotaManager, aPersistenceType, &aOriginMetadata ]( nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult (DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult895.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5851, mozilla::dom::quota::Severity::Error); } return tryResult895 ;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult896.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5857, mozilla::dom::quota::Severity::Error); } return tryResult896 ;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota (file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0)) ) { mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(file))" , tryResult897.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5865, mozilla::dom::quota::Severity::Error); } return tryResult897 ;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr , aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ( (__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom ::quota::HandleError("ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult898.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5870, mozilla::dom::quota::Severity::Error); } return tryResult898 ;}; })); static_assert(std::is_empty_v<typename decltype(tryResult899 )::ok_type>); if ((__builtin_expect(!!(tryResult899.isErr( )), 0))) { mozilla::dom::quota::HandleError("DatabaseFileManager::TraverseFiles( aFileManagerDirectory, [&aQuotaManager, aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult895 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult895.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult895.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5851, mozilla::dom::quota::Severity::Error); } return tryResult895;}; } {auto tryResult896 = (ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult896.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult896.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5857, mozilla::dom::quota::Severity::Error); } return tryResult896;}; }, [aPersistenceType, &aOriginMetadata]( nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { {auto tryResult897 = (ToResult(DeleteFilesNoQuota(file))); if ((__builtin_expect(!!(tryResult897.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(file))\", tryResult897.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5865, mozilla::dom::quota::Severity::Error); } return tryResult897;}; } {auto tryResult898 = (ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))); if ((__builtin_expect(!!(tryResult898.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteFile(file, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))\", tryResult898.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 5870, mozilla::dom::quota::Severity::Error); } return tryResult898;}; })" , tryResult899.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5871, mozilla::dom::quota::Severity::Error); return tryResult899 .propagateErr(); }}; | ||||
| 5872 | |||||
| 5873 | QM_TRY_RETURN(MOZ_TO_RESULT(aFileManagerDirectory.Remove(false))){auto tryResult900 = (ToResult(aFileManagerDirectory.Remove(false ))); if ((__builtin_expect(!!(tryResult900.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aFileManagerDirectory.Remove(false))" , tryResult900.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5873, mozilla::dom::quota::Severity::Error); } return tryResult900 ;}; | ||||
| 5874 | } | ||||
| 5875 | |||||
| 5876 | // Idempotently delete all the parts of an IndexedDB database including its | ||||
| 5877 | // SQLite database file, its WAL journal, it's shared-memory file, and its | ||||
| 5878 | // Blob/Files sub-directory. A marker file is created prior to performing the | ||||
| 5879 | // deletion so that in the event we crash or fail to successfully delete the | ||||
| 5880 | // database and its files, we will re-attempt the deletion the next time the | ||||
| 5881 | // origin is initialized using this method. Because this means the method may be | ||||
| 5882 | // called on a partially deleted database, this method uses DeleteFile which | ||||
| 5883 | // succeeds when the file we ask it to delete does not actually exist. The | ||||
| 5884 | // marker file is removed once deletion has successfully completed. | ||||
| 5885 | nsresult RemoveDatabaseFilesAndDirectory(nsIFile& aBaseDirectory, | ||||
| 5886 | const nsAString& aDatabaseFilenameBase, | ||||
| 5887 | QuotaManager* aQuotaManager, | ||||
| 5888 | const PersistenceType aPersistenceType, | ||||
| 5889 | const OriginMetadata& aOriginMetadata, | ||||
| 5890 | const nsAString& aDatabaseName) { | ||||
| 5891 | GECKO_TRACE_SCOPE("dom::indexedDB", "RemoveDatabaseFilesAndDirectory")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider ::GetTracer("dom::indexedDB") ->StartSpan("RemoveDatabaseFilesAndDirectory" ) ->Enter();; | ||||
| 5892 | |||||
| 5893 | AssertIsOnIOThread(); | ||||
| 5894 | 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" , 5894); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseFilenameBase.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 5894); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 5895 | |||||
| 5896 | AUTO_PROFILER_LABEL("RemoveDatabaseFilesAndDirectory", DOM)mozilla::AutoProfilerLabel raiiObject5896( "RemoveDatabaseFilesAndDirectory" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 5897 | |||||
| 5898 | QM_TRY(ArtificialFailure({auto tryResult901 = (ArtificialFailure( nsIQuotaArtificialFailure ::CATEGORY_REMOVE_DATABASE_FILES)); static_assert(std::is_empty_v <typename decltype(tryResult901)::ok_type>); if ((__builtin_expect (!!(tryResult901.isErr()), 0))) { mozilla::dom::quota::HandleError ("ArtificialFailure( nsIQuotaArtificialFailure::CATEGORY_REMOVE_DATABASE_FILES)" , tryResult901.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5899, mozilla::dom::quota::Severity::Error); return tryResult901 .propagateErr(); }} | ||||
| 5899 | nsIQuotaArtificialFailure::CATEGORY_REMOVE_DATABASE_FILES)){auto tryResult901 = (ArtificialFailure( nsIQuotaArtificialFailure ::CATEGORY_REMOVE_DATABASE_FILES)); static_assert(std::is_empty_v <typename decltype(tryResult901)::ok_type>); if ((__builtin_expect (!!(tryResult901.isErr()), 0))) { mozilla::dom::quota::HandleError ("ArtificialFailure( nsIQuotaArtificialFailure::CATEGORY_REMOVE_DATABASE_FILES)" , tryResult901.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5899, mozilla::dom::quota::Severity::Error); return tryResult901 .propagateErr(); }}; | ||||
| 5900 | |||||
| 5901 | QM_TRY_UNWRAP(auto markerFile,auto tryResult902 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase )); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)" , tryResult902.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5902, mozilla::dom::quota::Severity::Error); return tryResult902 .propagateErr(); } auto markerFile = tryResult902.unwrap(); | ||||
| 5902 | CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase))auto tryResult902 = (CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase )); if ((__builtin_expect(!!(tryResult902.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateMarkerFile(aBaseDirectory, aDatabaseFilenameBase)" , tryResult902.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5902, mozilla::dom::quota::Severity::Error); return tryResult902 .propagateErr(); } auto markerFile = tryResult902.unwrap();; | ||||
| 5903 | |||||
| 5904 | // The database file counts towards quota. | ||||
| 5905 | QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult903 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult903)::ok_type>); if ((__builtin_expect( !!(tryResult903.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult903.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5907, mozilla::dom::quota::Severity::Error); return tryResult903 .propagateErr(); }} | ||||
| 5906 | aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager,{auto tryResult903 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult903)::ok_type>); if ((__builtin_expect( !!(tryResult903.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult903.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5907, mozilla::dom::quota::Severity::Error); return tryResult903 .propagateErr(); }} | ||||
| 5907 | aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult903 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult903)::ok_type>); if ((__builtin_expect( !!(tryResult903.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult903.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5907, mozilla::dom::quota::Severity::Error); return tryResult903 .propagateErr(); }}; | ||||
| 5908 | |||||
| 5909 | // .sqlite-journal files don't count towards quota. | ||||
| 5910 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult904 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect( !!(tryResult904.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult904.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5913, mozilla::dom::quota::Severity::Error); return tryResult904 .propagateErr(); }} | ||||
| 5911 | aDatabaseFilenameBase + kSQLiteJournalSuffix,{auto tryResult904 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect( !!(tryResult904.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult904.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5913, mozilla::dom::quota::Severity::Error); return tryResult904 .propagateErr(); }} | ||||
| 5912 | /* doesn't count */ nullptr, aPersistenceType,{auto tryResult904 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect( !!(tryResult904.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult904.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5913, mozilla::dom::quota::Severity::Error); return tryResult904 .propagateErr(); }} | ||||
| 5913 | aOriginMetadata, Idempotency::Yes))){auto tryResult904 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult904)::ok_type>); if ((__builtin_expect( !!(tryResult904.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteJournalSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult904.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5913, mozilla::dom::quota::Severity::Error); return tryResult904 .propagateErr(); }}; | ||||
| 5914 | |||||
| 5915 | // .sqlite-shm files don't count towards quota. | ||||
| 5916 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aBaseDirectory,{auto tryResult905 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult905)::ok_type>); if ((__builtin_expect( !!(tryResult905.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5919, mozilla::dom::quota::Severity::Error); return tryResult905 .propagateErr(); }} | ||||
| 5917 | aDatabaseFilenameBase + kSQLiteSHMSuffix,{auto tryResult905 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult905)::ok_type>); if ((__builtin_expect( !!(tryResult905.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5919, mozilla::dom::quota::Severity::Error); return tryResult905 .propagateErr(); }} | ||||
| 5918 | /* doesn't count */ nullptr, aPersistenceType,{auto tryResult905 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult905)::ok_type>); if ((__builtin_expect( !!(tryResult905.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5919, mozilla::dom::quota::Severity::Error); return tryResult905 .propagateErr(); }} | ||||
| 5919 | aOriginMetadata, Idempotency::Yes))){auto tryResult905 = (ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult905)::ok_type>); if ((__builtin_expect( !!(tryResult905.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile(aBaseDirectory, aDatabaseFilenameBase + kSQLiteSHMSuffix, nullptr, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult905.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5919, mozilla::dom::quota::Severity::Error); return tryResult905 .propagateErr(); }}; | ||||
| 5920 | |||||
| 5921 | // .sqlite-wal files do count towards quota. | ||||
| 5922 | QM_TRY(MOZ_TO_RESULT(DeleteFile({auto tryResult906 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult906)::ok_type>); if ((__builtin_expect( !!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5924, mozilla::dom::quota::Severity::Error); return tryResult906 .propagateErr(); }} | ||||
| 5923 | aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager,{auto tryResult906 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult906)::ok_type>); if ((__builtin_expect( !!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5924, mozilla::dom::quota::Severity::Error); return tryResult906 .propagateErr(); }} | ||||
| 5924 | aPersistenceType, aOriginMetadata, Idempotency::Yes))){auto tryResult906 = (ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata , Idempotency::Yes))); static_assert(std::is_empty_v<typename decltype(tryResult906)::ok_type>); if ((__builtin_expect( !!(tryResult906.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteFile( aBaseDirectory, aDatabaseFilenameBase + kSQLiteWALSuffix, aQuotaManager, aPersistenceType, aOriginMetadata, Idempotency::Yes))" , tryResult906.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5924, mozilla::dom::quota::Severity::Error); return tryResult906 .propagateErr(); }}; | ||||
| 5925 | |||||
| 5926 | // The files directory counts towards quota. | ||||
| 5927 | QM_TRY_INSPECT(auto tryResult907 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5930, mozilla::dom::quota::Severity::Error); return tryResult907 .propagateErr(); } const auto& fmDirectory = tryResult907 .inspect(); | ||||
| 5928 | const auto& fmDirectory,auto tryResult907 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5930, mozilla::dom::quota::Severity::Error); return tryResult907 .propagateErr(); } const auto& fmDirectory = tryResult907 .inspect(); | ||||
| 5929 | CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase +auto tryResult907 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5930, mozilla::dom::quota::Severity::Error); return tryResult907 .propagateErr(); } const auto& fmDirectory = tryResult907 .inspect(); | ||||
| 5930 | kFileManagerDirectoryNameSuffix))auto tryResult907 = (CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult907.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aBaseDirectory, aDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult907.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5930, mozilla::dom::quota::Severity::Error); return tryResult907 .propagateErr(); } const auto& fmDirectory = tryResult907 .inspect();; | ||||
| 5931 | |||||
| 5932 | QM_TRY_INSPECT(const bool& exists,auto tryResult908 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult908.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists )" , tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5933, mozilla::dom::quota::Severity::Error); return tryResult908 .propagateErr(); } const bool& exists = tryResult908.inspect (); | ||||
| 5933 | MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, Exists))auto tryResult908 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult908.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::Exists )" , tryResult908.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5933, mozilla::dom::quota::Severity::Error); return tryResult908 .propagateErr(); } const bool& exists = tryResult908.inspect ();; | ||||
| 5934 | |||||
| 5935 | if (exists) { | ||||
| 5936 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult909 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult909. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory )" , tryResult909.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5937, mozilla::dom::quota::Severity::Error); return tryResult909 .propagateErr(); } const bool& isDirectory = tryResult909 .inspect(); | ||||
| 5937 | MOZ_TO_RESULT_INVOKE_MEMBER(fmDirectory, IsDirectory))auto tryResult909 = (::mozilla::ToResultInvokeMember( (fmDirectory ), &::mozilla::detail::DerefedType<decltype(fmDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult909. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (fmDirectory), &::mozilla::detail::DerefedType<decltype(fmDirectory)>::IsDirectory )" , tryResult909.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5937, mozilla::dom::quota::Severity::Error); return tryResult909 .propagateErr(); } const bool& isDirectory = tryResult909 .inspect();; | ||||
| 5938 | |||||
| 5939 | QM_TRY(OkIf(isDirectory), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR){auto tryResult910 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult910)::ok_type>); if ((__builtin_expect(!!(tryResult910.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult910.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5939, 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); }}; | ||||
| 5940 | |||||
| 5941 | QM_TRY(DeleteFileManagerDirectory(*fmDirectory, aQuotaManager,{auto tryResult911 = (DeleteFileManagerDirectory(*fmDirectory , aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert (std::is_empty_v<typename decltype(tryResult911)::ok_type> ); if ((__builtin_expect(!!(tryResult911.isErr()), 0))) { mozilla ::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)" , tryResult911.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5942, mozilla::dom::quota::Severity::Error); return tryResult911 .propagateErr(); }} | ||||
| 5942 | aPersistenceType, aOriginMetadata)){auto tryResult911 = (DeleteFileManagerDirectory(*fmDirectory , aQuotaManager, aPersistenceType, aOriginMetadata)); static_assert (std::is_empty_v<typename decltype(tryResult911)::ok_type> ); if ((__builtin_expect(!!(tryResult911.isErr()), 0))) { mozilla ::dom::quota::HandleError("DeleteFileManagerDirectory(*fmDirectory, aQuotaManager, aPersistenceType, aOriginMetadata)" , tryResult911.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5942, mozilla::dom::quota::Severity::Error); return tryResult911 .propagateErr(); }}; | ||||
| 5943 | } | ||||
| 5944 | |||||
| 5945 | IndexedDatabaseManager* mgr = IndexedDatabaseManager::Get(); | ||||
| 5946 | 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" , 5946); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do { MOZ_CrashSequence(__null, 5946); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); } } while (false ); | ||||
| 5947 | |||||
| 5948 | if (mgr) { | ||||
| 5949 | mgr->InvalidateFileManager(aPersistenceType, aOriginMetadata.mOrigin, | ||||
| 5950 | aDatabaseName); | ||||
| 5951 | } | ||||
| 5952 | |||||
| 5953 | QM_TRY(MOZ_TO_RESULT(RemoveMarkerFile(markerFile))){auto tryResult912 = (ToResult(RemoveMarkerFile(markerFile))) ; static_assert(std::is_empty_v<typename decltype(tryResult912 )::ok_type>); if ((__builtin_expect(!!(tryResult912.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveMarkerFile(markerFile))" , tryResult912.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 5953, mozilla::dom::quota::Severity::Error); return tryResult912 .propagateErr(); }}; | ||||
| 5954 | |||||
| 5955 | return NS_OK; | ||||
| 5956 | } | ||||
| 5957 | |||||
| 5958 | /******************************************************************************* | ||||
| 5959 | * Globals | ||||
| 5960 | ******************************************************************************/ | ||||
| 5961 | |||||
| 5962 | // Counts the number of "live" Factory, FactoryOp and Database instances. | ||||
| 5963 | uint64_t gBusyCount = 0; | ||||
| 5964 | |||||
| 5965 | // We don't use LinkedList<CheckedUnsafePtr<FactoryOp>> because | ||||
| 5966 | // CheckedUnsafePtr is not suitable for use within LinkedList. While it's | ||||
| 5967 | // theoretically possible to adapt LinkedList to support it, doing so would | ||||
| 5968 | // introduce unnecessary overhead. Instead, we use a simpler and more | ||||
| 5969 | // efficient approach. Each FactoryOp instance asserts !isInList() in its | ||||
| 5970 | // destructor to catch dangling pointer issues. | ||||
| 5971 | using FactoryOpArray = LinkedList<FactoryOp>; | ||||
| 5972 | |||||
| 5973 | StaticAutoPtr<FactoryOpArray> gFactoryOps; | ||||
| 5974 | |||||
| 5975 | // Maps a database id to information about live database actors. | ||||
| 5976 | using DatabaseActorHashtable = | ||||
| 5977 | nsClassHashtable<nsCStringHashKey, DatabaseActorInfo>; | ||||
| 5978 | |||||
| 5979 | StaticAutoPtr<DatabaseActorHashtable> gLiveDatabaseHashtable; | ||||
| 5980 | |||||
| 5981 | StaticRefPtr<ConnectionPool> gConnectionPool; | ||||
| 5982 | |||||
| 5983 | using DatabaseLoggingInfoHashtable = | ||||
| 5984 | nsTHashMap<nsIDHashKey, DatabaseLoggingInfo*>; | ||||
| 5985 | |||||
| 5986 | StaticAutoPtr<DatabaseLoggingInfoHashtable> gLoggingInfoHashtable; | ||||
| 5987 | |||||
| 5988 | using TelemetryIdHashtable = nsTHashMap<nsUint32HashKey, uint32_t>; | ||||
| 5989 | |||||
| 5990 | StaticAutoPtr<TelemetryIdHashtable> gTelemetryIdHashtable; | ||||
| 5991 | |||||
| 5992 | // Protects all reads and writes to gTelemetryIdHashtable. | ||||
| 5993 | StaticAutoPtr<Mutex> gTelemetryIdMutex; | ||||
| 5994 | |||||
| 5995 | // For private browsing, maps the raw database names provided by content to a | ||||
| 5996 | // replacement UUID in order to avoid exposing the name of the database on | ||||
| 5997 | // disk or a directly derived value, such as the non-private-browsing | ||||
| 5998 | // representation. This mapping will be the same for all databases with the | ||||
| 5999 | // same name across all storage keys/origins for the lifetime of the IDB | ||||
| 6000 | // QuotaClient. In tests, the QuotaClient may be created and destroyed multiple | ||||
| 6001 | // times, but for normal browser use the QuotaClient will last until the | ||||
| 6002 | // browser shuts down. Bug 1831835 will improve this implementation to avoid | ||||
| 6003 | // using the same mapping across storage keys and to deal with the resulting | ||||
| 6004 | // lifecycle issues of the additional memory use. | ||||
| 6005 | using StorageDatabaseNameHashtable = nsTHashMap<nsString, nsString>; | ||||
| 6006 | |||||
| 6007 | StaticAutoPtr<StorageDatabaseNameHashtable> gStorageDatabaseNameHashtable; | ||||
| 6008 | |||||
| 6009 | // Protects all reads and writes to gStorageDatabaseNameHashtable. | ||||
| 6010 | StaticAutoPtr<Mutex> gStorageDatabaseNameMutex; | ||||
| 6011 | |||||
| 6012 | #ifdef DEBUG1 | ||||
| 6013 | |||||
| 6014 | StaticRefPtr<DEBUGThreadSlower> gDEBUGThreadSlower; | ||||
| 6015 | |||||
| 6016 | #endif // DEBUG | ||||
| 6017 | |||||
| 6018 | void IncreaseBusyCount() { | ||||
| 6019 | AssertIsOnBackgroundThread(); | ||||
| 6020 | |||||
| 6021 | // If this is the first instance then we need to do some initialization. | ||||
| 6022 | if (!gBusyCount) { | ||||
| 6023 | 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" , 6023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gFactoryOps" ")"); do { MOZ_CrashSequence(__null, 6023); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6024 | gFactoryOps = new FactoryOpArray(); | ||||
| 6025 | |||||
| 6026 | 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", 6026) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable" ")"); do { MOZ_CrashSequence(__null, 6026); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6027 | gLiveDatabaseHashtable = new DatabaseActorHashtable(); | ||||
| 6028 | |||||
| 6029 | 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", 6029) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLoggingInfoHashtable" ")"); do { MOZ_CrashSequence(__null, 6029); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6030 | gLoggingInfoHashtable = new DatabaseLoggingInfoHashtable(); | ||||
| 6031 | |||||
| 6032 | #ifdef DEBUG1 | ||||
| 6033 | if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) { | ||||
| 6034 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been " "modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6036) | ||||
| 6035 | "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" , 6036) | ||||
| 6036 | "modified!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, priority has been " "modified!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6036); | ||||
| 6037 | nsCOMPtr<nsISupportsPriority> thread = | ||||
| 6038 | do_QueryInterface(NS_GetCurrentThread()); | ||||
| 6039 | 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" , 6039); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { MOZ_CrashSequence(__null, 6039); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6040 | |||||
| 6041 | 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", 6041) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(kDEBUGThreadPriority))" ")"); do { MOZ_CrashSequence(__null, 6041); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6042 | } | ||||
| 6043 | |||||
| 6044 | if (kDEBUGThreadSleepMS) { | ||||
| 6045 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every " "event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6047) | ||||
| 6046 | "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" , 6047) | ||||
| 6047 | "event!")NS_DebugBreak(NS_DEBUG_WARNING, "PBackground thread debugging enabled, sleeping after every " "event!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6047); | ||||
| 6048 | nsCOMPtr<nsIThreadInternal> thread = | ||||
| 6049 | do_QueryInterface(NS_GetCurrentThread()); | ||||
| 6050 | 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" , 6050); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { MOZ_CrashSequence(__null, 6050); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6051 | |||||
| 6052 | gDEBUGThreadSlower = new DEBUGThreadSlower(); | ||||
| 6053 | |||||
| 6054 | 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", 6054) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->AddObserver(gDEBUGThreadSlower))" ")"); do { MOZ_CrashSequence(__null, 6054); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6055 | } | ||||
| 6056 | #endif // DEBUG | ||||
| 6057 | } | ||||
| 6058 | |||||
| 6059 | gBusyCount++; | ||||
| 6060 | } | ||||
| 6061 | |||||
| 6062 | void DecreaseBusyCount() { | ||||
| 6063 | AssertIsOnBackgroundThread(); | ||||
| 6064 | 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" , 6064); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gBusyCount" ")"); do { MOZ_CrashSequence(__null, 6064); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6065 | |||||
| 6066 | // Clean up if there are no more instances. | ||||
| 6067 | if (--gBusyCount == 0) { | ||||
| 6068 | 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", 6068) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable" ")"); do { MOZ_CrashSequence(__null, 6068); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6069 | gLoggingInfoHashtable = nullptr; | ||||
| 6070 | |||||
| 6071 | 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", 6071) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLiveDatabaseHashtable" ")"); do { MOZ_CrashSequence(__null, 6071); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6072 | 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" , 6072); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Count()" ")"); do { MOZ_CrashSequence(__null, 6072); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6073 | gLiveDatabaseHashtable = nullptr; | ||||
| 6074 | |||||
| 6075 | 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" , 6075); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps" ")"); do { MOZ_CrashSequence(__null, 6075); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6076 | 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", 6076) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gFactoryOps->isEmpty()" ")"); do { MOZ_CrashSequence(__null, 6076); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6077 | gFactoryOps = nullptr; | ||||
| 6078 | |||||
| 6079 | #ifdef DEBUG1 | ||||
| 6080 | if (kDEBUGThreadPriority != nsISupportsPriority::PRIORITY_NORMAL) { | ||||
| 6081 | nsCOMPtr<nsISupportsPriority> thread = | ||||
| 6082 | do_QueryInterface(NS_GetCurrentThread()); | ||||
| 6083 | 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" , 6083); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { MOZ_CrashSequence(__null, 6083); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6084 | |||||
| 6085 | 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", 6086) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 6086); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6086 | 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", 6086) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->SetPriority(nsISupportsPriority::PRIORITY_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 6086); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6087 | } | ||||
| 6088 | |||||
| 6089 | if (kDEBUGThreadSleepMS) { | ||||
| 6090 | 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", 6090) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gDEBUGThreadSlower" ")"); do { MOZ_CrashSequence(__null, 6090); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6091 | |||||
| 6092 | nsCOMPtr<nsIThreadInternal> thread = | ||||
| 6093 | do_QueryInterface(NS_GetCurrentThread()); | ||||
| 6094 | 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" , 6094); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thread" ")" ); do { MOZ_CrashSequence(__null, 6094); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6095 | |||||
| 6096 | 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", 6096) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(thread->RemoveObserver(gDEBUGThreadSlower))" ")"); do { MOZ_CrashSequence(__null, 6096); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6097 | |||||
| 6098 | gDEBUGThreadSlower = nullptr; | ||||
| 6099 | } | ||||
| 6100 | #endif // DEBUG | ||||
| 6101 | } | ||||
| 6102 | } | ||||
| 6103 | |||||
| 6104 | template <typename Condition> | ||||
| 6105 | void InvalidateLiveDatabasesMatching(const Condition& aCondition) { | ||||
| 6106 | AssertIsOnBackgroundThread(); | ||||
| 6107 | |||||
| 6108 | if (!gLiveDatabaseHashtable) { | ||||
| 6109 | return; | ||||
| 6110 | } | ||||
| 6111 | |||||
| 6112 | // Invalidating a Database will cause it to be removed from the | ||||
| 6113 | // gLiveDatabaseHashtable entries' mLiveDatabases, and, if it was the last | ||||
| 6114 | // element in mLiveDatabases, to remove the whole hashtable entry. Therefore, | ||||
| 6115 | // we need to make a temporary list of the databases to invalidate to avoid | ||||
| 6116 | // iterator invalidation. | ||||
| 6117 | |||||
| 6118 | nsTArray<SafeRefPtr<Database>> databases; | ||||
| 6119 | |||||
| 6120 | for (const auto& liveDatabasesEntry : gLiveDatabaseHashtable->Values()) { | ||||
| 6121 | for (Database* const database : liveDatabasesEntry->mLiveDatabases) { | ||||
| 6122 | if (aCondition(*database)) { | ||||
| 6123 | databases.AppendElement( | ||||
| 6124 | SafeRefPtr{database, AcquireStrongRefFromRawPtr{}}); | ||||
| 6125 | } | ||||
| 6126 | } | ||||
| 6127 | } | ||||
| 6128 | |||||
| 6129 | for (const auto& database : databases) { | ||||
| 6130 | database->Invalidate(); | ||||
| 6131 | } | ||||
| 6132 | } | ||||
| 6133 | |||||
| 6134 | uint32_t TelemetryIdForFile(nsIFile* aFile) { | ||||
| 6135 | // May be called on any thread! | ||||
| 6136 | |||||
| 6137 | 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" , 6137); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFile" ")") ; do { MOZ_CrashSequence(__null, 6137); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6138 | 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", 6138) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex" ")"); do { MOZ_CrashSequence(__null, 6138); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6139 | |||||
| 6140 | // The storage directory is structured like this: | ||||
| 6141 | // | ||||
| 6142 | // <profile>/storage/<persistence>/<origin>/idb/<filename>.sqlite | ||||
| 6143 | // | ||||
| 6144 | // For the purposes of this function we're only concerned with the | ||||
| 6145 | // <persistence>, <origin>, and <filename> pieces. | ||||
| 6146 | |||||
| 6147 | nsString filename; | ||||
| 6148 | 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", 6148) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetLeafName(filename))" ")"); do { MOZ_CrashSequence(__null, 6148); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6149 | |||||
| 6150 | // Make sure we were given a database file. | ||||
| 6151 | 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", 6151) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "StringEndsWith(filename, kSQLiteSuffix)" ")"); do { MOZ_CrashSequence(__null, 6151); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6152 | |||||
| 6153 | filename.Truncate(filename.Length() - kSQLiteSuffix.Length()); | ||||
| 6154 | |||||
| 6155 | // Get the "idb" directory. | ||||
| 6156 | nsCOMPtr<nsIFile> idbDirectory; | ||||
| 6157 | 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", 6157) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aFile->GetParent(getter_AddRefs(idbDirectory)))" ")"); do { MOZ_CrashSequence(__null, 6157); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6158 | |||||
| 6159 | DebugOnly<nsString> idbLeafName; | ||||
| 6160 | 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", 6160) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(idbDirectory->GetLeafName(idbLeafName))), 1)))" ")"); do { MOZ_CrashSequence(__null, 6160); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6161 | 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", 6161) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "static_cast<nsString&>(idbLeafName).EqualsLiteral(\"idb\")" ")"); do { MOZ_CrashSequence(__null, 6161); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6162 | |||||
| 6163 | // Get the <origin> directory. | ||||
| 6164 | nsCOMPtr<nsIFile> originDirectory; | ||||
| 6165 | 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", 6165) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(idbDirectory->GetParent(getter_AddRefs(originDirectory)))" ")"); do { MOZ_CrashSequence(__null, 6165); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6166 | |||||
| 6167 | nsString origin; | ||||
| 6168 | 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", 6168) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetLeafName(origin))" ")"); do { MOZ_CrashSequence(__null, 6168); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6169 | |||||
| 6170 | // Any databases in these directories are owned by the application and should | ||||
| 6171 | // not have their filenames masked. Hopefully they also appear in the | ||||
| 6172 | // Telemetry.cpp whitelist. | ||||
| 6173 | if (origin.EqualsLiteral("chrome")) { | ||||
| 6174 | return 0; | ||||
| 6175 | } | ||||
| 6176 | |||||
| 6177 | // Get the <persistence> directory. | ||||
| 6178 | nsCOMPtr<nsIFile> persistenceDirectory; | ||||
| 6179 | 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", 6180) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" ")"); do { MOZ_CrashSequence(__null, 6180); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6180 | 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", 6180) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(originDirectory->GetParent(getter_AddRefs(persistenceDirectory)))" ")"); do { MOZ_CrashSequence(__null, 6180); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6181 | |||||
| 6182 | nsString persistence; | ||||
| 6183 | 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", 6183) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(persistenceDirectory->GetLeafName(persistence))" ")"); do { MOZ_CrashSequence(__null, 6183); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6184 | |||||
| 6185 | constexpr auto separator = u"*"_ns; | ||||
| 6186 | |||||
| 6187 | uint32_t hashValue = | ||||
| 6188 | HashString(persistence + separator + origin + separator + filename); | ||||
| 6189 | |||||
| 6190 | MutexAutoLock lock(*gTelemetryIdMutex); | ||||
| 6191 | |||||
| 6192 | if (!gTelemetryIdHashtable) { | ||||
| 6193 | gTelemetryIdHashtable = new TelemetryIdHashtable(); | ||||
| 6194 | } | ||||
| 6195 | |||||
| 6196 | return gTelemetryIdHashtable->LookupOrInsertWith(hashValue, [] { | ||||
| 6197 | static uint32_t sNextId = 1; | ||||
| 6198 | |||||
| 6199 | // We're locked, no need for atomics. | ||||
| 6200 | return sNextId++; | ||||
| 6201 | }); | ||||
| 6202 | } | ||||
| 6203 | |||||
| 6204 | const CommonIndexOpenCursorParams& GetCommonIndexOpenCursorParams( | ||||
| 6205 | const OpenCursorParams& aParams) { | ||||
| 6206 | switch (aParams.type()) { | ||||
| 6207 | case OpenCursorParams::TIndexOpenCursorParams: | ||||
| 6208 | return aParams.get_IndexOpenCursorParams().commonIndexParams(); | ||||
| 6209 | case OpenCursorParams::TIndexOpenKeyCursorParams: | ||||
| 6210 | return aParams.get_IndexOpenKeyCursorParams().commonIndexParams(); | ||||
| 6211 | default: | ||||
| 6212 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6212) ; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 6212); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 6213 | } | ||||
| 6214 | } | ||||
| 6215 | |||||
| 6216 | const CommonOpenCursorParams& GetCommonOpenCursorParams( | ||||
| 6217 | const OpenCursorParams& aParams) { | ||||
| 6218 | switch (aParams.type()) { | ||||
| 6219 | case OpenCursorParams::TObjectStoreOpenCursorParams: | ||||
| 6220 | return aParams.get_ObjectStoreOpenCursorParams().commonParams(); | ||||
| 6221 | case OpenCursorParams::TObjectStoreOpenKeyCursorParams: | ||||
| 6222 | return aParams.get_ObjectStoreOpenKeyCursorParams().commonParams(); | ||||
| 6223 | case OpenCursorParams::TIndexOpenCursorParams: | ||||
| 6224 | case OpenCursorParams::TIndexOpenKeyCursorParams: | ||||
| 6225 | return GetCommonIndexOpenCursorParams(aParams).commonParams(); | ||||
| 6226 | default: | ||||
| 6227 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6227) ; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 6227); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 6228 | } | ||||
| 6229 | } | ||||
| 6230 | |||||
| 6231 | // TODO: Using nsCString as a return type here seems to lead to a dependency on | ||||
| 6232 | // some temporaries, which I did not expect. Is it a good idea that the default | ||||
| 6233 | // operator+ behaviour constructs such strings? It is certainly useful as an | ||||
| 6234 | // optimization, but this should be better done via an appropriately named | ||||
| 6235 | // function rather than an operator. | ||||
| 6236 | nsAutoCString MakeColumnPairSelectionList( | ||||
| 6237 | const nsLiteralCString& aPlainColumnName, | ||||
| 6238 | const nsLiteralCString& aLocaleAwareColumnName, | ||||
| 6239 | const nsLiteralCString& aSortColumnAlias, const bool aIsLocaleAware) { | ||||
| 6240 | return aPlainColumnName + | ||||
| 6241 | (aIsLocaleAware ? EmptyCString() : " as "_ns + aSortColumnAlias) + | ||||
| 6242 | ", "_ns + aLocaleAwareColumnName + | ||||
| 6243 | (aIsLocaleAware ? " as "_ns + aSortColumnAlias : EmptyCString()); | ||||
| 6244 | } | ||||
| 6245 | |||||
| 6246 | constexpr bool IsIncreasingOrder(const IDBCursorDirection aDirection) { | ||||
| 6247 | 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", 6250) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6250); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6248 | 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", 6250) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6250); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6249 | 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", 6250) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6250); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6250 | 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", 6250) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6250); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6251 | |||||
| 6252 | return aDirection == IDBCursorDirection::Next || | ||||
| 6253 | aDirection == IDBCursorDirection::Nextunique; | ||||
| 6254 | } | ||||
| 6255 | |||||
| 6256 | constexpr bool IsUnique(const IDBCursorDirection aDirection) { | ||||
| 6257 | 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", 6260) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6260); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6258 | 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", 6260) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6260); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6259 | 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", 6260) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6260); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 6260 | 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", 6260) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirection == IDBCursorDirection::Next || aDirection == IDBCursorDirection::Nextunique || aDirection == IDBCursorDirection::Prev || aDirection == IDBCursorDirection::Prevunique" ")"); do { MOZ_CrashSequence(__null, 6260); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6261 | |||||
| 6262 | return aDirection == IDBCursorDirection::Nextunique || | ||||
| 6263 | aDirection == IDBCursorDirection::Prevunique; | ||||
| 6264 | } | ||||
| 6265 | |||||
| 6266 | // TODO: In principle, this could be constexpr, if operator+(nsLiteralCString, | ||||
| 6267 | // nsLiteralCString) were constexpr and returned a literal type. | ||||
| 6268 | nsAutoCString MakeDirectionClause( | ||||
| 6269 | const IDBCursorDirection aDirection, | ||||
| 6270 | const nsLiteralCString& column = kColumnNameKey) { | ||||
| 6271 | return " ORDER BY "_ns + column + | ||||
| 6272 | (IsIncreasingOrder(aDirection) ? " ASC"_ns : " DESC"_ns); | ||||
| 6273 | } | ||||
| 6274 | |||||
| 6275 | enum struct ComparisonOperator { | ||||
| 6276 | LessThan, | ||||
| 6277 | LessOrEquals, | ||||
| 6278 | Equals, | ||||
| 6279 | GreaterThan, | ||||
| 6280 | GreaterOrEquals, | ||||
| 6281 | }; | ||||
| 6282 | |||||
| 6283 | constexpr nsLiteralCString GetComparisonOperatorString( | ||||
| 6284 | const ComparisonOperator aComparisonOperator) { | ||||
| 6285 | switch (aComparisonOperator) { | ||||
| 6286 | case ComparisonOperator::LessThan: | ||||
| 6287 | return "<"_ns; | ||||
| 6288 | case ComparisonOperator::LessOrEquals: | ||||
| 6289 | return "<="_ns; | ||||
| 6290 | case ComparisonOperator::Equals: | ||||
| 6291 | return "=="_ns; | ||||
| 6292 | case ComparisonOperator::GreaterThan: | ||||
| 6293 | return ">"_ns; | ||||
| 6294 | case ComparisonOperator::GreaterOrEquals: | ||||
| 6295 | return ">="_ns; | ||||
| 6296 | } | ||||
| 6297 | |||||
| 6298 | // TODO: This is just to silence the "control reaches end of non-void | ||||
| 6299 | // function" warning. Cannot use MOZ_CRASH in a constexpr function, | ||||
| 6300 | // unfortunately. | ||||
| 6301 | return ""_ns; | ||||
| 6302 | } | ||||
| 6303 | |||||
| 6304 | nsAutoCString GetKeyClause(const nsACString& aColumnName, | ||||
| 6305 | const ComparisonOperator aComparisonOperator, | ||||
| 6306 | const nsLiteralCString& aStmtParamName) { | ||||
| 6307 | return aColumnName + " "_ns + | ||||
| 6308 | GetComparisonOperatorString(aComparisonOperator) + " :"_ns + | ||||
| 6309 | aStmtParamName; | ||||
| 6310 | } | ||||
| 6311 | |||||
| 6312 | nsAutoCString GetSortKeyClause(const ComparisonOperator aComparisonOperator, | ||||
| 6313 | const nsLiteralCString& aStmtParamName) { | ||||
| 6314 | return GetKeyClause(kColumnNameAliasSortKey, aComparisonOperator, | ||||
| 6315 | aStmtParamName); | ||||
| 6316 | } | ||||
| 6317 | |||||
| 6318 | nsAutoCString GetRowValueClause(const nsACString& aColumn1, | ||||
| 6319 | const nsACString& aColumn2, | ||||
| 6320 | const ComparisonOperator aComparisonOperator, | ||||
| 6321 | const nsLiteralCString& aStmtParamName1, | ||||
| 6322 | const nsLiteralCString& aStmtParamName2) { | ||||
| 6323 | return "("_ns + aColumn1 + ", "_ns + aColumn2 + ") "_ns + | ||||
| 6324 | GetComparisonOperatorString(aComparisonOperator) + " (:"_ns + | ||||
| 6325 | aStmtParamName1 + ", :"_ns + aStmtParamName2 + ")"_ns; | ||||
| 6326 | } | ||||
| 6327 | |||||
| 6328 | template <IDBCursorType CursorType> | ||||
| 6329 | struct PopulateResponseHelper; | ||||
| 6330 | |||||
| 6331 | struct CommonPopulateResponseHelper { | ||||
| 6332 | explicit CommonPopulateResponseHelper( | ||||
| 6333 | const TransactionDatabaseOperationBase& aOp) | ||||
| 6334 | : mOp{aOp} {} | ||||
| 6335 | |||||
| 6336 | nsresult GetKeys(mozIStorageStatement* const aStmt, | ||||
| 6337 | Key* const aOptOutSortKey) { | ||||
| 6338 | QM_TRY(MOZ_TO_RESULT(GetCommonKeys(aStmt))){auto tryResult913 = (ToResult(GetCommonKeys(aStmt))); static_assert (std::is_empty_v<typename decltype(tryResult913)::ok_type> ); if ((__builtin_expect(!!(tryResult913.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(GetCommonKeys(aStmt))", tryResult913 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6338, mozilla::dom::quota::Severity::Error); return tryResult913 .propagateErr(); }}; | ||||
| 6339 | |||||
| 6340 | if (aOptOutSortKey) { | ||||
| 6341 | *aOptOutSortKey = mPosition; | ||||
| 6342 | } | ||||
| 6343 | |||||
| 6344 | return NS_OK; | ||||
| 6345 | } | ||||
| 6346 | |||||
| 6347 | nsresult GetCommonKeys(mozIStorageStatement* const aStmt) { | ||||
| 6348 | 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", 6348) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mPosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6348); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6349 | |||||
| 6350 | QM_TRY(MOZ_TO_RESULT(mPosition.SetFromStatement(aStmt, 0))){auto tryResult914 = (ToResult(mPosition.SetFromStatement(aStmt , 0))); static_assert(std::is_empty_v<typename decltype(tryResult914 )::ok_type>); if ((__builtin_expect(!!(tryResult914.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(mPosition.SetFromStatement(aStmt, 0))" , tryResult914.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6350, mozilla::dom::quota::Severity::Error); return tryResult914 .propagateErr(); }}; | ||||
| 6351 | |||||
| 6352 | 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()) | ||||
| 6353 | "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()) | ||||
| 6354 | 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()) | ||||
| 6355 | 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()) | ||||
| 6356 | 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()); | ||||
| 6357 | |||||
| 6358 | return NS_OK; | ||||
| 6359 | } | ||||
| 6360 | |||||
| 6361 | template <typename Response> | ||||
| 6362 | void FillKeys(Response& aResponse) { | ||||
| 6363 | 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", 6363) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6363); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6364 | aResponse.key() = std::move(mPosition); | ||||
| 6365 | } | ||||
| 6366 | |||||
| 6367 | template <typename Response> | ||||
| 6368 | static size_t GetKeySize(const Response& aResponse) { | ||||
| 6369 | return aResponse.key().GetBuffer().Length(); | ||||
| 6370 | } | ||||
| 6371 | |||||
| 6372 | protected: | ||||
| 6373 | const Key& GetPosition() const { return mPosition; } | ||||
| 6374 | |||||
| 6375 | private: | ||||
| 6376 | const TransactionDatabaseOperationBase& mOp; | ||||
| 6377 | Key mPosition; | ||||
| 6378 | }; | ||||
| 6379 | |||||
| 6380 | struct IndexPopulateResponseHelper : CommonPopulateResponseHelper { | ||||
| 6381 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | ||||
| 6382 | |||||
| 6383 | nsresult GetKeys(mozIStorageStatement* const aStmt, | ||||
| 6384 | Key* const aOptOutSortKey) { | ||||
| 6385 | 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" , 6385); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLocaleAwarePosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6385); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6386 | 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" , 6386); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStorePosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6386); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6387 | |||||
| 6388 | QM_TRY(MOZ_TO_RESULT(CommonPopulateResponseHelper::GetCommonKeys(aStmt))){auto tryResult915 = (ToResult(CommonPopulateResponseHelper:: GetCommonKeys(aStmt))); static_assert(std::is_empty_v<typename decltype(tryResult915)::ok_type>); if ((__builtin_expect( !!(tryResult915.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(CommonPopulateResponseHelper::GetCommonKeys(aStmt))" , tryResult915.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6388, mozilla::dom::quota::Severity::Error); return tryResult915 .propagateErr(); }}; | ||||
| 6389 | |||||
| 6390 | QM_TRY(MOZ_TO_RESULT(mLocaleAwarePosition.SetFromStatement(aStmt, 1))){auto tryResult916 = (ToResult(mLocaleAwarePosition.SetFromStatement (aStmt, 1))); static_assert(std::is_empty_v<typename decltype (tryResult916)::ok_type>); if ((__builtin_expect(!!(tryResult916 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mLocaleAwarePosition.SetFromStatement(aStmt, 1))" , tryResult916.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6390, mozilla::dom::quota::Severity::Error); return tryResult916 .propagateErr(); }}; | ||||
| 6391 | |||||
| 6392 | QM_TRY(MOZ_TO_RESULT(mObjectStorePosition.SetFromStatement(aStmt, 2))){auto tryResult917 = (ToResult(mObjectStorePosition.SetFromStatement (aStmt, 2))); static_assert(std::is_empty_v<typename decltype (tryResult917)::ok_type>); if ((__builtin_expect(!!(tryResult917 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mObjectStorePosition.SetFromStatement(aStmt, 2))" , tryResult917.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6392, mozilla::dom::quota::Severity::Error); return tryResult917 .propagateErr(); }}; | ||||
| 6393 | |||||
| 6394 | if (aOptOutSortKey) { | ||||
| 6395 | *aOptOutSortKey = | ||||
| 6396 | mLocaleAwarePosition.IsUnset() ? GetPosition() : mLocaleAwarePosition; | ||||
| 6397 | } | ||||
| 6398 | |||||
| 6399 | return NS_OK; | ||||
| 6400 | } | ||||
| 6401 | |||||
| 6402 | template <typename Response> | ||||
| 6403 | void FillKeys(Response& aResponse) { | ||||
| 6404 | 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" , 6404); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mLocaleAwarePosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6404); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6405 | 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" , 6405); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStorePosition.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 6405); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6406 | |||||
| 6407 | CommonPopulateResponseHelper::FillKeys(aResponse); | ||||
| 6408 | aResponse.sortKey() = std::move(mLocaleAwarePosition); | ||||
| 6409 | aResponse.objectKey() = std::move(mObjectStorePosition); | ||||
| 6410 | } | ||||
| 6411 | |||||
| 6412 | template <typename Response> | ||||
| 6413 | static size_t GetKeySize(Response& aResponse) { | ||||
| 6414 | return CommonPopulateResponseHelper::GetKeySize(aResponse) + | ||||
| 6415 | aResponse.sortKey().GetBuffer().Length() + | ||||
| 6416 | aResponse.objectKey().GetBuffer().Length(); | ||||
| 6417 | } | ||||
| 6418 | |||||
| 6419 | private: | ||||
| 6420 | Key mLocaleAwarePosition, mObjectStorePosition; | ||||
| 6421 | }; | ||||
| 6422 | |||||
| 6423 | struct KeyPopulateResponseHelper { | ||||
| 6424 | static constexpr nsresult MaybeGetCloneInfo( | ||||
| 6425 | mozIStorageStatement* const /*aStmt*/, const CursorBase& /*aCursor*/) { | ||||
| 6426 | return NS_OK; | ||||
| 6427 | } | ||||
| 6428 | |||||
| 6429 | template <typename Response> | ||||
| 6430 | static constexpr size_t MaybeGetCloneInfoSize(const Response& /*aResponse*/) { | ||||
| 6431 | return 0; | ||||
| 6432 | } | ||||
| 6433 | }; | ||||
| 6434 | |||||
| 6435 | template <bool StatementHasIndexKeyBindings> | ||||
| 6436 | struct ValuePopulateResponseHelper { | ||||
| 6437 | nsresult MaybeGetCloneInfo(mozIStorageStatement* const aStmt, | ||||
| 6438 | const ValueCursorBase& aCursor) { | ||||
| 6439 | constexpr auto offset = StatementHasIndexKeyBindings ? 2 : 0; | ||||
| 6440 | |||||
| 6441 | QM_TRY_UNWRAP(auto cloneInfo,auto tryResult918 = (GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom ::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6443, mozilla::dom::quota::Severity::Error); return tryResult918 .propagateErr(); } auto cloneInfo = tryResult918.unwrap(); | ||||
| 6442 | GetStructuredCloneReadInfoFromStatement(auto tryResult918 = (GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom ::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6443, mozilla::dom::quota::Severity::Error); return tryResult918 .propagateErr(); } auto cloneInfo = tryResult918.unwrap(); | ||||
| 6443 | aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager))auto tryResult918 = (GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)); if ( (__builtin_expect(!!(tryResult918.isErr()), 0))) { mozilla::dom ::quota::HandleError("GetStructuredCloneReadInfoFromStatement( aStmt, 2 + offset, 1 + offset, *aCursor.mFileManager)" , tryResult918.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6443, mozilla::dom::quota::Severity::Error); return tryResult918 .propagateErr(); } auto cloneInfo = tryResult918.unwrap();; | ||||
| 6444 | |||||
| 6445 | mCloneInfo.init(std::move(cloneInfo)); | ||||
| 6446 | |||||
| 6447 | if (mCloneInfo->HasPreprocessInfo()) { | ||||
| 6448 | 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" , 6448, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6448) ; } while (0); | ||||
| 6449 | return NS_ERROR_NOT_IMPLEMENTED; | ||||
| 6450 | } | ||||
| 6451 | |||||
| 6452 | return NS_OK; | ||||
| 6453 | } | ||||
| 6454 | |||||
| 6455 | template <typename Response> | ||||
| 6456 | void MaybeFillCloneInfo(Response& aResponse, FilesArray* const aFiles) { | ||||
| 6457 | auto cloneInfo = mCloneInfo.release(); | ||||
| 6458 | aResponse.cloneInfo().data().data = cloneInfo.ReleaseData(); | ||||
| 6459 | aFiles->AppendElement(cloneInfo.ReleaseFiles()); | ||||
| 6460 | } | ||||
| 6461 | |||||
| 6462 | template <typename Response> | ||||
| 6463 | static size_t MaybeGetCloneInfoSize(const Response& aResponse) { | ||||
| 6464 | return aResponse.cloneInfo().data().data.Size(); | ||||
| 6465 | } | ||||
| 6466 | |||||
| 6467 | private: | ||||
| 6468 | LazyInitializedOnceEarlyDestructible<const StructuredCloneReadInfoParent> | ||||
| 6469 | mCloneInfo; | ||||
| 6470 | }; | ||||
| 6471 | |||||
| 6472 | template <> | ||||
| 6473 | struct PopulateResponseHelper<IDBCursorType::ObjectStore> | ||||
| 6474 | : ValuePopulateResponseHelper<false>, CommonPopulateResponseHelper { | ||||
| 6475 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | ||||
| 6476 | |||||
| 6477 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | ||||
| 6478 | return aResponse->get_ArrayOfObjectStoreCursorResponse(); | ||||
| 6479 | } | ||||
| 6480 | }; | ||||
| 6481 | |||||
| 6482 | template <> | ||||
| 6483 | struct PopulateResponseHelper<IDBCursorType::ObjectStoreKey> | ||||
| 6484 | : KeyPopulateResponseHelper, CommonPopulateResponseHelper { | ||||
| 6485 | using CommonPopulateResponseHelper::CommonPopulateResponseHelper; | ||||
| 6486 | |||||
| 6487 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | ||||
| 6488 | return aResponse->get_ArrayOfObjectStoreKeyCursorResponse(); | ||||
| 6489 | } | ||||
| 6490 | }; | ||||
| 6491 | |||||
| 6492 | template <> | ||||
| 6493 | struct PopulateResponseHelper<IDBCursorType::Index> | ||||
| 6494 | : ValuePopulateResponseHelper<true>, IndexPopulateResponseHelper { | ||||
| 6495 | using IndexPopulateResponseHelper::IndexPopulateResponseHelper; | ||||
| 6496 | |||||
| 6497 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | ||||
| 6498 | return aResponse->get_ArrayOfIndexCursorResponse(); | ||||
| 6499 | } | ||||
| 6500 | }; | ||||
| 6501 | |||||
| 6502 | template <> | ||||
| 6503 | struct PopulateResponseHelper<IDBCursorType::IndexKey> | ||||
| 6504 | : KeyPopulateResponseHelper, IndexPopulateResponseHelper { | ||||
| 6505 | using IndexPopulateResponseHelper::IndexPopulateResponseHelper; | ||||
| 6506 | |||||
| 6507 | static auto& GetTypedResponse(CursorResponse* const aResponse) { | ||||
| 6508 | return aResponse->get_ArrayOfIndexKeyCursorResponse(); | ||||
| 6509 | } | ||||
| 6510 | }; | ||||
| 6511 | |||||
| 6512 | nsresult DispatchAndReturnFileReferences( | ||||
| 6513 | PersistenceType aPersistenceType, const nsACString& aOrigin, | ||||
| 6514 | const nsAString& aDatabaseName, const int64_t aFileId, | ||||
| 6515 | int32_t* const aMemRefCnt, int32_t* const aDBRefCnt, bool* const aResult) { | ||||
| 6516 | AssertIsOnBackgroundThread(); | ||||
| 6517 | 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" , 6517); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMemRefCnt" ")"); do { MOZ_CrashSequence(__null, 6517); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6518 | 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" , 6518); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")" ); do { MOZ_CrashSequence(__null, 6518); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6519 | 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" , 6519); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")" ); do { MOZ_CrashSequence(__null, 6519); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6520 | |||||
| 6521 | *aResult = false; | ||||
| 6522 | *aMemRefCnt = -1; | ||||
| 6523 | *aDBRefCnt = -1; | ||||
| 6524 | |||||
| 6525 | mozilla::Monitor monitor MOZ_ANNOTATED(__func__); | ||||
| 6526 | bool waiting = true; | ||||
| 6527 | |||||
| 6528 | auto lambda = [&] { | ||||
| 6529 | AssertIsOnIOThread(); | ||||
| 6530 | |||||
| 6531 | { | ||||
| 6532 | IndexedDatabaseManager* const mgr = IndexedDatabaseManager::Get(); | ||||
| 6533 | 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" , 6533); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mgr" ")"); do { MOZ_CrashSequence(__null, 6533); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 6534 | |||||
| 6535 | const SafeRefPtr<DatabaseFileManager> fileManager = | ||||
| 6536 | mgr->GetFileManager(aPersistenceType, aOrigin, aDatabaseName); | ||||
| 6537 | |||||
| 6538 | if (fileManager) { | ||||
| 6539 | const SafeRefPtr<DatabaseFileInfo> fileInfo = | ||||
| 6540 | fileManager->GetFileInfo(aFileId); | ||||
| 6541 | |||||
| 6542 | if (fileInfo) { | ||||
| 6543 | fileInfo->GetReferences(aMemRefCnt, aDBRefCnt); | ||||
| 6544 | |||||
| 6545 | if (*aMemRefCnt != -1) { | ||||
| 6546 | // We added an extra temp ref, so account for that accordingly. | ||||
| 6547 | (*aMemRefCnt)--; | ||||
| 6548 | } | ||||
| 6549 | |||||
| 6550 | *aResult = true; | ||||
| 6551 | } | ||||
| 6552 | } | ||||
| 6553 | } | ||||
| 6554 | |||||
| 6555 | mozilla::MonitorAutoLock lock(monitor); | ||||
| 6556 | 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" , 6556); AnnotateMozCrashReason("MOZ_ASSERT" "(" "waiting" ")" ); do { MOZ_CrashSequence(__null, 6556); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6557 | |||||
| 6558 | waiting = false; | ||||
| 6559 | lock.Notify(); | ||||
| 6560 | }; | ||||
| 6561 | |||||
| 6562 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 6563 | 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" , 6563); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 6563); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6564 | |||||
| 6565 | // XXX can't we simply use NS_DispatchAndSpinEventLoopUntilComplete instead of | ||||
| 6566 | // using a monitor? | ||||
| 6567 | QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch({auto tryResult919 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult919)::ok_type> ); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6569, mozilla::dom::quota::Severity::Error); return tryResult919 .propagateErr(); }} | ||||
| 6568 | NS_NewRunnableFunction("GetFileReferences", std::move(lambda)),{auto tryResult919 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult919)::ok_type> ); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6569, mozilla::dom::quota::Severity::Error); return tryResult919 .propagateErr(); }} | ||||
| 6569 | NS_DISPATCH_NORMAL))){auto tryResult919 = (ToResult(quotaManager->IOThread()-> Dispatch( NS_NewRunnableFunction("GetFileReferences", std::move (lambda)), nsIEventTarget::DISPATCH_NORMAL))); static_assert( std::is_empty_v<typename decltype(tryResult919)::ok_type> ); if ((__builtin_expect(!!(tryResult919.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(quotaManager->IOThread()->Dispatch( NS_NewRunnableFunction(\"GetFileReferences\", std::move(lambda)), nsIEventTarget::DISPATCH_NORMAL))" , tryResult919.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6569, mozilla::dom::quota::Severity::Error); return tryResult919 .propagateErr(); }}; | ||||
| 6570 | |||||
| 6571 | mozilla::MonitorAutoLock autolock(monitor); | ||||
| 6572 | while (waiting) { | ||||
| 6573 | autolock.Wait(); | ||||
| 6574 | } | ||||
| 6575 | |||||
| 6576 | return NS_OK; | ||||
| 6577 | } | ||||
| 6578 | |||||
| 6579 | class DeserializeIndexValueHelper final : public Runnable { | ||||
| 6580 | public: | ||||
| 6581 | DeserializeIndexValueHelper(int64_t aIndexID, const KeyPath& aKeyPath, | ||||
| 6582 | bool aMultiEntry, const nsACString& aLocale, | ||||
| 6583 | StructuredCloneReadInfoParent& aCloneReadInfo, | ||||
| 6584 | nsTArray<IndexUpdateInfo>& aUpdateInfoArray) | ||||
| 6585 | : Runnable("DeserializeIndexValueHelper"), | ||||
| 6586 | mMonitor("DeserializeIndexValueHelper::mMonitor"), | ||||
| 6587 | mIndexID(aIndexID), | ||||
| 6588 | mKeyPath(aKeyPath), | ||||
| 6589 | mMultiEntry(aMultiEntry), | ||||
| 6590 | mLocale(aLocale), | ||||
| 6591 | mCloneReadInfo(aCloneReadInfo), | ||||
| 6592 | mUpdateInfoArray(aUpdateInfoArray), | ||||
| 6593 | mStatus(NS_ERROR_FAILURE), | ||||
| 6594 | mDone{false} {} | ||||
| 6595 | |||||
| 6596 | nsresult DispatchAndWait() { | ||||
| 6597 | // FIXME(Bug 1637530) Re-enable optimization using a non-system-principaled | ||||
| 6598 | // JS context | ||||
| 6599 | #if 0 | ||||
| 6600 | // We don't need to go to the main-thread and use the sandbox. Let's create | ||||
| 6601 | // the updateInfo data here. | ||||
| 6602 | if (!mCloneReadInfo.Data().Size()) { | ||||
| 6603 | AutoJSAPI jsapi; | ||||
| 6604 | jsapi.Init(); | ||||
| 6605 | |||||
| 6606 | JS::Rooted<JS::Value> value(jsapi.cx()); | ||||
| 6607 | value.setUndefined(); | ||||
| 6608 | |||||
| 6609 | ErrorResult rv; | ||||
| 6610 | IDBObjectStore::AppendIndexUpdateInfo( | ||||
| 6611 | mIndexID, mKeyPath, mMultiEntry, &mUpdateInfoArray, | ||||
| 6612 | /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &rv); | ||||
| 6613 | return rv.Failed() ? rv.StealNSResult() : NS_OK; | ||||
| 6614 | } | ||||
| 6615 | #endif | ||||
| 6616 | |||||
| 6617 | // The operation will continue on the main-thread. | ||||
| 6618 | |||||
| 6619 | 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", 6619) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(mCloneReadInfo.Data().Size() % sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 6619); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6620 | |||||
| 6621 | MonitorAutoLock lock(mMonitor); | ||||
| 6622 | |||||
| 6623 | RefPtr<Runnable> self = this; | ||||
| 6624 | QM_TRY(MOZ_TO_RESULT(SchedulerGroup::Dispatch(self.forget()))){auto tryResult920 = (ToResult(SchedulerGroup::Dispatch(self. forget()))); static_assert(std::is_empty_v<typename decltype (tryResult920)::ok_type>); if ((__builtin_expect(!!(tryResult920 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SchedulerGroup::Dispatch(self.forget()))" , tryResult920.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6624, mozilla::dom::quota::Severity::Error); return tryResult920 .propagateErr(); }}; | ||||
| 6625 | |||||
| 6626 | while (!mDone) { | ||||
| 6627 | lock.Wait(); | ||||
| 6628 | } | ||||
| 6629 | |||||
| 6630 | return mStatus; | ||||
| 6631 | } | ||||
| 6632 | |||||
| 6633 | NS_IMETHODvirtual nsresult | ||||
| 6634 | Run() override { | ||||
| 6635 | 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", 6635) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 6635); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6636 | |||||
| 6637 | AutoJSAPI jsapi; | ||||
| 6638 | jsapi.Init(); | ||||
| 6639 | JSContext* const cx = jsapi.cx(); | ||||
| 6640 | |||||
| 6641 | JS::Rooted<JSObject*> global(cx, GetSandbox(cx)); | ||||
| 6642 | |||||
| 6643 | QM_TRY(OkIf(global), NS_OK,{auto tryResult921 = (OkIf(global)); static_assert(std::is_empty_v <typename decltype(tryResult921)::ok_type>); if ((__builtin_expect (!!(tryResult921.isErr()), 0))) { auto tryTempError = tryResult921 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6644, 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); }} | ||||
| 6644 | [this](const NotOk) { OperationCompleted(NS_ERROR_FAILURE); }){auto tryResult921 = (OkIf(global)); static_assert(std::is_empty_v <typename decltype(tryResult921)::ok_type>); if ((__builtin_expect (!!(tryResult921.isErr()), 0))) { auto tryTempError = tryResult921 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(global)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6644, 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); }}; | ||||
| 6645 | |||||
| 6646 | const JSAutoRealm ar(cx, global); | ||||
| 6647 | |||||
| 6648 | JS::Rooted<JS::Value> value(cx); | ||||
| 6649 | QM_TRY(MOZ_TO_RESULT(DeserializeIndexValue(cx, &value)), NS_OK,{auto tryResult922 = (ToResult(DeserializeIndexValue(cx, & value))); static_assert(std::is_empty_v<typename decltype( tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922 .isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6650, 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); }} | ||||
| 6650 | [this](const nsresult rv) { OperationCompleted(rv); }){auto tryResult922 = (ToResult(DeserializeIndexValue(cx, & value))); static_assert(std::is_empty_v<typename decltype( tryResult922)::ok_type>); if ((__builtin_expect(!!(tryResult922 .isErr()), 0))) { auto tryTempError = tryResult922.unwrapErr( ); mozilla::dom::quota::HandleError("ToResult(DeserializeIndexValue(cx, &value))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6650, 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); }}; | ||||
| 6651 | |||||
| 6652 | ErrorResult errorResult; | ||||
| 6653 | IDBObjectStore::AppendIndexUpdateInfo( | ||||
| 6654 | mIndexID, mKeyPath, mMultiEntry, mLocale, cx, value, &mUpdateInfoArray, | ||||
| 6655 | /* aAutoIncrementedObjectStoreKeyPath */ VoidString(), &errorResult); | ||||
| 6656 | QM_TRY(OkIf(!errorResult.Failed()), NS_OK,{auto tryResult923 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult923)::ok_type> ); if ((__builtin_expect(!!(tryResult923.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6659, 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); } } | ||||
| 6657 | ([this, &errorResult](const NotOk) {{auto tryResult923 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult923)::ok_type> ); if ((__builtin_expect(!!(tryResult923.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6659, 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); } } | ||||
| 6658 | OperationCompleted(errorResult.StealNSResult());{auto tryResult923 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult923)::ok_type> ); if ((__builtin_expect(!!(tryResult923.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6659, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } } | ||||
| 6659 | })){auto tryResult923 = (OkIf(!errorResult.Failed())); static_assert (std::is_empty_v<typename decltype(tryResult923)::ok_type> ); if ((__builtin_expect(!!(tryResult923.isErr()), 0))) { auto tryTempError = tryResult923.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(!errorResult.Failed())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6659, mozilla::dom::quota::Severity::Error); ([this, &errorResult ](const NotOk) { OperationCompleted(errorResult.StealNSResult ()); })(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "OkIf(!errorResult.Failed())", tryTempError, NS_OK); } }; | ||||
| 6660 | |||||
| 6661 | OperationCompleted(NS_OK); | ||||
| 6662 | return NS_OK; | ||||
| 6663 | } | ||||
| 6664 | |||||
| 6665 | private: | ||||
| 6666 | nsresult DeserializeIndexValue(JSContext* aCx, | ||||
| 6667 | JS::MutableHandle<JS::Value> aValue) { | ||||
| 6668 | static const JSStructuredCloneCallbacks callbacks = { | ||||
| 6669 | StructuredCloneReadCallback<StructuredCloneReadInfoParent>, | ||||
| 6670 | nullptr, | ||||
| 6671 | nullptr, | ||||
| 6672 | nullptr, | ||||
| 6673 | nullptr, | ||||
| 6674 | nullptr, | ||||
| 6675 | nullptr, | ||||
| 6676 | nullptr}; | ||||
| 6677 | |||||
| 6678 | if (!JS_ReadStructuredClone( | ||||
| 6679 | aCx, mCloneReadInfo.Data(), JS_STRUCTURED_CLONE_VERSION8, | ||||
| 6680 | JS::StructuredCloneScope::DifferentProcessForIndexedDB, aValue, | ||||
| 6681 | JS::CloneDataPolicy(), &callbacks, &mCloneReadInfo)) { | ||||
| 6682 | return NS_ERROR_DOM_DATA_CLONE_ERR; | ||||
| 6683 | } | ||||
| 6684 | |||||
| 6685 | return NS_OK; | ||||
| 6686 | } | ||||
| 6687 | |||||
| 6688 | void OperationCompleted(nsresult aStatus) { | ||||
| 6689 | mStatus = aStatus; | ||||
| 6690 | |||||
| 6691 | MonitorAutoLock lock(mMonitor); | ||||
| 6692 | mDone = true; | ||||
| 6693 | lock.Notify(); | ||||
| 6694 | } | ||||
| 6695 | |||||
| 6696 | Monitor mMonitor; | ||||
| 6697 | |||||
| 6698 | const int64_t mIndexID; | ||||
| 6699 | const KeyPath& mKeyPath; | ||||
| 6700 | const bool mMultiEntry; | ||||
| 6701 | const nsCString mLocale; | ||||
| 6702 | StructuredCloneReadInfoParent& mCloneReadInfo; | ||||
| 6703 | nsTArray<IndexUpdateInfo>& mUpdateInfoArray; | ||||
| 6704 | nsresult mStatus; | ||||
| 6705 | bool mDone MOZ_GUARDED_BY(mMonitor)__attribute__((guarded_by(mMonitor))); | ||||
| 6706 | }; | ||||
| 6707 | |||||
| 6708 | auto DeserializeIndexValueToUpdateInfos( | ||||
| 6709 | int64_t aIndexID, const KeyPath& aKeyPath, bool aMultiEntry, | ||||
| 6710 | const nsACString& aLocale, StructuredCloneReadInfoParent& aCloneReadInfo) { | ||||
| 6711 | 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", 6711) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 6711); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6712 | |||||
| 6713 | using ArrayType = AutoTArray<IndexUpdateInfo, 32>; | ||||
| 6714 | using ResultType = Result<ArrayType, nsresult>; | ||||
| 6715 | |||||
| 6716 | ArrayType updateInfoArray; | ||||
| 6717 | const auto helper = MakeRefPtr<DeserializeIndexValueHelper>( | ||||
| 6718 | aIndexID, aKeyPath, aMultiEntry, aLocale, aCloneReadInfo, | ||||
| 6719 | updateInfoArray); | ||||
| 6720 | const nsresult rv = helper->DispatchAndWait(); | ||||
| 6721 | return NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0))) ? Err(rv) : ResultType{std::move(updateInfoArray)}; | ||||
| 6722 | } | ||||
| 6723 | |||||
| 6724 | bool IsSome( | ||||
| 6725 | const Maybe<CachingDatabaseConnection::BorrowedStatement>& aMaybeStmt) { | ||||
| 6726 | return aMaybeStmt.isSome(); | ||||
| 6727 | } | ||||
| 6728 | |||||
| 6729 | already_AddRefed<nsIThreadPool> MakeConnectionIOTarget() { | ||||
| 6730 | nsCOMPtr<nsIThreadPool> threadPool = new nsThreadPool(); | ||||
| 6731 | |||||
| 6732 | 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", 6732) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(kMaxConnectionThreadCount))" ")"); do { MOZ_CrashSequence(__null, 6732); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6733 | |||||
| 6734 | 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", 6735) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" ")"); do { MOZ_CrashSequence(__null, 6735); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6735 | 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", 6735) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(kMaxIdleConnectionThreadCount))" ")"); do { MOZ_CrashSequence(__null, 6735); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6736 | |||||
| 6737 | 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", 6738) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" ")"); do { MOZ_CrashSequence(__null, 6738); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6738 | 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", 6738) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(kConnectionThreadMaxIdleMS))" ")"); do { MOZ_CrashSequence(__null, 6738); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6739 | |||||
| 6740 | 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", 6741) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" ")"); do { MOZ_CrashSequence(__null, 6741); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 6741 | 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", 6741) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadGraceTimeout(kConnectionThreadGraceIdleMS))" ")"); do { MOZ_CrashSequence(__null, 6741); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6742 | |||||
| 6743 | 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", 6743) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB IO\"_ns))" ")"); do { MOZ_CrashSequence(__null, 6743); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 6744 | |||||
| 6745 | return threadPool.forget(); | ||||
| 6746 | } | ||||
| 6747 | |||||
| 6748 | } // namespace | ||||
| 6749 | |||||
| 6750 | /******************************************************************************* | ||||
| 6751 | * Exported functions | ||||
| 6752 | ******************************************************************************/ | ||||
| 6753 | |||||
| 6754 | already_AddRefed<PBackgroundIDBFactoryParent> AllocPBackgroundIDBFactoryParent( | ||||
| 6755 | const LoggingInfo& aLoggingInfo, const nsACString& aSystemLocale) { | ||||
| 6756 | AssertIsOnBackgroundThread(); | ||||
| 6757 | |||||
| 6758 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6758)) { | ||||
| 6759 | return nullptr; | ||||
| 6760 | } | ||||
| 6761 | |||||
| 6762 | // Requests and normal transaction serial numbers must stay positive. | ||||
| 6763 | // VersionChange transaction serial numbers must stay negative. | ||||
| 6764 | // https://searchfox.org/firefox-main/rev/8332a06d47ce7d66623d807068b3410061cd29d3/dom/indexedDB/ActorsChild.cpp#82 | ||||
| 6765 | 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", 6765 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextTransactionSerialNumber() <= 0" ")"); do { MOZ_CrashSequence(__null, 6765); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aLoggingInfo.nextTransactionSerialNumber() <= 0)) || | ||||
| 6766 | 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", 6767 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0" ")"); do { MOZ_CrashSequence(__null, 6767); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0)) | ||||
| 6767 | 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", 6767 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0" ")"); do { MOZ_CrashSequence(__null, 6767); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aLoggingInfo.nextVersionChangeTransactionSerialNumber() >= 0)) || | ||||
| 6768 | NS_AUUF_OR_WARN_IF([](bool aCond) { if ((__builtin_expect(!!(aCond), 0))) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (false)>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(false))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("false" " (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0" ")", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6769 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0" ")"); do { MOZ_CrashSequence(__null, 6769); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber ()) <= 0)) | ||||
| 6769 | 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", 6769 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber()) <= 0" ")"); do { MOZ_CrashSequence(__null, 6769); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((static_cast<int64_t>(aLoggingInfo.nextRequestSerialNumber ()) <= 0))) { | ||||
| 6770 | return nullptr; | ||||
| 6771 | } | ||||
| 6772 | |||||
| 6773 | SafeRefPtr<Factory> actor = Factory::Create(aLoggingInfo, aSystemLocale); | ||||
| 6774 | 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" , 6774); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")") ; do { MOZ_CrashSequence(__null, 6774); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6775 | |||||
| 6776 | return actor.forget(); | ||||
| 6777 | } | ||||
| 6778 | |||||
| 6779 | bool RecvPBackgroundIDBFactoryConstructor( | ||||
| 6780 | PBackgroundIDBFactoryParent* aActor, const LoggingInfo& /* aLoggingInfo */, | ||||
| 6781 | const nsACString& /* aSystemLocale */) { | ||||
| 6782 | AssertIsOnBackgroundThread(); | ||||
| 6783 | 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" , 6783); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 6783); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6784 | 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", 6784) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 6784); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6785 | |||||
| 6786 | return true; | ||||
| 6787 | } | ||||
| 6788 | |||||
| 6789 | PBackgroundIndexedDBUtilsParent* AllocPBackgroundIndexedDBUtilsParent() { | ||||
| 6790 | AssertIsOnBackgroundThread(); | ||||
| 6791 | |||||
| 6792 | RefPtr<Utils> actor = new Utils(); | ||||
| 6793 | |||||
| 6794 | return actor.forget().take(); | ||||
| 6795 | } | ||||
| 6796 | |||||
| 6797 | bool DeallocPBackgroundIndexedDBUtilsParent( | ||||
| 6798 | PBackgroundIndexedDBUtilsParent* aActor) { | ||||
| 6799 | AssertIsOnBackgroundThread(); | ||||
| 6800 | 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" , 6800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 6800); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6801 | |||||
| 6802 | RefPtr<Utils> actor = dont_AddRef(static_cast<Utils*>(aActor)); | ||||
| 6803 | return true; | ||||
| 6804 | } | ||||
| 6805 | |||||
| 6806 | bool RecvFlushPendingFileDeletions() { | ||||
| 6807 | AssertIsOnBackgroundThread(); | ||||
| 6808 | |||||
| 6809 | if (QuotaClient* quotaClient = QuotaClient::GetInstance()) { | ||||
| 6810 | QM_WARNONLY_TRY(QM_TO_RESULT(quotaClient->FlushPendingFileDeletions())){auto tryResult924 = (ToResult<QMResult>(quotaClient-> FlushPendingFileDeletions())); static_assert(std::is_empty_v< typename decltype(tryResult924)::ok_type>); if ((__builtin_expect (!!(tryResult924.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(quotaClient->FlushPendingFileDeletions())" , tryResult924.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6810, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 6811 | } | ||||
| 6812 | |||||
| 6813 | return true; | ||||
| 6814 | } | ||||
| 6815 | |||||
| 6816 | RefPtr<mozilla::dom::quota::Client> CreateQuotaClient() { | ||||
| 6817 | AssertIsOnBackgroundThread(); | ||||
| 6818 | |||||
| 6819 | return MakeRefPtr<QuotaClient>(); | ||||
| 6820 | } | ||||
| 6821 | |||||
| 6822 | nsresult DatabaseFileManager::AsyncDeleteFile(int64_t aFileId) { | ||||
| 6823 | AssertIsOnBackgroundThread(); | ||||
| 6824 | 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", 6824) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aFileId)" ")"); do { MOZ_CrashSequence(__null, 6824); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6825 | |||||
| 6826 | QuotaClient* quotaClient = QuotaClient::GetInstance(); | ||||
| 6827 | if (quotaClient) { | ||||
| 6828 | QM_TRY(MOZ_TO_RESULT(quotaClient->AsyncDeleteFile(this, aFileId))){auto tryResult925 = (ToResult(quotaClient->AsyncDeleteFile (this, aFileId))); static_assert(std::is_empty_v<typename decltype (tryResult925)::ok_type>); if ((__builtin_expect(!!(tryResult925 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(quotaClient->AsyncDeleteFile(this, aFileId))" , tryResult925.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6828, mozilla::dom::quota::Severity::Error); return tryResult925 .propagateErr(); }}; | ||||
| 6829 | } | ||||
| 6830 | |||||
| 6831 | return NS_OK; | ||||
| 6832 | } | ||||
| 6833 | |||||
| 6834 | /******************************************************************************* | ||||
| 6835 | * DatabaseConnection implementation | ||||
| 6836 | ******************************************************************************/ | ||||
| 6837 | |||||
| 6838 | DatabaseConnection::DatabaseConnection( | ||||
| 6839 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> aStorageConnection, | ||||
| 6840 | MovingNotNull<SafeRefPtr<DatabaseFileManager>> aFileManager) | ||||
| 6841 | : CachingDatabaseConnection(std::move(aStorageConnection)), | ||||
| 6842 | mFileManager(std::move(aFileManager)), | ||||
| 6843 | mLastDurability(IDBTransaction::Durability::Default), | ||||
| 6844 | mInReadTransaction(false), | ||||
| 6845 | mInWriteTransaction(false) | ||||
| 6846 | #ifdef DEBUG1 | ||||
| 6847 | , | ||||
| 6848 | mDEBUGSavepointCount(0) | ||||
| 6849 | #endif | ||||
| 6850 | { | ||||
| 6851 | AssertIsOnConnectionThread(); | ||||
| 6852 | 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" , 6852); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 6852); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6853 | } | ||||
| 6854 | |||||
| 6855 | DatabaseConnection::~DatabaseConnection() { | ||||
| 6856 | 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", 6856); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mFileManager" ")") ; do { MOZ_CrashSequence(__null, 6856); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6857 | 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", 6857) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUpdateRefcountFunction" ")"); do { MOZ_CrashSequence(__null, 6857); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6858 | 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", 6858) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 6858); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6859 | 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", 6859) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount" ")"); do { MOZ_CrashSequence(__null, 6859); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6860 | } | ||||
| 6861 | |||||
| 6862 | nsresult DatabaseConnection::Init() { | ||||
| 6863 | AssertIsOnConnectionThread(); | ||||
| 6864 | 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", 6864) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 6864); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6865 | 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", 6865) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 6865); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6866 | |||||
| 6867 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns))){auto tryResult926 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult926 )::ok_type>); if ((__builtin_expect(!!(tryResult926.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns))" , tryResult926.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6867, mozilla::dom::quota::Severity::Error); return tryResult926 .propagateErr(); }}; | ||||
| 6868 | |||||
| 6869 | mInReadTransaction = true; | ||||
| 6870 | |||||
| 6871 | return NS_OK; | ||||
| 6872 | } | ||||
| 6873 | |||||
| 6874 | nsresult DatabaseConnection::BeginWriteTransaction( | ||||
| 6875 | const IDBTransaction::Durability aDurability) { | ||||
| 6876 | AssertIsOnConnectionThread(); | ||||
| 6877 | 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", 6877) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 6877); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6878 | 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", 6878) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 6878); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6879 | 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", 6879) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 6879); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6880 | |||||
| 6881 | AUTO_PROFILER_LABEL("DatabaseConnection::BeginWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6881( "DatabaseConnection::BeginWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 6882 | |||||
| 6883 | // Release our read locks. | ||||
| 6884 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("ROLLBACK;"_ns))){auto tryResult927 = (ToResult(ExecuteCachedStatement("ROLLBACK;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult927 )::ok_type>); if ((__builtin_expect(!!(tryResult927.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"ROLLBACK;\"_ns))" , tryResult927.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6884, mozilla::dom::quota::Severity::Error); return tryResult927 .propagateErr(); }}; | ||||
| 6885 | |||||
| 6886 | mInReadTransaction = false; | ||||
| 6887 | |||||
| 6888 | if (mLastDurability != aDurability) { | ||||
| 6889 | auto synchronousMode = [aDurability]() -> nsLiteralCString { | ||||
| 6890 | switch (aDurability) { | ||||
| 6891 | case IDBTransaction::Durability::Default: | ||||
| 6892 | return GetDefaultSynchronousMode(); | ||||
| 6893 | |||||
| 6894 | case IDBTransaction::Durability::Strict: | ||||
| 6895 | return "EXTRA"_ns; | ||||
| 6896 | |||||
| 6897 | case IDBTransaction::Durability::Relaxed: | ||||
| 6898 | return "OFF"_ns; | ||||
| 6899 | |||||
| 6900 | default: | ||||
| 6901 | MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 6901) ; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!" ")"); do { MOZ_CrashSequence(__null, 6901); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 6902 | } | ||||
| 6903 | }(); | ||||
| 6904 | |||||
| 6905 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("PRAGMA synchronous = "_ns +{auto tryResult928 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns + synchronousMode + ";"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult928)::ok_type>); if ((__builtin_expect (!!(tryResult928.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))" , tryResult928.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Error); return tryResult928 .propagateErr(); }} | ||||
| 6906 | synchronousMode + ";"_ns))){auto tryResult928 = (ToResult(ExecuteCachedStatement("PRAGMA synchronous = "_ns + synchronousMode + ";"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult928)::ok_type>); if ((__builtin_expect (!!(tryResult928.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"PRAGMA synchronous = \"_ns + synchronousMode + \";\"_ns))" , tryResult928.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6906, mozilla::dom::quota::Severity::Error); return tryResult928 .propagateErr(); }}; | ||||
| 6907 | |||||
| 6908 | mLastDurability = aDurability; | ||||
| 6909 | } | ||||
| 6910 | |||||
| 6911 | if (!mUpdateRefcountFunction) { | ||||
| 6912 | 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" , 6912); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 6912); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6913 | |||||
| 6914 | RefPtr<UpdateRefcountFunction> function = | ||||
| 6915 | new UpdateRefcountFunction(this, **mFileManager); | ||||
| 6916 | |||||
| 6917 | QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().CreateFunction({auto tryResult929 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult929)::ok_type>); if ((__builtin_expect (!!(tryResult929.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult929.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6919, mozilla::dom::quota::Severity::Error); return tryResult929 .propagateErr(); }} | ||||
| 6918 | "update_refcount"_ns,{auto tryResult929 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult929)::ok_type>); if ((__builtin_expect (!!(tryResult929.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult929.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6919, mozilla::dom::quota::Severity::Error); return tryResult929 .propagateErr(); }} | ||||
| 6919 | /* aNumArguments */ 2, function))){auto tryResult929 = (ToResult(MutableStorageConnection().CreateFunction ( "update_refcount"_ns, 2, function))); static_assert(std::is_empty_v <typename decltype(tryResult929)::ok_type>); if ((__builtin_expect (!!(tryResult929.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(MutableStorageConnection().CreateFunction( \"update_refcount\"_ns, 2, function))" , tryResult929.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6919, mozilla::dom::quota::Severity::Error); return tryResult929 .propagateErr(); }}; | ||||
| 6920 | |||||
| 6921 | mUpdateRefcountFunction = std::move(function); | ||||
| 6922 | } | ||||
| 6923 | |||||
| 6924 | // This one cannot obviously use ExecuteCachedStatement because of the custom | ||||
| 6925 | // error handling for Execute only. If only Execute can produce | ||||
| 6926 | // NS_ERROR_STORAGE_BUSY, we could actually use ExecuteCachedStatement and | ||||
| 6927 | // simplify this. | ||||
| 6928 | QM_TRY_INSPECT(const auto& beginStmt,auto tryResult930 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult930.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult930.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6929, mozilla::dom::quota::Severity::Error); return tryResult930 .propagateErr(); } const auto& beginStmt = tryResult930.inspect (); | ||||
| 6929 | BorrowCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult930 = (BorrowCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult930.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult930.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6929, mozilla::dom::quota::Severity::Error); return tryResult930 .propagateErr(); } const auto& beginStmt = tryResult930.inspect ();; | ||||
| 6930 | |||||
| 6931 | QM_TRY(QM_OR_ELSE_WARN_IF({auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6932 | // Expression.{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6933 | MOZ_TO_RESULT(beginStmt->Execute()),{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6934 | // Predicate.{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6935 | IsSpecificError<NS_ERROR_STORAGE_BUSY>,{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6936 | // Fallback.{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6937 | ([&beginStmt](nsresult rv) {{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6938 | NS_WARNING({auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6939 | "Received NS_ERROR_STORAGE_BUSY when attempting to start write "{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6940 | "transaction, retrying for up to 10 seconds");{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6941 | |||||
| 6942 | // Another thread must be using the database. Wait up to 10 seconds{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6943 | // for that to complete.{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6944 | const TimeStamp start = TimeStamp::NowLoRes();{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6945 | |||||
| 6946 | while (true) {{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6947 | PR_Sleep(PR_MillisecondsToInterval(100));{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6948 | |||||
| 6949 | rv = beginStmt->Execute();{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6950 | if (rv != NS_ERROR_STORAGE_BUSY ||{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6951 | TimeStamp::NowLoRes() - start > TimeDuration::FromSeconds(10)) {{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6952 | break;{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6953 | }{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6954 | }{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6955 | |||||
| 6956 | return MOZ_TO_RESULT(rv);{auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }} | ||||
| 6957 | }))){auto tryResult931 = (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" , 6957, 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" , 6940); 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(tryResult931)::ok_type>); if ((__builtin_expect (!!(tryResult931.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\", 6957, 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\", 6940); 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); }))" , tryResult931.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6957, mozilla::dom::quota::Severity::Error); return tryResult931 .propagateErr(); }}; | ||||
| 6958 | |||||
| 6959 | mInWriteTransaction = true; | ||||
| 6960 | |||||
| 6961 | return NS_OK; | ||||
| 6962 | } | ||||
| 6963 | |||||
| 6964 | nsresult DatabaseConnection::CommitWriteTransaction() { | ||||
| 6965 | AssertIsOnConnectionThread(); | ||||
| 6966 | 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", 6966) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 6966); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6967 | 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", 6967) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 6967); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6968 | 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", 6968) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 6968); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6969 | |||||
| 6970 | AUTO_PROFILER_LABEL("DatabaseConnection::CommitWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6970( "DatabaseConnection::CommitWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 6971 | |||||
| 6972 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("COMMIT;"_ns))){auto tryResult932 = (ToResult(ExecuteCachedStatement("COMMIT;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult932 )::ok_type>); if ((__builtin_expect(!!(tryResult932.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"COMMIT;\"_ns))" , tryResult932.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 6972, mozilla::dom::quota::Severity::Error); return tryResult932 .propagateErr(); }}; | ||||
| 6973 | |||||
| 6974 | mInWriteTransaction = false; | ||||
| 6975 | return NS_OK; | ||||
| 6976 | } | ||||
| 6977 | |||||
| 6978 | void DatabaseConnection::RollbackWriteTransaction() { | ||||
| 6979 | AssertIsOnConnectionThread(); | ||||
| 6980 | 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", 6980) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 6980); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6981 | 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", 6981) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 6981); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 6982 | |||||
| 6983 | AUTO_PROFILER_LABEL("DatabaseConnection::RollbackWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject6983( "DatabaseConnection::RollbackWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 6984 | |||||
| 6985 | if (!mInWriteTransaction) { | ||||
| 6986 | return; | ||||
| 6987 | } | ||||
| 6988 | |||||
| 6989 | QM_WARNONLY_TRY({auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6990 | BorrowCachedStatement("ROLLBACK;"_ns){auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6991 | .andThen([&self = *this](const auto& stmt) -> Result<Ok, nsresult> {{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6992 | // This may fail if SQLite already rolled back the transaction{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6993 | // so ignore any errors.{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6994 | |||||
| 6995 | // XXX ROLLBACK can fail quite normmally if a previous statement{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6996 | // failed to execute successfully so SQLite rolled back the{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6997 | // transaction already. However, if it failed because of some other{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6998 | // reason, we could try to close the connection.{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 6999 | (void)stmt->Execute();{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7000 | |||||
| 7001 | self.mInWriteTransaction = false;{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7002 | return Ok{};{auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7003 | })){auto tryResult933 = (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(tryResult933)::ok_type>); if ((__builtin_expect (!!(tryResult933.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{}; })" , tryResult933.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7003, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7004 | } | ||||
| 7005 | |||||
| 7006 | void DatabaseConnection::FinishWriteTransaction() { | ||||
| 7007 | AssertIsOnConnectionThread(); | ||||
| 7008 | 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", 7008) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7008); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7009 | 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", 7009) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7009); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7010 | 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", 7010) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7010); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7011 | |||||
| 7012 | AUTO_PROFILER_LABEL("DatabaseConnection::FinishWriteTransaction", DOM)mozilla::AutoProfilerLabel raiiObject7012( "DatabaseConnection::FinishWriteTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7013 | |||||
| 7014 | if (mUpdateRefcountFunction) { | ||||
| 7015 | mUpdateRefcountFunction->Reset(); | ||||
| 7016 | } | ||||
| 7017 | |||||
| 7018 | QM_WARNONLY_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("BEGIN;"_ns)){auto tryResult934 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult934)::ok_type> ); if ((__builtin_expect(!!(tryResult934.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult934.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7022, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7019 | .andThen([&](const auto) -> Result<Ok, nsresult> {{auto tryResult934 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult934)::ok_type> ); if ((__builtin_expect(!!(tryResult934.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult934.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7022, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7020 | mInReadTransaction = true;{auto tryResult934 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult934)::ok_type> ); if ((__builtin_expect(!!(tryResult934.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult934.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7022, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7021 | return Ok{};{auto tryResult934 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult934)::ok_type> ); if ((__builtin_expect(!!(tryResult934.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult934.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7022, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7022 | })){auto tryResult934 = (ToResult(ExecuteCachedStatement("BEGIN;"_ns )) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult934)::ok_type> ); if ((__builtin_expect(!!(tryResult934.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"BEGIN;\"_ns)) .andThen([&](const auto) -> Result<Ok, nsresult> { mInReadTransaction = true; return Ok{}; })" , tryResult934.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7022, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7023 | } | ||||
| 7024 | |||||
| 7025 | nsresult DatabaseConnection::StartSavepoint() { | ||||
| 7026 | AssertIsOnConnectionThread(); | ||||
| 7027 | 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", 7027) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7027); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7028 | 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", 7028) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { MOZ_CrashSequence(__null, 7028); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7029 | 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", 7029) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7029); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7030 | |||||
| 7031 | AUTO_PROFILER_LABEL("DatabaseConnection::StartSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7031( "DatabaseConnection::StartSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7032 | |||||
| 7033 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(SAVEPOINT_CLAUSE))){auto tryResult935 = (ToResult(ExecuteCachedStatement("SAVEPOINT sp;"_ns ))); static_assert(std::is_empty_v<typename decltype(tryResult935 )::ok_type>); if ((__builtin_expect(!!(tryResult935.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(\"SAVEPOINT sp;\"_ns))" , tryResult935.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7033, mozilla::dom::quota::Severity::Error); return tryResult935 .propagateErr(); }}; | ||||
| 7034 | |||||
| 7035 | mUpdateRefcountFunction->StartSavepoint(); | ||||
| 7036 | |||||
| 7037 | #ifdef DEBUG1 | ||||
| 7038 | 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", 7038) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount < (4294967295U)" ")"); do { MOZ_CrashSequence(__null, 7038); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7039 | mDEBUGSavepointCount++; | ||||
| 7040 | #endif | ||||
| 7041 | |||||
| 7042 | return NS_OK; | ||||
| 7043 | } | ||||
| 7044 | |||||
| 7045 | nsresult DatabaseConnection::ReleaseSavepoint() { | ||||
| 7046 | AssertIsOnConnectionThread(); | ||||
| 7047 | 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", 7047) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7047); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7048 | 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", 7048) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { MOZ_CrashSequence(__null, 7048); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7049 | 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", 7049) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7049); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7050 | |||||
| 7051 | AUTO_PROFILER_LABEL("DatabaseConnection::ReleaseSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7051( "DatabaseConnection::ReleaseSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7052 | |||||
| 7053 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement("RELEASE "_ns SAVEPOINT_CLAUSE))){auto tryResult936 = (ToResult(ExecuteCachedStatement("RELEASE "_ns "SAVEPOINT sp;"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult936)::ok_type>); if ((__builtin_expect( !!(tryResult936.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ExecuteCachedStatement(\"RELEASE \"_ns \"SAVEPOINT sp;\"_ns))" , tryResult936.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7053, mozilla::dom::quota::Severity::Error); return tryResult936 .propagateErr(); }}; | ||||
| 7054 | |||||
| 7055 | mUpdateRefcountFunction->ReleaseSavepoint(); | ||||
| 7056 | |||||
| 7057 | #ifdef DEBUG1 | ||||
| 7058 | 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", 7058) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount" ")"); do { MOZ_CrashSequence(__null, 7058); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7059 | mDEBUGSavepointCount--; | ||||
| 7060 | #endif | ||||
| 7061 | |||||
| 7062 | return NS_OK; | ||||
| 7063 | } | ||||
| 7064 | |||||
| 7065 | nsresult DatabaseConnection::RollbackSavepoint() { | ||||
| 7066 | AssertIsOnConnectionThread(); | ||||
| 7067 | 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", 7067) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7067); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7068 | 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", 7068) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUpdateRefcountFunction" ")"); do { MOZ_CrashSequence(__null, 7068); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7069 | 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", 7069) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7069); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7070 | |||||
| 7071 | AUTO_PROFILER_LABEL("DatabaseConnection::RollbackSavepoint", DOM)mozilla::AutoProfilerLabel raiiObject7071( "DatabaseConnection::RollbackSavepoint" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7072 | |||||
| 7073 | #ifdef DEBUG1 | ||||
| 7074 | 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", 7074) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGSavepointCount" ")"); do { MOZ_CrashSequence(__null, 7074); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7075 | mDEBUGSavepointCount--; | ||||
| 7076 | #endif | ||||
| 7077 | |||||
| 7078 | mUpdateRefcountFunction->RollbackSavepoint(); | ||||
| 7079 | |||||
| 7080 | QM_TRY_INSPECT(const auto& stmt,auto tryResult937 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns )); if ((__builtin_expect(!!(tryResult937.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)" , tryResult937.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7081, mozilla::dom::quota::Severity::Error); return tryResult937 .propagateErr(); } const auto& stmt = tryResult937.inspect (); | ||||
| 7081 | BorrowCachedStatement("ROLLBACK TO "_ns SAVEPOINT_CLAUSE))auto tryResult937 = (BorrowCachedStatement("ROLLBACK TO "_ns "SAVEPOINT sp;"_ns )); if ((__builtin_expect(!!(tryResult937.isErr()), 0))) { mozilla ::dom::quota::HandleError("BorrowCachedStatement(\"ROLLBACK TO \"_ns \"SAVEPOINT sp;\"_ns)" , tryResult937.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7081, mozilla::dom::quota::Severity::Error); return tryResult937 .propagateErr(); } const auto& stmt = tryResult937.inspect ();; | ||||
| 7082 | |||||
| 7083 | // This may fail if SQLite already rolled back the savepoint so ignore any | ||||
| 7084 | // errors. | ||||
| 7085 | (void)stmt->Execute(); | ||||
| 7086 | |||||
| 7087 | return NS_OK; | ||||
| 7088 | } | ||||
| 7089 | |||||
| 7090 | nsresult DatabaseConnection::CheckpointInternal(CheckpointMode aMode) { | ||||
| 7091 | AssertIsOnConnectionThread(); | ||||
| 7092 | 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", 7092) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7092); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7093 | 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", 7093) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7093); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7094 | |||||
| 7095 | AUTO_PROFILER_LABEL("DatabaseConnection::CheckpointInternal", DOM)mozilla::AutoProfilerLabel raiiObject7095( "DatabaseConnection::CheckpointInternal" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7096 | |||||
| 7097 | nsAutoCString stmtString; | ||||
| 7098 | stmtString.AssignLiteral("PRAGMA wal_checkpoint("); | ||||
| 7099 | |||||
| 7100 | switch (aMode) { | ||||
| 7101 | case CheckpointMode::Full: | ||||
| 7102 | // Ensures that the database is completely checkpointed and flushed to | ||||
| 7103 | // disk. | ||||
| 7104 | stmtString.AppendLiteral("FULL"); | ||||
| 7105 | break; | ||||
| 7106 | |||||
| 7107 | case CheckpointMode::Restart: | ||||
| 7108 | // Like Full, but also ensures that the next write will start overwriting | ||||
| 7109 | // the existing WAL file rather than letting the WAL file grow. | ||||
| 7110 | stmtString.AppendLiteral("RESTART"); | ||||
| 7111 | break; | ||||
| 7112 | |||||
| 7113 | case CheckpointMode::Truncate: | ||||
| 7114 | // Like Restart but also truncates the existing WAL file. | ||||
| 7115 | stmtString.AppendLiteral("TRUNCATE"); | ||||
| 7116 | break; | ||||
| 7117 | |||||
| 7118 | default: | ||||
| 7119 | MOZ_CRASH("Unknown CheckpointMode!")do { do { } while (false); MOZ_ReportCrash("" "Unknown CheckpointMode!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7119) ; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown CheckpointMode!" ")"); do { MOZ_CrashSequence(__null, 7119); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 7120 | } | ||||
| 7121 | |||||
| 7122 | stmtString.AppendLiteral(");"); | ||||
| 7123 | |||||
| 7124 | QM_TRY(MOZ_TO_RESULT(ExecuteCachedStatement(stmtString))){auto tryResult938 = (ToResult(ExecuteCachedStatement(stmtString ))); static_assert(std::is_empty_v<typename decltype(tryResult938 )::ok_type>); if ((__builtin_expect(!!(tryResult938.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(ExecuteCachedStatement(stmtString))" , tryResult938.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7124, mozilla::dom::quota::Severity::Error); return tryResult938 .propagateErr(); }}; | ||||
| 7125 | |||||
| 7126 | return NS_OK; | ||||
| 7127 | } | ||||
| 7128 | |||||
| 7129 | void DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint, | ||||
| 7130 | const Atomic<bool>& aInterrupted) { | ||||
| 7131 | AssertIsOnConnectionThread(); | ||||
| 7132 | 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", 7132) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7132); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7133 | 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", 7133) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7133); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7134 | |||||
| 7135 | AUTO_PROFILER_LABEL("DatabaseConnection::DoIdleProcessing", DOM)mozilla::AutoProfilerLabel raiiObject7135( "DatabaseConnection::DoIdleProcessing" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7136 | |||||
| 7137 | CachingDatabaseConnection::CachedStatement freelistStmt; | ||||
| 7138 | const uint32_t freelistCount = [this, &freelistStmt] { | ||||
| 7139 | QM_TRY_RETURN(GetFreelistCount(freelistStmt), 0u){auto tryResult939 = (GetFreelistCount(freelistStmt)); if ((__builtin_expect (!!(tryResult939.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult939.unwrapErr(); mozilla::dom::quota::HandleError ("GetFreelistCount(freelistStmt)", tryResult939.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7139, mozilla ::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal (func, "GetFreelistCount(freelistStmt)", tryTempError, 0u); } return tryResult939.unwrap();}; | ||||
| 7140 | }(); | ||||
| 7141 | |||||
| 7142 | CachedStatement rollbackStmt; | ||||
| 7143 | CachedStatement beginStmt; | ||||
| 7144 | if (aNeedsCheckpoint || freelistCount) { | ||||
| 7145 | QM_TRY_UNWRAP(rollbackStmt, GetCachedStatement("ROLLBACK;"_ns), QM_VOID)auto tryResult940 = (GetCachedStatement("ROLLBACK;"_ns)); if ( (__builtin_expect(!!(tryResult940.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult940.unwrapErr(); mozilla::dom ::quota::HandleError("GetCachedStatement(\"ROLLBACK;\"_ns)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7145, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; } rollbackStmt = tryResult940 .unwrap();; | ||||
| 7146 | QM_TRY_UNWRAP(beginStmt, GetCachedStatement("BEGIN;"_ns), QM_VOID)auto tryResult941 = (GetCachedStatement("BEGIN;"_ns)); if ((__builtin_expect (!!(tryResult941.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult941.unwrapErr(); mozilla::dom::quota::HandleError ("GetCachedStatement(\"BEGIN;\"_ns)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7146, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } beginStmt = tryResult941.unwrap();; | ||||
| 7147 | |||||
| 7148 | // Release the connection's normal transaction. It's possible that it could | ||||
| 7149 | // fail, but that isn't a problem here. | ||||
| 7150 | (void)rollbackStmt.Borrow()->Execute(); | ||||
| 7151 | |||||
| 7152 | mInReadTransaction = false; | ||||
| 7153 | } | ||||
| 7154 | |||||
| 7155 | const bool freedSomePages = | ||||
| 7156 | freelistCount && [this, &freelistStmt, &rollbackStmt, freelistCount, | ||||
| 7157 | aNeedsCheckpoint, &aInterrupted] { | ||||
| 7158 | // Warn in case of an error, but do not propagate it. Just indicate we | ||||
| 7159 | // didn't free any pages. | ||||
| 7160 | QM_TRY_INSPECT(auto tryResult942 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult942.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult942.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7164, 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 = tryResult942. inspect(); | ||||
| 7161 | const bool& res,auto tryResult942 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult942.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult942.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7164, 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 = tryResult942. inspect(); | ||||
| 7162 | ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount,auto tryResult942 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult942.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult942.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7164, 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 = tryResult942. inspect(); | ||||
| 7163 | aNeedsCheckpoint, aInterrupted),auto tryResult942 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult942.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult942.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7164, 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 = tryResult942. inspect(); | ||||
| 7164 | false)auto tryResult942 = (ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt , freelistCount, aNeedsCheckpoint, aInterrupted)); if ((__builtin_expect (!!(tryResult942.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult942.unwrapErr(); mozilla::dom::quota::HandleError ("ReclaimFreePagesWhileIdle(freelistStmt, rollbackStmt, freelistCount, aNeedsCheckpoint, aInterrupted)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7164, 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 = tryResult942. inspect();; | ||||
| 7165 | |||||
| 7166 | // Make sure we didn't leave a transaction running. | ||||
| 7167 | 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", 7167) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7167); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7168 | 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", 7168) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7168); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7169 | |||||
| 7170 | return res; | ||||
| 7171 | }(); | ||||
| 7172 | |||||
| 7173 | // Truncate the WAL if we were asked to or if we managed to free some space. | ||||
| 7174 | if (aNeedsCheckpoint || freedSomePages) { | ||||
| 7175 | QM_WARNONLY_TRY(QM_TO_RESULT(CheckpointInternal(CheckpointMode::Truncate))){auto tryResult943 = (ToResult<QMResult>(CheckpointInternal (CheckpointMode::Truncate))); static_assert(std::is_empty_v< typename decltype(tryResult943)::ok_type>); if ((__builtin_expect (!!(tryResult943.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(CheckpointInternal(CheckpointMode::Truncate))" , tryResult943.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7175, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7176 | } | ||||
| 7177 | |||||
| 7178 | // Finally try to restart the read transaction if we rolled it back earlier. | ||||
| 7179 | if (beginStmt) { | ||||
| 7180 | QM_WARNONLY_TRY({auto tryResult944 = (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(tryResult944 )::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult944.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7181 | MOZ_TO_RESULT(beginStmt.Borrow()->Execute()){auto tryResult944 = (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(tryResult944 )::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult944.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7182 | .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> {{auto tryResult944 = (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(tryResult944 )::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult944.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7183 | self.mInReadTransaction = true;{auto tryResult944 = (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(tryResult944 )::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult944.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7184 | return Ok{};{auto tryResult944 = (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(tryResult944 )::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult944.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Warning); }} | ||||
| 7185 | })){auto tryResult944 = (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(tryResult944 )::ok_type>); if ((__builtin_expect(!!(tryResult944.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(beginStmt.Borrow()->Execute()) .andThen([&self = *this](const Ok) -> Result<Ok, nsresult> { self.mInReadTransaction = true; return Ok{}; })" , tryResult944.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7185, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7186 | } | ||||
| 7187 | } | ||||
| 7188 | |||||
| 7189 | Result<bool, nsresult> DatabaseConnection::ReclaimFreePagesWhileIdle( | ||||
| 7190 | CachedStatement& aFreelistStatement, CachedStatement& aRollbackStatement, | ||||
| 7191 | uint32_t aFreelistCount, bool aNeedsCheckpoint, | ||||
| 7192 | const Atomic<bool>& aInterrupted) { | ||||
| 7193 | AssertIsOnConnectionThread(); | ||||
| 7194 | 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", 7194) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistStatement" ")"); do { MOZ_CrashSequence(__null, 7194); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7195 | 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", 7195) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRollbackStatement" ")"); do { MOZ_CrashSequence(__null, 7195); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7196 | 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", 7196) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFreelistCount" ")" ); do { MOZ_CrashSequence(__null, 7196); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7197 | 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", 7197) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInReadTransaction" ")"); do { MOZ_CrashSequence(__null, 7197); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7198 | 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", 7198) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7198); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7199 | |||||
| 7200 | AUTO_PROFILER_LABEL("DatabaseConnection::ReclaimFreePagesWhileIdle", DOM)mozilla::AutoProfilerLabel raiiObject7200( "DatabaseConnection::ReclaimFreePagesWhileIdle" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7201 | |||||
| 7202 | uint32_t pauseOnConnectionThreadMs = StaticPrefs:: | ||||
| 7203 | dom_indexedDB_connectionIdleMaintenance_pauseOnConnectionThreadMs(); | ||||
| 7204 | if (pauseOnConnectionThreadMs > 0) { | ||||
| 7205 | PR_Sleep(PR_MillisecondsToInterval(pauseOnConnectionThreadMs)); | ||||
| 7206 | } | ||||
| 7207 | |||||
| 7208 | // Make sure we don't keep working if anything else needs this thread. | ||||
| 7209 | if (aInterrupted) { | ||||
| 7210 | return false; | ||||
| 7211 | } | ||||
| 7212 | |||||
| 7213 | // Make all the statements we'll need up front. | ||||
| 7214 | |||||
| 7215 | // Only try to free 10% at a time so that we can bail out if this connection | ||||
| 7216 | // suddenly becomes active or if the thread is needed otherwise. | ||||
| 7217 | QM_TRY_INSPECT(auto tryResult945 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult945.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult945.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7222, mozilla::dom::quota::Severity::Error); return tryResult945 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult945 .inspect(); | ||||
| 7218 | const auto& incrementalVacuumStmt,auto tryResult945 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult945.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult945.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7222, mozilla::dom::quota::Severity::Error); return tryResult945 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult945 .inspect(); | ||||
| 7219 | GetCachedStatement(auto tryResult945 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult945.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult945.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7222, mozilla::dom::quota::Severity::Error); return tryResult945 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult945 .inspect(); | ||||
| 7220 | "PRAGMA incremental_vacuum("_ns +auto tryResult945 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult945.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult945.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7222, mozilla::dom::quota::Severity::Error); return tryResult945 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult945 .inspect(); | ||||
| 7221 | IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) +auto tryResult945 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult945.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult945.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7222, mozilla::dom::quota::Severity::Error); return tryResult945 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult945 .inspect(); | ||||
| 7222 | ");"_ns))auto tryResult945 = (GetCachedStatement( "PRAGMA incremental_vacuum("_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + ");"_ns)); if ((__builtin_expect(!!(tryResult945.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetCachedStatement( \"PRAGMA incremental_vacuum(\"_ns + IntToCString(std::max(uint64_t(1), uint64_t(aFreelistCount / 10))) + \");\"_ns)" , tryResult945.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7222, mozilla::dom::quota::Severity::Error); return tryResult945 .propagateErr(); } const auto& incrementalVacuumStmt = tryResult945 .inspect();; | ||||
| 7223 | |||||
| 7224 | QM_TRY_INSPECT(const auto& beginImmediateStmt,auto tryResult946 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult946.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7225, mozilla::dom::quota::Severity::Error); return tryResult946 .propagateErr(); } const auto& beginImmediateStmt = tryResult946 .inspect(); | ||||
| 7225 | GetCachedStatement("BEGIN IMMEDIATE;"_ns))auto tryResult946 = (GetCachedStatement("BEGIN IMMEDIATE;"_ns )); if ((__builtin_expect(!!(tryResult946.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"BEGIN IMMEDIATE;\"_ns)" , tryResult946.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7225, mozilla::dom::quota::Severity::Error); return tryResult946 .propagateErr(); } const auto& beginImmediateStmt = tryResult946 .inspect();; | ||||
| 7226 | |||||
| 7227 | QM_TRY_INSPECT(const auto& commitStmt, GetCachedStatement("COMMIT;"_ns))auto tryResult947 = (GetCachedStatement("COMMIT;"_ns)); if (( __builtin_expect(!!(tryResult947.isErr()), 0))) { mozilla::dom ::quota::HandleError("GetCachedStatement(\"COMMIT;\"_ns)", tryResult947 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7227, mozilla::dom::quota::Severity::Error); return tryResult947 .propagateErr(); } const auto& commitStmt = tryResult947. inspect();; | ||||
| 7228 | |||||
| 7229 | if (aNeedsCheckpoint) { | ||||
| 7230 | // Freeing pages is a journaled operation, so it will require additional WAL | ||||
| 7231 | // space. However, we're idle and are about to checkpoint anyway, so doing a | ||||
| 7232 | // RESTART checkpoint here should allow us to reuse any existing space. | ||||
| 7233 | QM_TRY(MOZ_TO_RESULT(CheckpointInternal(CheckpointMode::Restart))){auto tryResult948 = (ToResult(CheckpointInternal(CheckpointMode ::Restart))); static_assert(std::is_empty_v<typename decltype (tryResult948)::ok_type>); if ((__builtin_expect(!!(tryResult948 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(CheckpointInternal(CheckpointMode::Restart))" , tryResult948.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7233, mozilla::dom::quota::Severity::Error); return tryResult948 .propagateErr(); }}; | ||||
| 7234 | } | ||||
| 7235 | |||||
| 7236 | // Start the write transaction. | ||||
| 7237 | QM_TRY(MOZ_TO_RESULT(beginImmediateStmt.Borrow()->Execute())){auto tryResult949 = (ToResult(beginImmediateStmt.Borrow()-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult949)::ok_type>); if ((__builtin_expect(!!(tryResult949 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(beginImmediateStmt.Borrow()->Execute())" , tryResult949.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7237, mozilla::dom::quota::Severity::Error); return tryResult949 .propagateErr(); }}; | ||||
| 7238 | |||||
| 7239 | mInWriteTransaction = true; | ||||
| 7240 | |||||
| 7241 | bool freedSomePages = false; | ||||
| 7242 | |||||
| 7243 | const auto rollback = [&aRollbackStatement, this](const auto&) { | ||||
| 7244 | 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", 7244) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7244); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7245 | |||||
| 7246 | // Something failed, make sure we roll everything back. | ||||
| 7247 | (void)aRollbackStatement.Borrow()->Execute(); | ||||
| 7248 | |||||
| 7249 | // XXX Is rollback infallible? Shouldn't we check the result? | ||||
| 7250 | |||||
| 7251 | mInWriteTransaction = false; | ||||
| 7252 | }; | ||||
| 7253 | |||||
| 7254 | uint64_t previousFreelistCount = (uint64_t)aFreelistCount + 1; | ||||
| 7255 | |||||
| 7256 | QM_TRY(CollectWhile({auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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)); }} | ||||
| 7257 | [&aFreelistCount, &previousFreelistCount,{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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)); }} | ||||
| 7258 | &aInterrupted]() -> Result<bool, nsresult> {{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7259 | if (aInterrupted) {{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7260 | // On interrupt, abort and roll back this transaction. It's ok{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7261 | // if we never make progress here because the idle service{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7262 | // should eventually reclaim this space.{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7263 | return false;{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7264 | }{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7265 | // If we were not able to free anything, we might either see{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7266 | // a DB that has no auto-vacuum support at all or some other{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7267 | // (hopefully temporary) condition that prevents vacuum from{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7268 | // working. Just carry on in non-DEBUG.{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7269 | bool madeProgress = previousFreelistCount != aFreelistCount;{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7270 | previousFreelistCount = aFreelistCount;{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7271 | MOZ_ASSERT(madeProgress);{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7272 | QM_WARNONLY_TRY(MOZ_TO_RESULT(madeProgress));{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7273 | return madeProgress && (aFreelistCount != 0);{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7274 | },{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7275 | [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt,{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7276 | &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> {{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7277 | QM_TRY(MOZ_TO_RESULT(incrementalVacuumStmt.Borrow()->Execute()));{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7278 | |||||
| 7279 | freedSomePages = true;{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7280 | |||||
| 7281 | QM_TRY_UNWRAP(aFreelistCount,{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7282 | GetFreelistCount(aFreelistStatement));{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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)); }} | ||||
| 7283 | |||||
| 7284 | return Ok{};{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7285 | }){auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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)); }} | ||||
| 7286 | .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback,{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7287 | this](Ok) -> Result<Ok, nsresult> {{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7288 | if (aInterrupted) {{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7289 | rollback(Ok{});{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7290 | freedSomePages = false;{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7291 | }{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7292 | |||||
| 7293 | if (freedSomePages) {{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7294 | // Commit the write transaction.{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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)); }} | ||||
| 7295 | QM_TRY(MOZ_TO_RESULT(commitStmt.Borrow()->Execute()),{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7296 | QM_PROPAGATE,{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, Err(tryTempError)); }}; mInWriteTransaction = false; } return Ok{}; })" , tryTempError, Err(tryTempError)); }} | ||||
| 7297 | [](const auto&) { NS_WARNING("Failed to commit!"); });{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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 | |||||
| 7299 | mInWriteTransaction = false;{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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 | }{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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 | |||||
| 7302 | return Ok{};{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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 | }),{auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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 | QM_PROPAGATE, rollback){auto tryResult954 = (CollectWhile( [&aFreelistCount, & previousFreelistCount, &aInterrupted]() -> Result<bool , nsresult> { if (aInterrupted) { return false; } bool madeProgress = previousFreelistCount != aFreelistCount; previousFreelistCount = aFreelistCount; do { static_assert( mozilla::detail::AssertionConditionType <decltype(madeProgress)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(madeProgress))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("madeProgress", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "madeProgress" ")"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v< typename decltype(tryResult950)::ok_type>); if ((__builtin_expect (!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(madeProgress)", tryResult950.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement , &aFreelistCount, &incrementalVacuumStmt, &freedSomePages , this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult951)::ok_type> ); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(incrementalVacuumStmt.Borrow()->Execute())" , tryResult951.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7277, mozilla::dom::quota::Severity::Error); return tryResult951 .propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect (!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetFreelistCount(aFreelistStatement)", tryResult952.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7282 , mozilla::dom::quota::Severity::Error); return tryResult952. propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, & aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult > { if (aInterrupted) { rollback(Ok{}); freedSomePages = false ; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt .Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect( !!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(commitStmt.Borrow()->Execute())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7297, mozilla::dom::quota::Severity::Error); [](const auto& ) { NS_DebugBreak(NS_DEBUG_WARNING, "Failed to commit!", nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7297) ; }(tryTempError); [[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 (tryResult954)::ok_type>); if ((__builtin_expect(!!(tryResult954 .isErr()), 0))) { auto tryTempError = tryResult954.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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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" , 7304, 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\", 7271); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"madeProgress\" \")\"); do { MOZ_CrashSequence(__null, 7271); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); {auto tryResult950 = (ToResult(madeProgress)); static_assert(std::is_empty_v<typename decltype(tryResult950)::ok_type>); if ((__builtin_expect(!!(tryResult950.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(madeProgress)\", tryResult950.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7272, mozilla::dom::quota::Severity::Warning); }}; return madeProgress && (aFreelistCount != 0); }, [&aFreelistStatement, &aFreelistCount, &incrementalVacuumStmt, &freedSomePages, this]() -> mozilla::Result<Ok, nsresult> { {auto tryResult951 = (ToResult(incrementalVacuumStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult951)::ok_type>); if ((__builtin_expect(!!(tryResult951.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(incrementalVacuumStmt.Borrow()->Execute())\", tryResult951.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7277, mozilla::dom::quota::Severity::Error); return tryResult951.propagateErr(); }}; freedSomePages = true; auto tryResult952 = (GetFreelistCount(aFreelistStatement)); if ((__builtin_expect(!!(tryResult952.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetFreelistCount(aFreelistStatement)\", tryResult952.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7282, mozilla::dom::quota::Severity::Error); return tryResult952.propagateErr(); } aFreelistCount = tryResult952.unwrap();; return Ok{}; }) .andThen([&commitStmt, &freedSomePages, &aInterrupted, &rollback, this](Ok) -> Result<Ok, nsresult> { if (aInterrupted) { rollback(Ok{}); freedSomePages = false; } if (freedSomePages) { {auto tryResult953 = (ToResult(commitStmt.Borrow()->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult953)::ok_type>); if ((__builtin_expect(!!(tryResult953.isErr()), 0))) { auto tryTempError = tryResult953.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(commitStmt.Borrow()->Execute())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297, mozilla::dom::quota::Severity::Error); [](const auto&) { NS_DebugBreak(NS_DEBUG_WARNING, \"Failed to commit!\", nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7297); }(tryTempError); [[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 | |||||
| 7306 | return freedSomePages; | ||||
| 7307 | } | ||||
| 7308 | |||||
| 7309 | Result<uint32_t, nsresult> DatabaseConnection::GetFreelistCount( | ||||
| 7310 | CachedStatement& aCachedStatement) { | ||||
| 7311 | AssertIsOnConnectionThread(); | ||||
| 7312 | |||||
| 7313 | AUTO_PROFILER_LABEL("DatabaseConnection::GetFreelistCount", DOM)mozilla::AutoProfilerLabel raiiObject7313( "DatabaseConnection::GetFreelistCount" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7314 | |||||
| 7315 | if (!aCachedStatement) { | ||||
| 7316 | QM_TRY_UNWRAP(aCachedStatement,auto tryResult955 = (GetCachedStatement("PRAGMA freelist_count;"_ns )); if ((__builtin_expect(!!(tryResult955.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)" , tryResult955.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7317, mozilla::dom::quota::Severity::Error); return tryResult955 .propagateErr(); } aCachedStatement = tryResult955.unwrap(); | ||||
| 7317 | GetCachedStatement("PRAGMA freelist_count;"_ns))auto tryResult955 = (GetCachedStatement("PRAGMA freelist_count;"_ns )); if ((__builtin_expect(!!(tryResult955.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetCachedStatement(\"PRAGMA freelist_count;\"_ns)" , tryResult955.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7317, mozilla::dom::quota::Severity::Error); return tryResult955 .propagateErr(); } aCachedStatement = tryResult955.unwrap();; | ||||
| 7318 | } | ||||
| 7319 | |||||
| 7320 | const auto borrowedStatement = aCachedStatement.Borrow(); | ||||
| 7321 | |||||
| 7322 | QM_TRY_UNWRAP(const DebugOnly<bool> hasResult,auto tryResult956 = (::mozilla::ToResultInvokeMember( (&* borrowedStatement), &::mozilla::detail::DerefedType<decltype (&*borrowedStatement)>::ExecuteStep )); if ((__builtin_expect (!!(tryResult956.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep )" , tryResult956.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7323, mozilla::dom::quota::Severity::Error); return tryResult956 .propagateErr(); } const DebugOnly<bool> hasResult = tryResult956 .unwrap(); | ||||
| 7323 | MOZ_TO_RESULT_INVOKE_MEMBER(&*borrowedStatement, ExecuteStep))auto tryResult956 = (::mozilla::ToResultInvokeMember( (&* borrowedStatement), &::mozilla::detail::DerefedType<decltype (&*borrowedStatement)>::ExecuteStep )); if ((__builtin_expect (!!(tryResult956.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (&*borrowedStatement), &::mozilla::detail::DerefedType<decltype(&*borrowedStatement)>::ExecuteStep )" , tryResult956.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7323, mozilla::dom::quota::Severity::Error); return tryResult956 .propagateErr(); } const DebugOnly<bool> hasResult = tryResult956 .unwrap();; | ||||
| 7324 | |||||
| 7325 | 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" , 7325); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasResult" ")" ); do { MOZ_CrashSequence(__null, 7325); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7326 | |||||
| 7327 | QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult957 = (::mozilla::ToResultInvokeMember( (*borrowedStatement ), &::mozilla::detail::DerefedType<decltype(*borrowedStatement )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult957. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32 , 0)" , tryResult957.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7328, mozilla::dom::quota::Severity::Error); return tryResult957 .propagateErr(); } const int32_t& freelistCount = tryResult957 .inspect(); | ||||
| 7328 | MOZ_TO_RESULT_INVOKE_MEMBER(*borrowedStatement, GetInt32, 0))auto tryResult957 = (::mozilla::ToResultInvokeMember( (*borrowedStatement ), &::mozilla::detail::DerefedType<decltype(*borrowedStatement )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult957. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*borrowedStatement), &::mozilla::detail::DerefedType<decltype(*borrowedStatement)>::GetInt32 , 0)" , tryResult957.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7328, mozilla::dom::quota::Severity::Error); return tryResult957 .propagateErr(); } const int32_t& freelistCount = tryResult957 .inspect();; | ||||
| 7329 | |||||
| 7330 | 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", 7330) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "freelistCount >= 0" ")"); do { MOZ_CrashSequence(__null, 7330); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7331 | |||||
| 7332 | return uint32_t(freelistCount); | ||||
| 7333 | } | ||||
| 7334 | |||||
| 7335 | void DatabaseConnection::Close() { | ||||
| 7336 | AssertIsOnConnectionThread(); | ||||
| 7337 | 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", 7337) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGSavepointCount" ")"); do { MOZ_CrashSequence(__null, 7337); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7338 | 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", 7338) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!mInWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 7338); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7339 | |||||
| 7340 | AUTO_PROFILER_LABEL("DatabaseConnection::Close", DOM)mozilla::AutoProfilerLabel raiiObject7340( "DatabaseConnection::Close" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7341 | |||||
| 7342 | if (mUpdateRefcountFunction) { | ||||
| 7343 | 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", 7344) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" ")"); do { MOZ_CrashSequence(__null, 7344); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 7344 | 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", 7344) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(MutableStorageConnection().RemoveFunction(\"update_refcount\"_ns))" ")"); do { MOZ_CrashSequence(__null, 7344); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 7345 | mUpdateRefcountFunction = nullptr; | ||||
| 7346 | } | ||||
| 7347 | |||||
| 7348 | CachingDatabaseConnection::Close(); | ||||
| 7349 | |||||
| 7350 | mFileManager.destroy(); | ||||
| 7351 | } | ||||
| 7352 | |||||
| 7353 | nsresult DatabaseConnection::DisableQuotaChecks() { | ||||
| 7354 | AssertIsOnConnectionThread(); | ||||
| 7355 | 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", 7355) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7355); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7356 | |||||
| 7357 | if (!mQuotaObject) { | ||||
| 7358 | 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", 7358) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7358); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7359 | |||||
| 7360 | QM_TRY(MOZ_TO_RESULT(MutableStorageConnection().GetQuotaObjects({auto tryResult958 = (ToResult(MutableStorageConnection().GetQuotaObjects ( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject )))); static_assert(std::is_empty_v<typename decltype(tryResult958 )::ok_type>); if ((__builtin_expect(!!(tryResult958.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))" , tryResult958.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7361, mozilla::dom::quota::Severity::Error); return tryResult958 .propagateErr(); }} | ||||
| 7361 | getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))){auto tryResult958 = (ToResult(MutableStorageConnection().GetQuotaObjects ( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject )))); static_assert(std::is_empty_v<typename decltype(tryResult958 )::ok_type>); if ((__builtin_expect(!!(tryResult958.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(MutableStorageConnection().GetQuotaObjects( getter_AddRefs(mQuotaObject), getter_AddRefs(mJournalQuotaObject)))" , tryResult958.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7361, mozilla::dom::quota::Severity::Error); return tryResult958 .propagateErr(); }}; | ||||
| 7362 | |||||
| 7363 | 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" , 7363); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7363); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7364 | 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", 7364) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7364); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7365 | } | ||||
| 7366 | |||||
| 7367 | mQuotaObject->DisableQuotaCheck(); | ||||
| 7368 | mJournalQuotaObject->DisableQuotaCheck(); | ||||
| 7369 | |||||
| 7370 | return NS_OK; | ||||
| 7371 | } | ||||
| 7372 | |||||
| 7373 | void DatabaseConnection::EnableQuotaChecks() { | ||||
| 7374 | AssertIsOnConnectionThread(); | ||||
| 7375 | if (!mQuotaObject) { | ||||
| 7376 | 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", 7376) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mJournalQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7376); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7377 | |||||
| 7378 | // DisableQuotaChecks failed earlier, so we don't need to enable quota | ||||
| 7379 | // checks again. | ||||
| 7380 | return; | ||||
| 7381 | } | ||||
| 7382 | |||||
| 7383 | 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", 7383) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mJournalQuotaObject" ")"); do { MOZ_CrashSequence(__null, 7383); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7384 | |||||
| 7385 | const RefPtr<QuotaObject> quotaObject = std::move(mQuotaObject); | ||||
| 7386 | const RefPtr<QuotaObject> journalQuotaObject = std::move(mJournalQuotaObject); | ||||
| 7387 | |||||
| 7388 | quotaObject->EnableQuotaCheck(); | ||||
| 7389 | journalQuotaObject->EnableQuotaCheck(); | ||||
| 7390 | |||||
| 7391 | QM_TRY_INSPECT(const int64_t& fileSize, GetFileSize(quotaObject->Path()),auto tryResult959 = (GetFileSize(quotaObject->Path())); if ((__builtin_expect(!!(tryResult959.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult959.unwrapErr(); mozilla::dom ::quota::HandleError("GetFileSize(quotaObject->Path())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7392, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; } const int64_t& fileSize = tryResult959.inspect(); | ||||
| 7392 | QM_VOID)auto tryResult959 = (GetFileSize(quotaObject->Path())); if ((__builtin_expect(!!(tryResult959.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult959.unwrapErr(); mozilla::dom ::quota::HandleError("GetFileSize(quotaObject->Path())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7392, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return ; } const int64_t& fileSize = tryResult959.inspect();; | ||||
| 7393 | QM_TRY_INSPECT(const int64_t& journalFileSize,auto tryResult960 = (GetFileSize(journalQuotaObject->Path( ))); if ((__builtin_expect(!!(tryResult960.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult960.unwrapErr(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7394, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const int64_t& journalFileSize = tryResult960.inspect(); | ||||
| 7394 | GetFileSize(journalQuotaObject->Path()), QM_VOID)auto tryResult960 = (GetFileSize(journalQuotaObject->Path( ))); if ((__builtin_expect(!!(tryResult960.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult960.unwrapErr(); mozilla::dom::quota::HandleError("GetFileSize(journalQuotaObject->Path())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7394, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } const int64_t& journalFileSize = tryResult960.inspect();; | ||||
| 7395 | |||||
| 7396 | DebugOnly<bool> result = journalQuotaObject->MaybeUpdateSize( | ||||
| 7397 | journalFileSize, /* aTruncate */ true); | ||||
| 7398 | 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" , 7398); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")" ); do { MOZ_CrashSequence(__null, 7398); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7399 | |||||
| 7400 | result = quotaObject->MaybeUpdateSize(fileSize, /* aTruncate */ true); | ||||
| 7401 | 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" , 7401); AnnotateMozCrashReason("MOZ_ASSERT" "(" "result" ")" ); do { MOZ_CrashSequence(__null, 7401); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7402 | } | ||||
| 7403 | |||||
| 7404 | Result<int64_t, nsresult> DatabaseConnection::GetFileSize( | ||||
| 7405 | const nsAString& aPath) { | ||||
| 7406 | 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", 7406) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aPath.IsEmpty()" ")" ); do { MOZ_CrashSequence(__null, 7406); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7407 | |||||
| 7408 | QM_TRY_INSPECT(const auto& file, QM_NewLocalFile(aPath))auto tryResult961 = (QM_NewLocalFile(aPath)); if ((__builtin_expect (!!(tryResult961.isErr()), 0))) { mozilla::dom::quota::HandleError ("QM_NewLocalFile(aPath)", tryResult961.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7408, mozilla::dom::quota::Severity::Error); return tryResult961 .propagateErr(); } const auto& file = tryResult961.inspect ();; | ||||
| 7409 | QM_TRY_INSPECT(const bool& exists, MOZ_TO_RESULT_INVOKE_MEMBER(file, Exists))auto tryResult962 = (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists )); if ((__builtin_expect(!!(tryResult962.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::Exists )" , tryResult962.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7409, mozilla::dom::quota::Severity::Error); return tryResult962 .propagateErr(); } const bool& exists = tryResult962.inspect ();; | ||||
| 7410 | |||||
| 7411 | if (exists) { | ||||
| 7412 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize)){auto tryResult963 = (::mozilla::ToResultInvokeMember( (file) , &::mozilla::detail::DerefedType<decltype(file)>:: GetFileSize )); if ((__builtin_expect(!!(tryResult963.isErr() ), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )" , tryResult963.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7412, mozilla::dom::quota::Severity::Error); } return tryResult963 ;}; | ||||
| 7413 | } | ||||
| 7414 | |||||
| 7415 | return 0; | ||||
| 7416 | } | ||||
| 7417 | |||||
| 7418 | DatabaseConnection::AutoSavepoint::AutoSavepoint() | ||||
| 7419 | : mConnection(nullptr) | ||||
| 7420 | #ifdef DEBUG1 | ||||
| 7421 | , | ||||
| 7422 | mDEBUGTransaction(nullptr) | ||||
| 7423 | #endif | ||||
| 7424 | { | ||||
| 7425 | 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); | ||||
| 7426 | } | ||||
| 7427 | |||||
| 7428 | DatabaseConnection::AutoSavepoint::~AutoSavepoint() { | ||||
| 7429 | 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); | ||||
| 7430 | |||||
| 7431 | if (mConnection) { | ||||
| 7432 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7433 | 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", 7433) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction" ")"); do { MOZ_CrashSequence(__null, 7433); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7434 | 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", 7438) ; 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, 7438); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7435 | 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", 7438) ; 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, 7438); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7436 | 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", 7438) ; 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, 7438); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7437 | 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", 7438) ; 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, 7438); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7438 | 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", 7438) ; 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, 7438); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7439 | |||||
| 7440 | QM_WARNONLY_TRY(QM_TO_RESULT(mConnection->RollbackSavepoint())){auto tryResult964 = (ToResult<QMResult>(mConnection-> RollbackSavepoint())); static_assert(std::is_empty_v<typename decltype(tryResult964)::ok_type>); if ((__builtin_expect( !!(tryResult964.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(mConnection->RollbackSavepoint())" , tryResult964.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7440, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7441 | } | ||||
| 7442 | } | ||||
| 7443 | |||||
| 7444 | nsresult DatabaseConnection::AutoSavepoint::Start( | ||||
| 7445 | const TransactionBase& aTransaction) { | ||||
| 7446 | 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", 7449) ; 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, 7449); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7447 | 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", 7449) ; 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, 7449); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7448 | 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", 7449) ; 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, 7449); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7449 | 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", 7449) ; 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, 7449); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7450 | |||||
| 7451 | DatabaseConnection* connection = aTransaction.GetDatabase().GetConnection(); | ||||
| 7452 | 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" , 7452); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { MOZ_CrashSequence(__null, 7452); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7453 | connection->AssertIsOnConnectionThread(); | ||||
| 7454 | |||||
| 7455 | // The previous operation failed to begin a write transaction and the | ||||
| 7456 | // following opertion jumped to the connection thread before the previous | ||||
| 7457 | // operation has updated its failure to the transaction. | ||||
| 7458 | if (!connection->GetUpdateRefcountFunction()) { | ||||
| 7459 | NS_WARNING(NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation " "failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7461) | ||||
| 7460 | "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" , 7461) | ||||
| 7461 | "failed!")NS_DebugBreak(NS_DEBUG_WARNING, "The connection was closed because the previous operation " "failed!", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7461); | ||||
| 7462 | return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | ||||
| 7463 | } | ||||
| 7464 | |||||
| 7465 | 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" , 7465); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection" ")"); do { MOZ_CrashSequence(__null, 7465); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7466 | 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", 7466) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDEBUGTransaction" ")"); do { MOZ_CrashSequence(__null, 7466); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7467 | |||||
| 7468 | QM_TRY(MOZ_TO_RESULT(connection->StartSavepoint())){auto tryResult965 = (ToResult(connection->StartSavepoint( ))); static_assert(std::is_empty_v<typename decltype(tryResult965 )::ok_type>); if ((__builtin_expect(!!(tryResult965.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->StartSavepoint())" , tryResult965.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7468, mozilla::dom::quota::Severity::Error); return tryResult965 .propagateErr(); }}; | ||||
| 7469 | |||||
| 7470 | mConnection = connection; | ||||
| 7471 | #ifdef DEBUG1 | ||||
| 7472 | mDEBUGTransaction = &aTransaction; | ||||
| 7473 | #endif | ||||
| 7474 | |||||
| 7475 | return NS_OK; | ||||
| 7476 | } | ||||
| 7477 | |||||
| 7478 | nsresult DatabaseConnection::AutoSavepoint::Commit() { | ||||
| 7479 | 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" , 7479); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7479); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7480 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7481 | 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", 7481) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDEBUGTransaction" ")"); do { MOZ_CrashSequence(__null, 7481); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7482 | |||||
| 7483 | QM_TRY(MOZ_TO_RESULT(mConnection->ReleaseSavepoint())){auto tryResult966 = (ToResult(mConnection->ReleaseSavepoint ())); static_assert(std::is_empty_v<typename decltype(tryResult966 )::ok_type>); if ((__builtin_expect(!!(tryResult966.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(mConnection->ReleaseSavepoint())" , tryResult966.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7483, mozilla::dom::quota::Severity::Error); return tryResult966 .propagateErr(); }}; | ||||
| 7484 | |||||
| 7485 | mConnection = nullptr; | ||||
| 7486 | #ifdef DEBUG1 | ||||
| 7487 | mDEBUGTransaction = nullptr; | ||||
| 7488 | #endif | ||||
| 7489 | |||||
| 7490 | return NS_OK; | ||||
| 7491 | } | ||||
| 7492 | |||||
| 7493 | DatabaseConnection::UpdateRefcountFunction::UpdateRefcountFunction( | ||||
| 7494 | DatabaseConnection* const aConnection, DatabaseFileManager& aFileManager) | ||||
| 7495 | : mConnection(aConnection), | ||||
| 7496 | mFileManager(aFileManager), | ||||
| 7497 | mInSavepoint(false) { | ||||
| 7498 | 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" , 7498); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 7498); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7499 | aConnection->AssertIsOnConnectionThread(); | ||||
| 7500 | } | ||||
| 7501 | |||||
| 7502 | nsresult DatabaseConnection::UpdateRefcountFunction::WillCommit() { | ||||
| 7503 | 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" , 7503); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7503); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7504 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7505 | 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", 7505) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection->HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 7505); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7506 | |||||
| 7507 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::WillCommit",mozilla::AutoProfilerLabel raiiObject7508( "DatabaseConnection::UpdateRefcountFunction::WillCommit" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7508 | DOM)mozilla::AutoProfilerLabel raiiObject7508( "DatabaseConnection::UpdateRefcountFunction::WillCommit" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7509 | |||||
| 7510 | // The parameter names are not used, parameters are bound by index | ||||
| 7511 | // only locally in the same function. | ||||
| 7512 | auto update = | ||||
| 7513 | [updateStatement = LazyStatement{*mConnection, | ||||
| 7514 | "UPDATE file " | ||||
| 7515 | "SET refcount = refcount + :delta " | ||||
| 7516 | "WHERE id = :id"_ns}, | ||||
| 7517 | selectStatement = LazyStatement{*mConnection, | ||||
| 7518 | "SELECT id " | ||||
| 7519 | "FROM file " | ||||
| 7520 | "WHERE id = :id"_ns}, | ||||
| 7521 | insertStatement = | ||||
| 7522 | LazyStatement{ | ||||
| 7523 | *mConnection, | ||||
| 7524 | "INSERT INTO file (id, refcount) VALUES(:id, :delta)"_ns}, | ||||
| 7525 | this](int64_t aId, int32_t aDelta) mutable -> Result<Ok, nsresult> { | ||||
| 7526 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7527( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7527 | "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update", DOM)mozilla::AutoProfilerLabel raiiObject7527( "DatabaseConnection::UpdateRefcountFunction::WillCommit::Update" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7528 | { | ||||
| 7529 | QM_TRY_INSPECT(const auto& borrowedUpdateStatement,auto tryResult967 = (updateStatement.Borrow()); if ((__builtin_expect (!!(tryResult967.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateStatement.Borrow()", tryResult967.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7530, mozilla::dom::quota::Severity::Error); return tryResult967 .propagateErr(); } const auto& borrowedUpdateStatement = tryResult967 .inspect(); | ||||
| 7530 | updateStatement.Borrow())auto tryResult967 = (updateStatement.Borrow()); if ((__builtin_expect (!!(tryResult967.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateStatement.Borrow()", tryResult967.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7530, mozilla::dom::quota::Severity::Error); return tryResult967 .propagateErr(); } const auto& borrowedUpdateStatement = tryResult967 .inspect();; | ||||
| 7531 | |||||
| 7532 | QM_TRY({auto tryResult968 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex (0, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult968)::ok_type>); if ((__builtin_expect(!!(tryResult968 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))" , tryResult968.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7533, mozilla::dom::quota::Severity::Error); return tryResult968 .propagateErr(); }} | ||||
| 7533 | MOZ_TO_RESULT(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))){auto tryResult968 = (ToResult(borrowedUpdateStatement->BindInt32ByIndex (0, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult968)::ok_type>); if ((__builtin_expect(!!(tryResult968 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt32ByIndex(0, aDelta))" , tryResult968.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7533, mozilla::dom::quota::Severity::Error); return tryResult968 .propagateErr(); }}; | ||||
| 7534 | QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->BindInt64ByIndex(1, aId))){auto tryResult969 = (ToResult(borrowedUpdateStatement->BindInt64ByIndex (1, aId))); static_assert(std::is_empty_v<typename decltype (tryResult969)::ok_type>); if ((__builtin_expect(!!(tryResult969 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->BindInt64ByIndex(1, aId))" , tryResult969.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7534, mozilla::dom::quota::Severity::Error); return tryResult969 .propagateErr(); }}; | ||||
| 7535 | QM_TRY(MOZ_TO_RESULT(borrowedUpdateStatement->Execute())){auto tryResult970 = (ToResult(borrowedUpdateStatement->Execute ())); static_assert(std::is_empty_v<typename decltype(tryResult970 )::ok_type>); if ((__builtin_expect(!!(tryResult970.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedUpdateStatement->Execute())" , tryResult970.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7535, mozilla::dom::quota::Severity::Error); return tryResult970 .propagateErr(); }}; | ||||
| 7536 | } | ||||
| 7537 | |||||
| 7538 | QM_TRY_INSPECT(auto tryResult971 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows )); if ((__builtin_expect(!!(tryResult971.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )" , tryResult971.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7541, mozilla::dom::quota::Severity::Error); return tryResult971 .propagateErr(); } const int32_t& rows = tryResult971.inspect (); | ||||
| 7539 | const int32_t& rows,auto tryResult971 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows )); if ((__builtin_expect(!!(tryResult971.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )" , tryResult971.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7541, mozilla::dom::quota::Severity::Error); return tryResult971 .propagateErr(); } const int32_t& rows = tryResult971.inspect (); | ||||
| 7540 | MOZ_TO_RESULT_INVOKE_MEMBER(mConnection->MutableStorageConnection(),auto tryResult971 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows )); if ((__builtin_expect(!!(tryResult971.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )" , tryResult971.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7541, mozilla::dom::quota::Severity::Error); return tryResult971 .propagateErr(); } const int32_t& rows = tryResult971.inspect (); | ||||
| 7541 | GetAffectedRows))auto tryResult971 = (::mozilla::ToResultInvokeMember( (mConnection ->MutableStorageConnection()), &::mozilla::detail::DerefedType <decltype(mConnection->MutableStorageConnection())>:: GetAffectedRows )); if ((__builtin_expect(!!(tryResult971.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (mConnection->MutableStorageConnection()), &::mozilla::detail::DerefedType<decltype(mConnection->MutableStorageConnection())>::GetAffectedRows )" , tryResult971.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7541, mozilla::dom::quota::Severity::Error); return tryResult971 .propagateErr(); } const int32_t& rows = tryResult971.inspect ();; | ||||
| 7542 | |||||
| 7543 | if (rows > 0) { | ||||
| 7544 | QM_TRY_INSPECT(auto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect (); | ||||
| 7545 | const bool& hasResult,auto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect (); | ||||
| 7546 | selectStatementauto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect (); | ||||
| 7547 | .BorrowAndExecuteSingleStep(auto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect (); | ||||
| 7548 | [aId](auto& stmt) -> Result<Ok, nsresult> {auto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect (); | ||||
| 7549 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, aId)));auto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect (); | ||||
| 7550 | return Ok{};auto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect (); | ||||
| 7551 | })auto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect (); | ||||
| 7552 | .map(IsSome))auto tryResult973 = (selectStatement .BorrowAndExecuteSingleStep ( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert (std::is_empty_v<typename decltype(tryResult972)::ok_type> ); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, aId))" , tryResult972.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7549, mozilla::dom::quota::Severity::Error); return tryResult972 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult973.isErr()), 0))) { mozilla::dom::quota::HandleError ("selectStatement .BorrowAndExecuteSingleStep( [aId](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult972 = (ToResult(stmt.BindInt64ByIndex(0, aId))); static_assert(std::is_empty_v<typename decltype(tryResult972)::ok_type>); if ((__builtin_expect(!!(tryResult972.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, aId))\", tryResult972.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7549, mozilla::dom::quota::Severity::Error); return tryResult972.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult973.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7552, mozilla::dom::quota::Severity::Error); return tryResult973 .propagateErr(); } const bool& hasResult = tryResult973.inspect ();; | ||||
| 7553 | |||||
| 7554 | if (!hasResult) { | ||||
| 7555 | // Don't have to create the journal here, we can create all at once, | ||||
| 7556 | // just before commit | ||||
| 7557 | mJournalsToCreateBeforeCommit.AppendElement(aId); | ||||
| 7558 | } | ||||
| 7559 | |||||
| 7560 | return Ok{}; | ||||
| 7561 | } | ||||
| 7562 | |||||
| 7563 | QM_TRY_INSPECT(const auto& borrowedInsertStatement,auto tryResult974 = (insertStatement.Borrow()); if ((__builtin_expect (!!(tryResult974.isErr()), 0))) { mozilla::dom::quota::HandleError ("insertStatement.Borrow()", tryResult974.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7564, mozilla::dom::quota::Severity::Error); return tryResult974 .propagateErr(); } const auto& borrowedInsertStatement = tryResult974 .inspect(); | ||||
| 7564 | insertStatement.Borrow())auto tryResult974 = (insertStatement.Borrow()); if ((__builtin_expect (!!(tryResult974.isErr()), 0))) { mozilla::dom::quota::HandleError ("insertStatement.Borrow()", tryResult974.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7564, mozilla::dom::quota::Severity::Error); return tryResult974 .propagateErr(); } const auto& borrowedInsertStatement = tryResult974 .inspect();; | ||||
| 7565 | |||||
| 7566 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt64ByIndex(0, aId))){auto tryResult975 = (ToResult(borrowedInsertStatement->BindInt64ByIndex (0, aId))); static_assert(std::is_empty_v<typename decltype (tryResult975)::ok_type>); if ((__builtin_expect(!!(tryResult975 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt64ByIndex(0, aId))" , tryResult975.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7566, mozilla::dom::quota::Severity::Error); return tryResult975 .propagateErr(); }}; | ||||
| 7567 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))){auto tryResult976 = (ToResult(borrowedInsertStatement->BindInt32ByIndex (1, aDelta))); static_assert(std::is_empty_v<typename decltype (tryResult976)::ok_type>); if ((__builtin_expect(!!(tryResult976 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->BindInt32ByIndex(1, aDelta))" , tryResult976.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7567, mozilla::dom::quota::Severity::Error); return tryResult976 .propagateErr(); }}; | ||||
| 7568 | QM_TRY(MOZ_TO_RESULT(borrowedInsertStatement->Execute())){auto tryResult977 = (ToResult(borrowedInsertStatement->Execute ())); static_assert(std::is_empty_v<typename decltype(tryResult977 )::ok_type>); if ((__builtin_expect(!!(tryResult977.isErr( )), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedInsertStatement->Execute())" , tryResult977.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7568, mozilla::dom::quota::Severity::Error); return tryResult977 .propagateErr(); }}; | ||||
| 7569 | |||||
| 7570 | mJournalsToRemoveAfterCommit.AppendElement(aId); | ||||
| 7571 | |||||
| 7572 | return Ok{}; | ||||
| 7573 | }; | ||||
| 7574 | |||||
| 7575 | QM_TRY(CollectEachInRange({auto tryResult979 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult978)::ok_type> ); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult978 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7579, mozilla::dom::quota::Severity::Error); return tryResult978 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult979)::ok_type>); if ((__builtin_expect (!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult978.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7579, mozilla::dom::quota::Severity::Error); return tryResult978.propagateErr(); }}; } return Ok{}; })" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7583, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }} | ||||
| 7576 | mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> {{auto tryResult979 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult978)::ok_type> ); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult978 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7579, mozilla::dom::quota::Severity::Error); return tryResult978 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult979)::ok_type>); if ((__builtin_expect (!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult978.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7579, mozilla::dom::quota::Severity::Error); return tryResult978.propagateErr(); }}; } return Ok{}; })" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7583, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }} | ||||
| 7577 | const auto delta = entry.GetData()->Delta();{auto tryResult979 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult978)::ok_type> ); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult978 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7579, mozilla::dom::quota::Severity::Error); return tryResult978 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult979)::ok_type>); if ((__builtin_expect (!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult978.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7579, mozilla::dom::quota::Severity::Error); return tryResult978.propagateErr(); }}; } return Ok{}; })" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7583, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }} | ||||
| 7578 | if (delta) {{auto tryResult979 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult978)::ok_type> ); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult978 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7579, mozilla::dom::quota::Severity::Error); return tryResult978 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult979)::ok_type>); if ((__builtin_expect (!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult978.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7579, mozilla::dom::quota::Severity::Error); return tryResult978.propagateErr(); }}; } return Ok{}; })" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7583, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }} | ||||
| 7579 | QM_TRY(update(entry.GetKey(), delta));{auto tryResult979 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult978)::ok_type> ); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult978 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7579, mozilla::dom::quota::Severity::Error); return tryResult978 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult979)::ok_type>); if ((__builtin_expect (!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult978.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7579, mozilla::dom::quota::Severity::Error); return tryResult978.propagateErr(); }}; } return Ok{}; })" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7583, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }} | ||||
| 7580 | }{auto tryResult979 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult978)::ok_type> ); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult978 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7579, mozilla::dom::quota::Severity::Error); return tryResult978 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult979)::ok_type>); if ((__builtin_expect (!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult978.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7579, mozilla::dom::quota::Severity::Error); return tryResult978.propagateErr(); }}; } return Ok{}; })" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7583, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }} | ||||
| 7581 | |||||
| 7582 | return Ok{};{auto tryResult979 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult978)::ok_type> ); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult978 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7579, mozilla::dom::quota::Severity::Error); return tryResult978 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult979)::ok_type>); if ((__builtin_expect (!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult978.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7579, mozilla::dom::quota::Severity::Error); return tryResult978.propagateErr(); }}; } return Ok{}; })" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7583, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }} | ||||
| 7583 | })){auto tryResult979 = (CollectEachInRange( mFileInfoEntries, [ &update](const auto& entry) -> Result<Ok, nsresult > { const auto delta = entry.GetData()->Delta(); if (delta ) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert (std::is_empty_v<typename decltype(tryResult978)::ok_type> ); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla ::dom::quota::HandleError("update(entry.GetKey(), delta)", tryResult978 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7579, mozilla::dom::quota::Severity::Error); return tryResult978 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult979)::ok_type>); if ((__builtin_expect (!!(tryResult979.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachInRange( mFileInfoEntries, [&update](const auto& entry) -> Result<Ok, nsresult> { const auto delta = entry.GetData()->Delta(); if (delta) { {auto tryResult978 = (update(entry.GetKey(), delta)); static_assert(std::is_empty_v<typename decltype(tryResult978)::ok_type>); if ((__builtin_expect(!!(tryResult978.isErr()), 0))) { mozilla::dom::quota::HandleError(\"update(entry.GetKey(), delta)\", tryResult978.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 7579, mozilla::dom::quota::Severity::Error); return tryResult978.propagateErr(); }}; } return Ok{}; })" , tryResult979.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7583, mozilla::dom::quota::Severity::Error); return tryResult979 .propagateErr(); }}; | ||||
| 7584 | |||||
| 7585 | QM_TRY(MOZ_TO_RESULT(CreateJournals())){auto tryResult980 = (ToResult(CreateJournals())); static_assert (std::is_empty_v<typename decltype(tryResult980)::ok_type> ); if ((__builtin_expect(!!(tryResult980.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(CreateJournals())", tryResult980 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7585, mozilla::dom::quota::Severity::Error); return tryResult980 .propagateErr(); }}; | ||||
| 7586 | |||||
| 7587 | return NS_OK; | ||||
| 7588 | } | ||||
| 7589 | |||||
| 7590 | void DatabaseConnection::UpdateRefcountFunction::DidCommit() { | ||||
| 7591 | 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" , 7591); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7591); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7592 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7593 | |||||
| 7594 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidCommit",mozilla::AutoProfilerLabel raiiObject7595( "DatabaseConnection::UpdateRefcountFunction::DidCommit" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7595 | DOM)mozilla::AutoProfilerLabel raiiObject7595( "DatabaseConnection::UpdateRefcountFunction::DidCommit" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7596 | |||||
| 7597 | for (const auto& entry : mFileInfoEntries.Values()) { | ||||
| 7598 | entry->MaybeUpdateDBRefs(); | ||||
| 7599 | } | ||||
| 7600 | |||||
| 7601 | QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterCommit))){auto tryResult981 = (ToResult<QMResult>(RemoveJournals (mJournalsToRemoveAfterCommit))); static_assert(std::is_empty_v <typename decltype(tryResult981)::ok_type>); if ((__builtin_expect (!!(tryResult981.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterCommit))" , tryResult981.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7601, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7602 | } | ||||
| 7603 | |||||
| 7604 | void DatabaseConnection::UpdateRefcountFunction::DidAbort() { | ||||
| 7605 | 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" , 7605); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7605); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7606 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7607 | |||||
| 7608 | AUTO_PROFILER_LABEL("DatabaseConnection::UpdateRefcountFunction::DidAbort",mozilla::AutoProfilerLabel raiiObject7609( "DatabaseConnection::UpdateRefcountFunction::DidAbort" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7609 | DOM)mozilla::AutoProfilerLabel raiiObject7609( "DatabaseConnection::UpdateRefcountFunction::DidAbort" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7610 | |||||
| 7611 | QM_WARNONLY_TRY(QM_TO_RESULT(RemoveJournals(mJournalsToRemoveAfterAbort))){auto tryResult982 = (ToResult<QMResult>(RemoveJournals (mJournalsToRemoveAfterAbort))); static_assert(std::is_empty_v <typename decltype(tryResult982)::ok_type>); if ((__builtin_expect (!!(tryResult982.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult<QMResult>(RemoveJournals(mJournalsToRemoveAfterAbort))" , tryResult982.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7611, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7612 | } | ||||
| 7613 | |||||
| 7614 | void DatabaseConnection::UpdateRefcountFunction::StartSavepoint() { | ||||
| 7615 | 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" , 7615); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7615); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7616 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7617 | 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", 7617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")") ; do { MOZ_CrashSequence(__null, 7617); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7618 | 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" , 7618); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mSavepointEntriesIndex.Count()" ")"); do { MOZ_CrashSequence(__null, 7618); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7619 | |||||
| 7620 | mInSavepoint = true; | ||||
| 7621 | } | ||||
| 7622 | |||||
| 7623 | void DatabaseConnection::UpdateRefcountFunction::ReleaseSavepoint() { | ||||
| 7624 | MOZ_ASSERT(mConnection)do { static_assert( mozilla::detail::AssertionConditionType< decltype(mConnection)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(mConnection))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("mConnection", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7624); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7624); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7625 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7626 | 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" , 7626); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint" ")"); do { MOZ_CrashSequence(__null, 7626); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7627 | |||||
| 7628 | // The savepoint is being committed. The deltas it contributed are now | ||||
| 7629 | // permanent in mDelta, so reset mSavepointDelta on each entry before | ||||
| 7630 | // dropping the index. The FileInfoEntry objects themselves persist in | ||||
| 7631 | // mFileInfoEntries across savepoints; without this reset, a stale | ||||
| 7632 | // mSavepointDelta would be carried into the next savepoint. | ||||
| 7633 | for (const auto& entry : mSavepointEntriesIndex.Values()) { | ||||
| 7634 | entry->ResetSavepointDelta(); | ||||
| 7635 | } | ||||
| 7636 | |||||
| 7637 | mSavepointEntriesIndex.Clear(); | ||||
| 7638 | mInSavepoint = false; | ||||
| 7639 | } | ||||
| 7640 | |||||
| 7641 | void DatabaseConnection::UpdateRefcountFunction::RollbackSavepoint() { | ||||
| 7642 | 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" , 7642); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7642); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7643 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7644 | 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", 7644) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 7644); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7645 | 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" , 7645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInSavepoint" ")"); do { MOZ_CrashSequence(__null, 7645); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7646 | |||||
| 7647 | for (const auto& entry : mSavepointEntriesIndex.Values()) { | ||||
| 7648 | entry->DecBySavepointDelta(); | ||||
| 7649 | entry->ResetSavepointDelta(); | ||||
| 7650 | } | ||||
| 7651 | |||||
| 7652 | mInSavepoint = false; | ||||
| 7653 | mSavepointEntriesIndex.Clear(); | ||||
| 7654 | } | ||||
| 7655 | |||||
| 7656 | void DatabaseConnection::UpdateRefcountFunction::Reset() { | ||||
| 7657 | 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" , 7657); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7657); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7658 | mConnection->AssertIsOnConnectionThread(); | ||||
| 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 | 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", 7660); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInSavepoint" ")") ; do { MOZ_CrashSequence(__null, 7660); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7661 | |||||
| 7662 | mJournalsToCreateBeforeCommit.Clear(); | ||||
| 7663 | mJournalsToRemoveAfterCommit.Clear(); | ||||
| 7664 | mJournalsToRemoveAfterAbort.Clear(); | ||||
| 7665 | |||||
| 7666 | // DatabaseFileInfo implementation automatically removes unreferenced files, | ||||
| 7667 | // but it's done asynchronously and with a delay. We want to remove them (and | ||||
| 7668 | // decrease quota usage) before we fire the commit event. | ||||
| 7669 | for (const auto& entry : mFileInfoEntries.Values()) { | ||||
| 7670 | // We need to move mFileInfo into a raw pointer in order to release it | ||||
| 7671 | // explicitly with aSyncDeleteFile == true. | ||||
| 7672 | DatabaseFileInfo* const fileInfo = entry->ReleaseFileInfo().forget().take(); | ||||
| 7673 | 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" , 7673); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileInfo" ")" ); do { MOZ_CrashSequence(__null, 7673); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7674 | |||||
| 7675 | fileInfo->Release(/* aSyncDeleteFile */ true); | ||||
| 7676 | } | ||||
| 7677 | |||||
| 7678 | mFileInfoEntries.Clear(); | ||||
| 7679 | } | ||||
| 7680 | |||||
| 7681 | nsresult DatabaseConnection::UpdateRefcountFunction::ProcessValue( | ||||
| 7682 | mozIStorageValueArray* aValues, int32_t aIndex, UpdateType aUpdateType) { | ||||
| 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(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" , 7685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { MOZ_CrashSequence(__null, 7685); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7686 | |||||
| 7687 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7688( "DatabaseConnection::UpdateRefcountFunction::ProcessValue" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7688 | "DatabaseConnection::UpdateRefcountFunction::ProcessValue", DOM)mozilla::AutoProfilerLabel raiiObject7688( "DatabaseConnection::UpdateRefcountFunction::ProcessValue" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7689 | |||||
| 7690 | QM_TRY_INSPECT(const int32_t& type,auto tryResult983 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , aIndex)); if ((__builtin_expect(!!(tryResult983 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , aIndex)" , tryResult983.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7691, mozilla::dom::quota::Severity::Error); return tryResult983 .propagateErr(); } const int32_t& type = tryResult983.inspect (); | ||||
| 7691 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, aIndex))auto tryResult983 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , aIndex)); if ((__builtin_expect(!!(tryResult983 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , aIndex)" , tryResult983.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7691, mozilla::dom::quota::Severity::Error); return tryResult983 .propagateErr(); } const int32_t& type = tryResult983.inspect ();; | ||||
| 7692 | |||||
| 7693 | if (type == mozIStorageValueArray::VALUE_TYPE_NULL) { | ||||
| 7694 | return NS_OK; | ||||
| 7695 | } | ||||
| 7696 | |||||
| 7697 | QM_TRY_INSPECT(const auto& ids, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult984 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect (!!(tryResult984.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)" , tryResult984.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7698, mozilla::dom::quota::Severity::Error); return tryResult984 .propagateErr(); } const auto& ids = tryResult984.inspect (); | ||||
| 7698 | nsString, aValues, GetString, aIndex))auto tryResult984 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aValues)>::GetString), (aValues), aIndex)); if ((__builtin_expect (!!(tryResult984.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aValues)>::GetString), (aValues), aIndex)" , tryResult984.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7698, mozilla::dom::quota::Severity::Error); return tryResult984 .propagateErr(); } const auto& ids = tryResult984.inspect ();; | ||||
| 7699 | |||||
| 7700 | QM_TRY_INSPECT(const auto& files,auto tryResult985 = (DeserializeStructuredCloneFiles(mFileManager , ids)); if ((__builtin_expect(!!(tryResult985.isErr()), 0))) { mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)" , tryResult985.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7701, mozilla::dom::quota::Severity::Error); return tryResult985 .propagateErr(); } const auto& files = tryResult985.inspect (); | ||||
| 7701 | DeserializeStructuredCloneFiles(mFileManager, ids))auto tryResult985 = (DeserializeStructuredCloneFiles(mFileManager , ids)); if ((__builtin_expect(!!(tryResult985.isErr()), 0))) { mozilla::dom::quota::HandleError("DeserializeStructuredCloneFiles(mFileManager, ids)" , tryResult985.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7701, mozilla::dom::quota::Severity::Error); return tryResult985 .propagateErr(); } const auto& files = tryResult985.inspect ();; | ||||
| 7702 | |||||
| 7703 | for (const StructuredCloneFileParent& file : files) { | ||||
| 7704 | const int64_t id = file.FileInfo().Id(); | ||||
| 7705 | 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" , 7705); AnnotateMozCrashReason("MOZ_ASSERT" "(" "id > 0" ")" ); do { MOZ_CrashSequence(__null, 7705); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7706 | |||||
| 7707 | const auto entry = | ||||
| 7708 | WrapNotNull(mFileInfoEntries.GetOrInsertNew(id, file.FileInfoPtr())); | ||||
| 7709 | |||||
| 7710 | if (mInSavepoint) { | ||||
| 7711 | mSavepointEntriesIndex.InsertOrUpdate(id, entry); | ||||
| 7712 | } | ||||
| 7713 | |||||
| 7714 | switch (aUpdateType) { | ||||
| 7715 | case UpdateType::Increment: | ||||
| 7716 | entry->IncDeltas(mInSavepoint); | ||||
| 7717 | break; | ||||
| 7718 | case UpdateType::Decrement: | ||||
| 7719 | entry->DecDeltas(mInSavepoint); | ||||
| 7720 | break; | ||||
| 7721 | default: | ||||
| 7722 | MOZ_CRASH("Unknown update type!")do { do { } while (false); MOZ_ReportCrash("" "Unknown update type!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 7722) ; AnnotateMozCrashReason("MOZ_CRASH(" "Unknown update type!" ")" ); do { MOZ_CrashSequence(__null, 7722); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 7723 | } | ||||
| 7724 | } | ||||
| 7725 | |||||
| 7726 | return NS_OK; | ||||
| 7727 | } | ||||
| 7728 | |||||
| 7729 | nsresult DatabaseConnection::UpdateRefcountFunction::CreateJournals() { | ||||
| 7730 | 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" , 7730); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7730); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7731 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7732 | |||||
| 7733 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7734( "DatabaseConnection::UpdateRefcountFunction::CreateJournals" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7734 | "DatabaseConnection::UpdateRefcountFunction::CreateJournals", DOM)mozilla::AutoProfilerLabel raiiObject7734( "DatabaseConnection::UpdateRefcountFunction::CreateJournals" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7735 | |||||
| 7736 | const nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory(); | ||||
| 7737 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult986 = (OkIf(journalDirectory)); static_assert( std::is_empty_v<typename decltype(tryResult986)::ok_type> ); if ((__builtin_expect(!!(tryResult986.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult986.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(journalDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7737, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 7738 | |||||
| 7739 | for (const int64_t id : mJournalsToCreateBeforeCommit) { | ||||
| 7740 | const nsCOMPtr<nsIFile> file = | ||||
| 7741 | DatabaseFileManager::GetFileForId(journalDirectory, id); | ||||
| 7742 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult987 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult987)::ok_type>); if ((__builtin_expect (!!(tryResult987.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult987.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7742, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 7743 | |||||
| 7744 | QM_TRY(MOZ_TO_RESULT(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult988 = (ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE , 0644))); static_assert(std::is_empty_v<typename decltype (tryResult988)::ok_type>); if ((__builtin_expect(!!(tryResult988 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Create(nsIFile::NORMAL_FILE_TYPE, 0644))" , tryResult988.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7744, mozilla::dom::quota::Severity::Error); return tryResult988 .propagateErr(); }}; | ||||
| 7745 | |||||
| 7746 | mJournalsToRemoveAfterAbort.AppendElement(id); | ||||
| 7747 | } | ||||
| 7748 | |||||
| 7749 | return NS_OK; | ||||
| 7750 | } | ||||
| 7751 | |||||
| 7752 | nsresult DatabaseConnection::UpdateRefcountFunction::RemoveJournals( | ||||
| 7753 | const nsTArray<int64_t>& aJournals) { | ||||
| 7754 | 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" , 7754); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 7754); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7755 | mConnection->AssertIsOnConnectionThread(); | ||||
| 7756 | |||||
| 7757 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7758( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7758 | "DatabaseConnection::UpdateRefcountFunction::RemoveJournals", DOM)mozilla::AutoProfilerLabel raiiObject7758( "DatabaseConnection::UpdateRefcountFunction::RemoveJournals" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7759 | |||||
| 7760 | nsCOMPtr<nsIFile> journalDirectory = mFileManager.GetJournalDirectory(); | ||||
| 7761 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult989 = (OkIf(journalDirectory)); static_assert( std::is_empty_v<typename decltype(tryResult989)::ok_type> ); if ((__builtin_expect(!!(tryResult989.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult989.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(journalDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7761, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 7762 | |||||
| 7763 | for (const auto& journal : aJournals) { | ||||
| 7764 | nsCOMPtr<nsIFile> file = | ||||
| 7765 | DatabaseFileManager::GetFileForId(journalDirectory, journal); | ||||
| 7766 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult990 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult990)::ok_type>); if ((__builtin_expect (!!(tryResult990.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult990.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7766, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 7767 | |||||
| 7768 | QM_WARNONLY_TRY(QM_TO_RESULT(file->Remove(false))){auto tryResult991 = (ToResult<QMResult>(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult991)::ok_type>); if ((__builtin_expect(!!(tryResult991 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult<QMResult>(file->Remove(false))" , tryResult991.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7768, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 7769 | } | ||||
| 7770 | |||||
| 7771 | return NS_OK; | ||||
| 7772 | } | ||||
| 7773 | |||||
| 7774 | 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" , 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 7775 ); __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" , 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 7775); __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" , 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 7775 ); __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" , 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 7775); __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", 7775) ; 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; } | ||||
| 7775 | 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" , 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 7775 ); __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" , 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 7775); __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" , 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 7775 ); __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" , 7775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DatabaseConnection::UpdateRefcountFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 7775); __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", 7775) ; 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; } | ||||
| 7776 | |||||
| 7777 | NS_IMETHODIMPnsresult | ||||
| 7778 | DatabaseConnection::UpdateRefcountFunction::OnFunctionCall( | ||||
| 7779 | mozIStorageValueArray* aValues, nsIVariant** _retval) { | ||||
| 7780 | 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" , 7780); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { MOZ_CrashSequence(__null, 7780); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7781 | 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" , 7781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")" ); do { MOZ_CrashSequence(__null, 7781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7782 | |||||
| 7783 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject7784( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 7784 | "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject7784( "DatabaseConnection::UpdateRefcountFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7785 | |||||
| 7786 | #ifdef DEBUG1 | ||||
| 7787 | { | ||||
| 7788 | QM_TRY_INSPECT(const uint32_t& numEntries,auto tryResult992 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries )); if ((__builtin_expect(!!(tryResult992.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult992 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7790, 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" , 7790); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7790); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult992.inspect(); | ||||
| 7789 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetNumEntries),auto tryResult992 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries )); if ((__builtin_expect(!!(tryResult992.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult992 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7790, 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" , 7790); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7790); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult992.inspect(); | ||||
| 7790 | QM_ASSERT_UNREACHABLE)auto tryResult992 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetNumEntries )); if ((__builtin_expect(!!(tryResult992.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult992 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetNumEntries )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7790, 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" , 7790); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7790); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const uint32_t & numEntries = tryResult992.inspect();; | ||||
| 7791 | |||||
| 7792 | 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", 7792) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "numEntries == 2" ")" ); do { MOZ_CrashSequence(__null, 7792); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7793 | |||||
| 7794 | QM_TRY_INSPECT(const int32_t& type1,auto tryResult993 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult993 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult993 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7796, 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" , 7796); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7796); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult993.inspect(); | ||||
| 7795 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 0),auto tryResult993 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult993 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult993 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7796, 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" , 7796); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7796); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult993.inspect(); | ||||
| 7796 | QM_ASSERT_UNREACHABLE)auto tryResult993 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 0)); if ((__builtin_expect(!!(tryResult993 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult993 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7796, 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" , 7796); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7796); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type1 = tryResult993.inspect();; | ||||
| 7797 | |||||
| 7798 | QM_TRY_INSPECT(const int32_t& type2,auto tryResult994 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult994 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult994 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7800, 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" , 7800); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7800); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult994.inspect(); | ||||
| 7799 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1),auto tryResult994 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult994 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult994 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7800, 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" , 7800); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7800); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult994.inspect(); | ||||
| 7800 | QM_ASSERT_UNREACHABLE)auto tryResult994 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult994 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult994 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7800, 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" , 7800); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 7800); __attribute__((nomerge )) ::abort(); } while (false); } while (false); }); } const int32_t & type2 = tryResult994.inspect();; | ||||
| 7801 | |||||
| 7802 | 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", 7803) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" ")"); do { MOZ_CrashSequence(__null, 7803); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 7803 | 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", 7803) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(type1 == mozIStorageValueArray::VALUE_TYPE_NULL && type2 == mozIStorageValueArray::VALUE_TYPE_NULL)" ")"); do { MOZ_CrashSequence(__null, 7803); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7804 | } | ||||
| 7805 | #endif | ||||
| 7806 | |||||
| 7807 | QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 0, UpdateType::Decrement))){auto tryResult995 = (ToResult(ProcessValue(aValues, 0, UpdateType ::Decrement))); static_assert(std::is_empty_v<typename decltype (tryResult995)::ok_type>); if ((__builtin_expect(!!(tryResult995 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 0, UpdateType::Decrement))" , tryResult995.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7807, mozilla::dom::quota::Severity::Error); return tryResult995 .propagateErr(); }}; | ||||
| 7808 | |||||
| 7809 | QM_TRY(MOZ_TO_RESULT(ProcessValue(aValues, 1, UpdateType::Increment))){auto tryResult996 = (ToResult(ProcessValue(aValues, 1, UpdateType ::Increment))); static_assert(std::is_empty_v<typename decltype (tryResult996)::ok_type>); if ((__builtin_expect(!!(tryResult996 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(ProcessValue(aValues, 1, UpdateType::Increment))" , tryResult996.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7809, mozilla::dom::quota::Severity::Error); return tryResult996 .propagateErr(); }}; | ||||
| 7810 | |||||
| 7811 | return NS_OK; | ||||
| 7812 | } | ||||
| 7813 | |||||
| 7814 | /******************************************************************************* | ||||
| 7815 | * ConnectionPool implementation | ||||
| 7816 | ******************************************************************************/ | ||||
| 7817 | |||||
| 7818 | ConnectionPool::ConnectionPool() | ||||
| 7819 | : mDatabasesMutex("ConnectionPool::mDatabasesMutex"), | ||||
| 7820 | mIOTarget(MakeConnectionIOTarget()), | ||||
| 7821 | mIdleTimer(NS_NewTimer()), | ||||
| 7822 | mNextTransactionId(0) { | ||||
| 7823 | AssertIsOnOwningThread(); | ||||
| 7824 | AssertIsOnBackgroundThread(); | ||||
| 7825 | 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" , 7825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { MOZ_CrashSequence(__null, 7825); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7826 | } | ||||
| 7827 | |||||
| 7828 | ConnectionPool::~ConnectionPool() { | ||||
| 7829 | AssertIsOnOwningThread(); | ||||
| 7830 | 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", 7830) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 7830); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7831 | 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" , 7831); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleTimer" ")"); do { MOZ_CrashSequence(__null, 7831); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7832 | 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", 7832) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 7832); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7833 | 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", 7833) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()" ")"); do { MOZ_CrashSequence(__null, 7833); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7834 | 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", 7834) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 7834); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7835 | 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" , 7835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedTransactions.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 7835); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7836 | 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" , 7836); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 7836); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7837 | 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", 7837) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { MOZ_CrashSequence(__null, 7837); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7838 | 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", 7838) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete" ")"); do { MOZ_CrashSequence(__null, 7838); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7839 | } | ||||
| 7840 | |||||
| 7841 | // static | ||||
| 7842 | void ConnectionPool::IdleTimerCallback(nsITimer* aTimer, void* aClosure) { | ||||
| 7843 | 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" , 7843); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aTimer" ")" ); do { MOZ_CrashSequence(__null, 7843); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7844 | 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" , 7844); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aClosure" ")" ); do { MOZ_CrashSequence(__null, 7844); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7845 | |||||
| 7846 | AUTO_PROFILER_LABEL("ConnectionPool::IdleTimerCallback", DOM)mozilla::AutoProfilerLabel raiiObject7846( "ConnectionPool::IdleTimerCallback" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7847 | |||||
| 7848 | auto& self = *static_cast<ConnectionPool*>(aClosure); | ||||
| 7849 | 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", 7849) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "self.mIdleTimer" ")" ); do { MOZ_CrashSequence(__null, 7849); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7850 | 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", 7850) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "SameCOMIdentity(self.mIdleTimer, aTimer)" ")"); do { MOZ_CrashSequence(__null, 7850); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7851 | 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" , 7851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!self.mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 7851); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7852 | |||||
| 7853 | self.mTargetIdleTime = TimeStamp(); | ||||
| 7854 | |||||
| 7855 | // Cheat a little. | ||||
| 7856 | const TimeStamp now = | ||||
| 7857 | TimeStamp::NowLoRes() + TimeDuration::FromMilliseconds(500); | ||||
| 7858 | |||||
| 7859 | // XXX Move this to ArrayAlgorithm.h? | ||||
| 7860 | const auto removeUntil = [](auto& array, auto&& cond) { | ||||
| 7861 | const auto begin = array.begin(), end = array.end(); | ||||
| 7862 | array.RemoveElementsRange( | ||||
| 7863 | begin, std::find_if(begin, end, std::forward<decltype(cond)>(cond))); | ||||
| 7864 | }; | ||||
| 7865 | |||||
| 7866 | removeUntil(self.mIdleDatabases, [now, &self](const auto& info) { | ||||
| 7867 | if (now >= info.mIdleTime) { | ||||
| 7868 | if ((*info.mDatabaseInfo)->mIdle) { | ||||
| 7869 | self.PerformIdleDatabaseMaintenance(*info.mDatabaseInfo.ref()); | ||||
| 7870 | } else { | ||||
| 7871 | self.CloseDatabase(*info.mDatabaseInfo.ref()); | ||||
| 7872 | } | ||||
| 7873 | |||||
| 7874 | return false; | ||||
| 7875 | } | ||||
| 7876 | |||||
| 7877 | return true; | ||||
| 7878 | }); | ||||
| 7879 | |||||
| 7880 | self.AdjustIdleTimer(); | ||||
| 7881 | } | ||||
| 7882 | |||||
| 7883 | Result<RefPtr<DatabaseConnection>, nsresult> | ||||
| 7884 | ConnectionPool::GetOrCreateConnection(const Database& aDatabase) { | ||||
| 7885 | 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", 7885) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 7885); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7886 | 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", 7886) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 7886); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7887 | |||||
| 7888 | AUTO_PROFILER_LABEL("ConnectionPool::GetOrCreateConnection", DOM)mozilla::AutoProfilerLabel raiiObject7888( "ConnectionPool::GetOrCreateConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7889 | |||||
| 7890 | DatabaseInfo* dbInfo; | ||||
| 7891 | { | ||||
| 7892 | MutexAutoLock lock(mDatabasesMutex); | ||||
| 7893 | |||||
| 7894 | dbInfo = mDatabases.Get(aDatabase.Id()); | ||||
| 7895 | } | ||||
| 7896 | |||||
| 7897 | 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" , 7897); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo" ")" ); do { MOZ_CrashSequence(__null, 7897); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7898 | |||||
| 7899 | if (dbInfo->mConnection) { | ||||
| 7900 | dbInfo->AssertIsOnConnectionThread(); | ||||
| 7901 | |||||
| 7902 | return dbInfo->mConnection; | ||||
| 7903 | } | ||||
| 7904 | |||||
| 7905 | 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", 7905) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo->mDEBUGConnectionEventTarget" ")"); do { MOZ_CrashSequence(__null, 7905); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7906 | |||||
| 7907 | QM_TRY_UNWRAP(auto tryResult997 = (GetStorageConnection(aDatabase.FilePath( ), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult997.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7910, mozilla::dom::quota::Severity::Error); return tryResult997 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult997.unwrap(); | ||||
| 7908 | MovingNotNull<nsCOMPtr<mozIStorageConnection>> storageConnection,auto tryResult997 = (GetStorageConnection(aDatabase.FilePath( ), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult997.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7910, mozilla::dom::quota::Severity::Error); return tryResult997 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult997.unwrap(); | ||||
| 7909 | GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(),auto tryResult997 = (GetStorageConnection(aDatabase.FilePath( ), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult997.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7910, mozilla::dom::quota::Severity::Error); return tryResult997 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult997.unwrap(); | ||||
| 7910 | aDatabase.TelemetryId(), aDatabase.MaybeKeyRef()))auto tryResult997 = (GetStorageConnection(aDatabase.FilePath( ), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase .MaybeKeyRef())); if ((__builtin_expect(!!(tryResult997.isErr ()), 0))) { mozilla::dom::quota::HandleError("GetStorageConnection(aDatabase.FilePath(), aDatabase.DirectoryLockId(), aDatabase.TelemetryId(), aDatabase.MaybeKeyRef())" , tryResult997.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7910, mozilla::dom::quota::Severity::Error); return tryResult997 .propagateErr(); } MovingNotNull<nsCOMPtr<mozIStorageConnection >> storageConnection = tryResult997.unwrap();; | ||||
| 7911 | |||||
| 7912 | RefPtr<DatabaseConnection> connection = new DatabaseConnection( | ||||
| 7913 | std::move(storageConnection), aDatabase.GetFileManagerPtr()); | ||||
| 7914 | |||||
| 7915 | QM_TRY(MOZ_TO_RESULT(connection->Init())){auto tryResult998 = (ToResult(connection->Init())); static_assert (std::is_empty_v<typename decltype(tryResult998)::ok_type> ); if ((__builtin_expect(!!(tryResult998.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(connection->Init())", tryResult998 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 7915, mozilla::dom::quota::Severity::Error); return tryResult998 .propagateErr(); }}; | ||||
| 7916 | |||||
| 7917 | dbInfo->mConnection = connection; | ||||
| 7918 | |||||
| 7919 | IDB_DEBUG_LOG(("ConnectionPool created connection 0x%p for '%s'", | ||||
| 7920 | dbInfo->mConnection.get(), | ||||
| 7921 | NS_ConvertUTF16toUTF8(aDatabase.FilePath()).get())); | ||||
| 7922 | |||||
| 7923 | #ifdef DEBUG1 | ||||
| 7924 | dbInfo->mDEBUGConnectionEventTarget = GetCurrentSerialEventTarget(); | ||||
| 7925 | #endif | ||||
| 7926 | |||||
| 7927 | return connection; | ||||
| 7928 | } | ||||
| 7929 | |||||
| 7930 | uint64_t ConnectionPool::Start( | ||||
| 7931 | const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId, | ||||
| 7932 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | ||||
| 7933 | bool aIsWriteTransaction, | ||||
| 7934 | TransactionDatabaseOperationBase* aTransactionOp) { | ||||
| 7935 | AssertIsOnOwningThread(); | ||||
| 7936 | 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", 7936) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 7936); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7937 | 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", 7937) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mNextTransactionId < (18446744073709551615UL)" ")"); do { MOZ_CrashSequence(__null, 7937); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7938 | 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", 7938) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownRequested" ")"); do { MOZ_CrashSequence(__null, 7938); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7939 | |||||
| 7940 | AUTO_PROFILER_LABEL("ConnectionPool::Start", DOM)mozilla::AutoProfilerLabel raiiObject7940( "ConnectionPool::Start" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 7941 | |||||
| 7942 | const uint64_t transactionId = ++mNextTransactionId; | ||||
| 7943 | |||||
| 7944 | // To avoid always acquiring a lock, we don't use WithEntryHandle here, which | ||||
| 7945 | // would require a lock in any case. | ||||
| 7946 | DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId); | ||||
| 7947 | |||||
| 7948 | const bool databaseInfoIsNew = !dbInfo; | ||||
| 7949 | |||||
| 7950 | if (databaseInfoIsNew) { | ||||
| 7951 | MutexAutoLock lock(mDatabasesMutex); | ||||
| 7952 | |||||
| 7953 | dbInfo = mDatabases | ||||
| 7954 | .InsertOrUpdate(aDatabaseId, | ||||
| 7955 | MakeUnique<DatabaseInfo>(this, aDatabaseId)) | ||||
| 7956 | .get(); | ||||
| 7957 | } | ||||
| 7958 | |||||
| 7959 | 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", 7959) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(transactionId)" ")"); do { MOZ_CrashSequence(__null, 7959); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7960 | auto& transactionInfo = *mTransactions.InsertOrUpdate( | ||||
| 7961 | transactionId, MakeUnique<TransactionInfo>( | ||||
| 7962 | *dbInfo, aBackgroundChildLoggingId, aDatabaseId, | ||||
| 7963 | transactionId, aLoggingSerialNumber, aObjectStoreNames, | ||||
| 7964 | aIsWriteTransaction, aTransactionOp)); | ||||
| 7965 | |||||
| 7966 | if (aIsWriteTransaction) { | ||||
| 7967 | 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" , 7967); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mWriteTransactionCount < (4294967295U)" ")"); do { MOZ_CrashSequence(__null, 7967); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7968 | dbInfo->mWriteTransactionCount++; | ||||
| 7969 | } else { | ||||
| 7970 | 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", 7970) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo->mReadTransactionCount < (4294967295U)" ")"); do { MOZ_CrashSequence(__null, 7970); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 7971 | dbInfo->mReadTransactionCount++; | ||||
| 7972 | } | ||||
| 7973 | |||||
| 7974 | auto& blockingTransactions = dbInfo->mBlockingTransactions; | ||||
| 7975 | |||||
| 7976 | for (const nsAString& objectStoreName : aObjectStoreNames) { | ||||
| 7977 | TransactionInfoPair* blockInfo = | ||||
| 7978 | blockingTransactions.GetOrInsertNew(objectStoreName); | ||||
| 7979 | |||||
| 7980 | // Mark what we are blocking on. | ||||
| 7981 | if (const auto maybeBlockingRead = blockInfo->mLastBlockingReads) { | ||||
| 7982 | transactionInfo.mBlockedOn.Insert(&maybeBlockingRead.ref()); | ||||
| 7983 | maybeBlockingRead->AddBlockingTransaction(transactionInfo); | ||||
| 7984 | } | ||||
| 7985 | |||||
| 7986 | if (aIsWriteTransaction) { | ||||
| 7987 | for (const auto blockingWrite : blockInfo->mLastBlockingWrites) { | ||||
| 7988 | transactionInfo.mBlockedOn.Insert(blockingWrite); | ||||
| 7989 | blockingWrite->AddBlockingTransaction(transactionInfo); | ||||
| 7990 | } | ||||
| 7991 | |||||
| 7992 | blockInfo->mLastBlockingReads = SomeRef(transactionInfo); | ||||
| 7993 | blockInfo->mLastBlockingWrites.Clear(); | ||||
| 7994 | } else { | ||||
| 7995 | blockInfo->mLastBlockingWrites.AppendElement( | ||||
| 7996 | WrapNotNullUnchecked(&transactionInfo)); | ||||
| 7997 | } | ||||
| 7998 | } | ||||
| 7999 | |||||
| 8000 | if (!transactionInfo.mBlockedOn.Count()) { | ||||
| 8001 | (void)ScheduleTransaction(transactionInfo, | ||||
| 8002 | /* aFromQueuedTransactions */ false); | ||||
| 8003 | } | ||||
| 8004 | |||||
| 8005 | if (!databaseInfoIsNew && | ||||
| 8006 | (mIdleDatabases.RemoveElement(dbInfo) || | ||||
| 8007 | mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo))) { | ||||
| 8008 | AdjustIdleTimer(); | ||||
| 8009 | } | ||||
| 8010 | |||||
| 8011 | return transactionId; | ||||
| 8012 | } | ||||
| 8013 | |||||
| 8014 | void ConnectionPool::StartOp(uint64_t aTransactionId, | ||||
| 8015 | nsCOMPtr<nsIRunnable> aRunnable) { | ||||
| 8016 | AssertIsOnOwningThread(); | ||||
| 8017 | |||||
| 8018 | AUTO_PROFILER_LABEL("ConnectionPool::StartOp", DOM)mozilla::AutoProfilerLabel raiiObject8018( "ConnectionPool::StartOp" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8019 | |||||
| 8020 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | ||||
| 8021 | 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", 8021) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")" ); do { MOZ_CrashSequence(__null, 8021); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8022 | |||||
| 8023 | transactionInfo->StartOp(std::move(aRunnable)); | ||||
| 8024 | } | ||||
| 8025 | |||||
| 8026 | void ConnectionPool::FinishOp(uint64_t aTransactionId) { | ||||
| 8027 | AssertIsOnOwningThread(); | ||||
| 8028 | |||||
| 8029 | AUTO_PROFILER_LABEL("ConnectionPool::FinishOp", DOM)mozilla::AutoProfilerLabel raiiObject8029( "ConnectionPool::FinishOp" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8030 | |||||
| 8031 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | ||||
| 8032 | 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", 8032) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")" ); do { MOZ_CrashSequence(__null, 8032); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8033 | |||||
| 8034 | transactionInfo->FinishOp(); | ||||
| 8035 | } | ||||
| 8036 | |||||
| 8037 | void ConnectionPool::Finish(uint64_t aTransactionId, | ||||
| 8038 | FinishCallback* aCallback) { | ||||
| 8039 | AssertIsOnOwningThread(); | ||||
| 8040 | |||||
| 8041 | #ifdef DEBUG1 | ||||
| 8042 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | ||||
| 8043 | 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", 8043) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")" ); do { MOZ_CrashSequence(__null, 8043); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8044 | 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" , 8044); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!transactionInfo->mFinished" ")"); do { MOZ_CrashSequence(__null, 8044); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8045 | #endif | ||||
| 8046 | |||||
| 8047 | AUTO_PROFILER_LABEL("ConnectionPool::Finish", DOM)mozilla::AutoProfilerLabel raiiObject8047( "ConnectionPool::Finish" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8048 | |||||
| 8049 | nsCOMPtr<nsIRunnable> wrapper = | ||||
| 8050 | new FinishCallbackWrapper(this, aTransactionId, aCallback); | ||||
| 8051 | |||||
| 8052 | StartOp(aTransactionId, std::move(wrapper)); | ||||
| 8053 | |||||
| 8054 | #ifdef DEBUG1 | ||||
| 8055 | transactionInfo->mFinished.Flip(); | ||||
| 8056 | #endif | ||||
| 8057 | } | ||||
| 8058 | |||||
| 8059 | void ConnectionPool::WaitForDatabaseToComplete(const nsCString& aDatabaseId, | ||||
| 8060 | nsIRunnable* aCallback) { | ||||
| 8061 | AssertIsOnOwningThread(); | ||||
| 8062 | 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", 8062) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8062); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8063 | 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" , 8063); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 8063); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8064 | |||||
| 8065 | AUTO_PROFILER_LABEL("ConnectionPool::WaitForDatabaseToComplete", DOM)mozilla::AutoProfilerLabel raiiObject8065( "ConnectionPool::WaitForDatabaseToComplete" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8066 | |||||
| 8067 | if (!CloseDatabaseWhenIdleInternal(aDatabaseId)) { | ||||
| 8068 | (void)aCallback->Run(); | ||||
| 8069 | return; | ||||
| 8070 | } | ||||
| 8071 | |||||
| 8072 | mCompleteCallbacks.EmplaceBack( | ||||
| 8073 | MakeUnique<DatabaseCompleteCallback>(aDatabaseId, aCallback)); | ||||
| 8074 | } | ||||
| 8075 | |||||
| 8076 | void ConnectionPool::Shutdown() { | ||||
| 8077 | AssertIsOnOwningThread(); | ||||
| 8078 | 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", 8078) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete" ")"); do { MOZ_CrashSequence(__null, 8078); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8079 | |||||
| 8080 | AUTO_PROFILER_LABEL("ConnectionPool::Shutdown", DOM)mozilla::AutoProfilerLabel raiiObject8080( "ConnectionPool::Shutdown" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8081 | |||||
| 8082 | mShutdownRequested.Flip(); | ||||
| 8083 | |||||
| 8084 | CancelIdleTimer(); | ||||
| 8085 | 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", 8085) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8085); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8086 | |||||
| 8087 | mIdleTimer = nullptr; | ||||
| 8088 | |||||
| 8089 | CloseIdleDatabases(); | ||||
| 8090 | |||||
| 8091 | if (!mDatabases.Count()) { | ||||
| 8092 | 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", 8092) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 8092); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8093 | |||||
| 8094 | Cleanup(); | ||||
| 8095 | |||||
| 8096 | 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", 8096) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownComplete" ")"); do { MOZ_CrashSequence(__null, 8096); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8097 | |||||
| 8098 | mIOTarget->Shutdown(); | ||||
| 8099 | |||||
| 8100 | return; | ||||
| 8101 | } | ||||
| 8102 | |||||
| 8103 | 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", 8105) ; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { MOZ_CrashSequence(__null, 8105); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8104 | 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", 8105) ; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { MOZ_CrashSequence(__null, 8105); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8105 | }))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", 8105) ; AnnotateMozCrashReason("MOZ_CRASH(" "SpinEventLoopUntil(\"ConnectionPool::Shutdown\"_ns, [&]() { return static_cast<bool>(mShutdownComplete); })" ")"); do { MOZ_CrashSequence(__null, 8105); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8106 | |||||
| 8107 | mIOTarget->Shutdown(); | ||||
| 8108 | } | ||||
| 8109 | |||||
| 8110 | void ConnectionPool::Cleanup() { | ||||
| 8111 | AssertIsOnOwningThread(); | ||||
| 8112 | 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", 8112) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { MOZ_CrashSequence(__null, 8112); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8113 | 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", 8113) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mShutdownComplete" ")"); do { MOZ_CrashSequence(__null, 8113); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8114 | 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", 8114) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabases.Count()" ")"); do { MOZ_CrashSequence(__null, 8114); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8115 | 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", 8115) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 8115); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8116 | |||||
| 8117 | AUTO_PROFILER_LABEL("ConnectionPool::Cleanup", DOM)mozilla::AutoProfilerLabel raiiObject8117( "ConnectionPool::Cleanup" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8118 | |||||
| 8119 | if (!mCompleteCallbacks.IsEmpty()) { | ||||
| 8120 | // Run all callbacks manually now. | ||||
| 8121 | |||||
| 8122 | { | ||||
| 8123 | auto completeCallbacks = std::move(mCompleteCallbacks); | ||||
| 8124 | for (const auto& completeCallback : completeCallbacks) { | ||||
| 8125 | 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", 8125) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback" ")" ); do { MOZ_CrashSequence(__null, 8125); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8126 | 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" , 8126); AnnotateMozCrashReason("MOZ_ASSERT" "(" "completeCallback->mCallback" ")"); do { MOZ_CrashSequence(__null, 8126); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8127 | |||||
| 8128 | (void)completeCallback->mCallback->Run(); | ||||
| 8129 | } | ||||
| 8130 | |||||
| 8131 | // We expect no new callbacks being completed by running the existing | ||||
| 8132 | // ones. | ||||
| 8133 | 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" , 8133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCompleteCallbacks.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8133); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8134 | } | ||||
| 8135 | |||||
| 8136 | // And make sure they get processed. | ||||
| 8137 | nsIThread* currentThread = NS_GetCurrentThread(); | ||||
| 8138 | 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", 8138); AnnotateMozCrashReason("MOZ_ASSERT" "(" "currentThread" ")") ; do { MOZ_CrashSequence(__null, 8138); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8139 | |||||
| 8140 | 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", 8140) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_ProcessPendingEvents(currentThread))" ")"); do { MOZ_CrashSequence(__null, 8140); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8141 | } | ||||
| 8142 | |||||
| 8143 | mShutdownComplete.Flip(); | ||||
| 8144 | } | ||||
| 8145 | |||||
| 8146 | void ConnectionPool::AdjustIdleTimer() { | ||||
| 8147 | AssertIsOnOwningThread(); | ||||
| 8148 | 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" , 8148); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { MOZ_CrashSequence(__null, 8148); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8149 | |||||
| 8150 | AUTO_PROFILER_LABEL("ConnectionPool::AdjustIdleTimer", DOM)mozilla::AutoProfilerLabel raiiObject8150( "ConnectionPool::AdjustIdleTimer" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8151 | |||||
| 8152 | // Figure out the next time at which we should release idle resources. This | ||||
| 8153 | // includes both databases and threads. | ||||
| 8154 | TimeStamp newTargetIdleTime; | ||||
| 8155 | 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", 8155) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "newTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8155); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8156 | |||||
| 8157 | if (!mIdleDatabases.IsEmpty()) { | ||||
| 8158 | newTargetIdleTime = mIdleDatabases[0].mIdleTime; | ||||
| 8159 | } | ||||
| 8160 | |||||
| 8161 | 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" , 8161); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8161); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 8162 | |||||
| 8163 | // Cancel the timer if it was running and the new target time is different. | ||||
| 8164 | if (!mTargetIdleTime.IsNull() && | ||||
| 8165 | (newTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) { | ||||
| 8166 | CancelIdleTimer(); | ||||
| 8167 | |||||
| 8168 | 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", 8168) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8168); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8169 | } | ||||
| 8170 | |||||
| 8171 | // Schedule the timer if we have a target time different than before. | ||||
| 8172 | if (!newTargetIdleTime.IsNull() && | ||||
| 8173 | (mTargetIdleTime.IsNull() || mTargetIdleTime != newTargetIdleTime)) { | ||||
| 8174 | double delta = (newTargetIdleTime - TimeStamp::NowLoRes()).ToMilliseconds(); | ||||
| 8175 | |||||
| 8176 | uint32_t delay; | ||||
| 8177 | if (delta > 0) { | ||||
| 8178 | delay = uint32_t(std::min(delta, double(UINT32_MAX(4294967295U)))); | ||||
| 8179 | } else { | ||||
| 8180 | delay = 0; | ||||
| 8181 | } | ||||
| 8182 | |||||
| 8183 | 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", 8185) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" ")"); do { MOZ_CrashSequence(__null, 8185); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8184 | 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", 8185) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" ")"); do { MOZ_CrashSequence(__null, 8185); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8185 | "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", 8185) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->InitWithNamedFuncCallback( IdleTimerCallback, this, delay, nsITimer::TYPE_ONE_SHOT, \"ConnectionPool::IdleTimerCallback\"_ns))" ")"); do { MOZ_CrashSequence(__null, 8185); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8186 | |||||
| 8187 | mTargetIdleTime = newTargetIdleTime; | ||||
| 8188 | } | ||||
| 8189 | } | ||||
| 8190 | |||||
| 8191 | void ConnectionPool::CancelIdleTimer() { | ||||
| 8192 | AssertIsOnOwningThread(); | ||||
| 8193 | 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" , 8193); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleTimer" ")"); do { MOZ_CrashSequence(__null, 8193); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8194 | |||||
| 8195 | if (!mTargetIdleTime.IsNull()) { | ||||
| 8196 | 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", 8196) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mIdleTimer->Cancel())" ")"); do { MOZ_CrashSequence(__null, 8196); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8197 | |||||
| 8198 | mTargetIdleTime = TimeStamp(); | ||||
| 8199 | 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", 8199) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTargetIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8199); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8200 | } | ||||
| 8201 | } | ||||
| 8202 | |||||
| 8203 | void ConnectionPool::CloseIdleDatabases() { | ||||
| 8204 | AssertIsOnOwningThread(); | ||||
| 8205 | 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", 8205) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mShutdownRequested" ")"); do { MOZ_CrashSequence(__null, 8205); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8206 | |||||
| 8207 | AUTO_PROFILER_LABEL("ConnectionPool::CloseIdleDatabases", DOM)mozilla::AutoProfilerLabel raiiObject8207( "ConnectionPool::CloseIdleDatabases" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8208 | |||||
| 8209 | if (!mIdleDatabases.IsEmpty()) { | ||||
| 8210 | for (IdleDatabaseInfo& idleInfo : mIdleDatabases) { | ||||
| 8211 | CloseDatabase(*idleInfo.mDatabaseInfo.ref()); | ||||
| 8212 | } | ||||
| 8213 | mIdleDatabases.Clear(); | ||||
| 8214 | } | ||||
| 8215 | |||||
| 8216 | if (!mDatabasesPerformingIdleMaintenance.IsEmpty()) { | ||||
| 8217 | for (PerformingIdleMaintenanceDatabaseInfo& performingIdleMaintenanceInfo : | ||||
| 8218 | mDatabasesPerformingIdleMaintenance) { | ||||
| 8219 | CloseDatabase(*performingIdleMaintenanceInfo.mDatabaseInfo); | ||||
| 8220 | } | ||||
| 8221 | mDatabasesPerformingIdleMaintenance.Clear(); | ||||
| 8222 | } | ||||
| 8223 | } | ||||
| 8224 | |||||
| 8225 | bool ConnectionPool::ScheduleTransaction(TransactionInfo& aTransactionInfo, | ||||
| 8226 | bool aFromQueuedTransactions) { | ||||
| 8227 | AssertIsOnOwningThread(); | ||||
| 8228 | |||||
| 8229 | AUTO_PROFILER_LABEL("ConnectionPool::ScheduleTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8229( "ConnectionPool::ScheduleTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8230 | |||||
| 8231 | DatabaseInfo& dbInfo = aTransactionInfo.mDatabaseInfo; | ||||
| 8232 | |||||
| 8233 | dbInfo.mIdle = false; | ||||
| 8234 | |||||
| 8235 | if (dbInfo.mClosing) { | ||||
| 8236 | 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", 8236) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&dbInfo)" ")"); do { MOZ_CrashSequence(__null, 8236); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8237 | 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", 8238) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8238); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 8238 | !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", 8238) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mTransactionsScheduledDuringClose.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8238); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8239 | |||||
| 8240 | dbInfo.mTransactionsScheduledDuringClose.AppendElement( | ||||
| 8241 | WrapNotNullUnchecked(&aTransactionInfo)); | ||||
| 8242 | return true; | ||||
| 8243 | } | ||||
| 8244 | |||||
| 8245 | if (!dbInfo.mEventTarget) { | ||||
| 8246 | dbInfo.mEventTarget = TaskQueue::Create(do_AddRef(mIOTarget), "IndexedDB"); | ||||
| 8247 | 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", 8247) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8247); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8248 | IDB_DEBUG_LOG(("ConnectionPool created task queue IndexedDB")); | ||||
| 8249 | } | ||||
| 8250 | |||||
| 8251 | // The number of active operations equals the number of databases minus idle | ||||
| 8252 | // databases. The maximum number of database operations which can make | ||||
| 8253 | // progress at the same time is kMaxConnectionThreadCount. If we are at this | ||||
| 8254 | // limit, all idle processing is interrupted to make room for user | ||||
| 8255 | // transactions. | ||||
| 8256 | if (mDatabases.Count() >= | ||||
| 8257 | (mIdleDatabases.Length() + kMaxConnectionThreadCount) && | ||||
| 8258 | !mDatabasesPerformingIdleMaintenance.IsEmpty()) { | ||||
| 8259 | const auto& busyDbs = mDatabasesPerformingIdleMaintenance; | ||||
| 8260 | for (auto dbInfo = busyDbs.rbegin(); dbInfo != busyDbs.rend(); ++dbInfo) { | ||||
| 8261 | (*dbInfo).mIdleConnectionRunnable->Interrupt(); | ||||
| 8262 | } | ||||
| 8263 | } | ||||
| 8264 | |||||
| 8265 | if (aTransactionInfo.mIsWriteTransaction) { | ||||
| 8266 | if (dbInfo.mRunningWriteTransaction) { | ||||
| 8267 | // SQLite only allows one write transaction at a time so queue this | ||||
| 8268 | // transaction for later. | ||||
| 8269 | 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", 8270) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8270); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 8270 | !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", 8270) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mScheduledWriteTransactions.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8270); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8271 | |||||
| 8272 | dbInfo.mScheduledWriteTransactions.AppendElement( | ||||
| 8273 | WrapNotNullUnchecked(&aTransactionInfo)); | ||||
| 8274 | return true; | ||||
| 8275 | } | ||||
| 8276 | |||||
| 8277 | dbInfo.mRunningWriteTransaction = SomeRef(aTransactionInfo); | ||||
| 8278 | dbInfo.mNeedsCheckpoint = true; | ||||
| 8279 | } | ||||
| 8280 | |||||
| 8281 | aTransactionInfo.SetRunning(); | ||||
| 8282 | |||||
| 8283 | return true; | ||||
| 8284 | } | ||||
| 8285 | |||||
| 8286 | void ConnectionPool::NoteFinishedTransaction(uint64_t aTransactionId) { | ||||
| 8287 | AssertIsOnOwningThread(); | ||||
| 8288 | |||||
| 8289 | AUTO_PROFILER_LABEL("ConnectionPool::NoteFinishedTransaction", DOM)mozilla::AutoProfilerLabel raiiObject8289( "ConnectionPool::NoteFinishedTransaction" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8290 | |||||
| 8291 | auto* const transactionInfo = mTransactions.Get(aTransactionId); | ||||
| 8292 | 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", 8292) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo" ")" ); do { MOZ_CrashSequence(__null, 8292); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8293 | 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" , 8293); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mRunning" ")"); do { MOZ_CrashSequence(__null, 8293); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8294 | 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" , 8294); AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mFinished" ")"); do { MOZ_CrashSequence(__null, 8294); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8295 | |||||
| 8296 | transactionInfo->mRunning = false; | ||||
| 8297 | |||||
| 8298 | DatabaseInfo& dbInfo = transactionInfo->mDatabaseInfo; | ||||
| 8299 | 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", 8299) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabases.Get(transactionInfo->mDatabaseId) == &dbInfo" ")"); do { MOZ_CrashSequence(__null, 8299); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8300 | 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", 8300) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8300); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8301 | |||||
| 8302 | // Schedule the next write transaction if there are any queued. | ||||
| 8303 | if (dbInfo.mRunningWriteTransaction && | ||||
| 8304 | dbInfo.mRunningWriteTransaction.refEquals(*transactionInfo)) { | ||||
| 8305 | 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", 8305) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "transactionInfo->mIsWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 8305); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8306 | 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", 8306) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mNeedsCheckpoint" ")"); do { MOZ_CrashSequence(__null, 8306); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8307 | |||||
| 8308 | dbInfo.mRunningWriteTransaction = Nothing(); | ||||
| 8309 | |||||
| 8310 | if (!dbInfo.mScheduledWriteTransactions.IsEmpty()) { | ||||
| 8311 | const auto nextWriteTransaction = dbInfo.mScheduledWriteTransactions[0]; | ||||
| 8312 | |||||
| 8313 | dbInfo.mScheduledWriteTransactions.RemoveElementAt(0); | ||||
| 8314 | |||||
| 8315 | 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" , 8316); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)" ")"); do { MOZ_CrashSequence(__null, 8316); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8316 | /* 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" , 8316); AnnotateMozCrashReason("MOZ_CRASH(" "ScheduleTransaction(*nextWriteTransaction, false)" ")"); do { MOZ_CrashSequence(__null, 8316); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8317 | } | ||||
| 8318 | } | ||||
| 8319 | |||||
| 8320 | for (const auto& objectStoreName : transactionInfo->mObjectStoreNames) { | ||||
| 8321 | TransactionInfoPair* blockInfo = | ||||
| 8322 | dbInfo.mBlockingTransactions.Get(objectStoreName); | ||||
| 8323 | 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" , 8323); AnnotateMozCrashReason("MOZ_ASSERT" "(" "blockInfo" ")" ); do { MOZ_CrashSequence(__null, 8323); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8324 | |||||
| 8325 | if (transactionInfo->mIsWriteTransaction && blockInfo->mLastBlockingReads && | ||||
| 8326 | blockInfo->mLastBlockingReads.refEquals(*transactionInfo)) { | ||||
| 8327 | blockInfo->mLastBlockingReads = Nothing(); | ||||
| 8328 | } | ||||
| 8329 | |||||
| 8330 | blockInfo->mLastBlockingWrites.RemoveElement(transactionInfo); | ||||
| 8331 | } | ||||
| 8332 | |||||
| 8333 | transactionInfo->RemoveBlockingTransactions(); | ||||
| 8334 | |||||
| 8335 | if (transactionInfo->mIsWriteTransaction) { | ||||
| 8336 | 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" , 8336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mWriteTransactionCount" ")"); do { MOZ_CrashSequence(__null, 8336); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8337 | dbInfo.mWriteTransactionCount--; | ||||
| 8338 | } else { | ||||
| 8339 | 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" , 8339); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbInfo.mReadTransactionCount" ")"); do { MOZ_CrashSequence(__null, 8339); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8340 | dbInfo.mReadTransactionCount--; | ||||
| 8341 | } | ||||
| 8342 | |||||
| 8343 | mTransactions.Remove(aTransactionId); | ||||
| 8344 | |||||
| 8345 | if (!dbInfo.TotalTransactionCount()) { | ||||
| 8346 | 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", 8346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!dbInfo.mIdle" ")") ; do { MOZ_CrashSequence(__null, 8346); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8347 | dbInfo.mIdle = true; | ||||
| 8348 | |||||
| 8349 | NoteIdleDatabase(dbInfo); | ||||
| 8350 | } | ||||
| 8351 | } | ||||
| 8352 | |||||
| 8353 | void ConnectionPool::ScheduleQueuedTransactions() { | ||||
| 8354 | AssertIsOnOwningThread(); | ||||
| 8355 | 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" , 8355); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mQueuedTransactions.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8355); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8356 | |||||
| 8357 | AUTO_PROFILER_LABEL("ConnectionPool::ScheduleQueuedTransactions", DOM)mozilla::AutoProfilerLabel raiiObject8357( "ConnectionPool::ScheduleQueuedTransactions" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8358 | |||||
| 8359 | const auto foundIt = std::find_if( | ||||
| 8360 | mQueuedTransactions.begin(), mQueuedTransactions.end(), | ||||
| 8361 | [&me = *this](const auto& queuedTransaction) { | ||||
| 8362 | return !me.ScheduleTransaction(*queuedTransaction, | ||||
| 8363 | /* aFromQueuedTransactions */ true); | ||||
| 8364 | }); | ||||
| 8365 | |||||
| 8366 | mQueuedTransactions.RemoveElementsRange(mQueuedTransactions.begin(), foundIt); | ||||
| 8367 | |||||
| 8368 | AdjustIdleTimer(); | ||||
| 8369 | } | ||||
| 8370 | |||||
| 8371 | void ConnectionPool::NoteIdleDatabase(DatabaseInfo& aDatabaseInfo) { | ||||
| 8372 | AssertIsOnOwningThread(); | ||||
| 8373 | 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", 8373) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { MOZ_CrashSequence(__null, 8373); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8374 | 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", 8374) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8374); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8375 | 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", 8375) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8375); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8376 | |||||
| 8377 | AUTO_PROFILER_LABEL("ConnectionPool::NoteIdleDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8377( "ConnectionPool::NoteIdleDatabase" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8378 | |||||
| 8379 | const bool otherDatabasesWaiting = !mQueuedTransactions.IsEmpty(); | ||||
| 8380 | |||||
| 8381 | // We check mShutdownRequested because when it is true, mIdleTimer is null. | ||||
| 8382 | if (mShutdownRequested || otherDatabasesWaiting || | ||||
| 8383 | aDatabaseInfo.mCloseOnIdle) { | ||||
| 8384 | // Make sure we close the connection if we're shutting down or giving the | ||||
| 8385 | // thread to another database. | ||||
| 8386 | CloseDatabase(aDatabaseInfo); | ||||
| 8387 | |||||
| 8388 | if (otherDatabasesWaiting) { | ||||
| 8389 | ScheduleQueuedTransactions(); | ||||
| 8390 | } | ||||
| 8391 | |||||
| 8392 | return; | ||||
| 8393 | } | ||||
| 8394 | |||||
| 8395 | mIdleDatabases.InsertElementSorted(IdleDatabaseInfo{aDatabaseInfo}); | ||||
| 8396 | |||||
| 8397 | AdjustIdleTimer(); | ||||
| 8398 | } | ||||
| 8399 | |||||
| 8400 | void ConnectionPool::NoteClosedDatabase(DatabaseInfo& aDatabaseInfo) { | ||||
| 8401 | AssertIsOnOwningThread(); | ||||
| 8402 | 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", 8402) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8402); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8403 | 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", 8403) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8403); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8404 | |||||
| 8405 | AUTO_PROFILER_LABEL("ConnectionPool::NoteClosedDatabase", DOM)mozilla::AutoProfilerLabel raiiObject8405( "ConnectionPool::NoteClosedDatabase" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8406 | |||||
| 8407 | aDatabaseInfo.mClosing = false; | ||||
| 8408 | |||||
| 8409 | // Schedule any transactions that were started while we were closing the | ||||
| 8410 | // connection. | ||||
| 8411 | if (!mQueuedTransactions.IsEmpty()) { | ||||
| 8412 | ScheduleQueuedTransactions(); | ||||
| 8413 | } else if (!aDatabaseInfo.TotalTransactionCount() && !mShutdownRequested) { | ||||
| 8414 | AdjustIdleTimer(); | ||||
| 8415 | } | ||||
| 8416 | |||||
| 8417 | // Schedule any transactions that were started while we were closing the | ||||
| 8418 | // connection. | ||||
| 8419 | if (aDatabaseInfo.TotalTransactionCount()) { | ||||
| 8420 | auto& scheduledTransactions = | ||||
| 8421 | aDatabaseInfo.mTransactionsScheduledDuringClose; | ||||
| 8422 | |||||
| 8423 | 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" , 8423); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!scheduledTransactions.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8423); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8424 | |||||
| 8425 | for (const auto& scheduledTransaction : scheduledTransactions) { | ||||
| 8426 | (void)ScheduleTransaction(*scheduledTransaction, | ||||
| 8427 | /* aFromQueuedTransactions */ false); | ||||
| 8428 | } | ||||
| 8429 | |||||
| 8430 | scheduledTransactions.Clear(); | ||||
| 8431 | |||||
| 8432 | return; | ||||
| 8433 | } | ||||
| 8434 | |||||
| 8435 | // There are no more transactions and the connection has been closed. We're | ||||
| 8436 | // done with this database. | ||||
| 8437 | { | ||||
| 8438 | MutexAutoLock lock(mDatabasesMutex); | ||||
| 8439 | |||||
| 8440 | mDatabases.Remove(aDatabaseInfo.mDatabaseId); | ||||
| 8441 | } | ||||
| 8442 | |||||
| 8443 | // That just deleted |aDatabaseInfo|, we must not access that below. | ||||
| 8444 | |||||
| 8445 | // See if we need to fire any complete callbacks now that the database is | ||||
| 8446 | // finished. | ||||
| 8447 | mCompleteCallbacks.RemoveLastElements( | ||||
| 8448 | mCompleteCallbacks.end() - | ||||
| 8449 | std::remove_if(mCompleteCallbacks.begin(), mCompleteCallbacks.end(), | ||||
| 8450 | [&me = *this](const auto& completeCallback) { | ||||
| 8451 | return me.MaybeFireCallback(completeCallback.get()); | ||||
| 8452 | })); | ||||
| 8453 | |||||
| 8454 | // If that was the last database and we're supposed to be shutting down then | ||||
| 8455 | // we are finished. | ||||
| 8456 | if (mShutdownRequested && !mDatabases.Count()) { | ||||
| 8457 | 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", 8457) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 8457); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8458 | Cleanup(); | ||||
| 8459 | } | ||||
| 8460 | } | ||||
| 8461 | |||||
| 8462 | bool ConnectionPool::MaybeFireCallback(DatabaseCompleteCallback* aCallback) { | ||||
| 8463 | AssertIsOnOwningThread(); | ||||
| 8464 | 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" , 8464); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 8464); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8465 | 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" , 8465); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCallback->mDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8465); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8466 | 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", 8466) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback->mCallback" ")"); do { MOZ_CrashSequence(__null, 8466); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8467 | |||||
| 8468 | AUTO_PROFILER_LABEL("ConnectionPool::MaybeFireCallback", DOM)mozilla::AutoProfilerLabel raiiObject8468( "ConnectionPool::MaybeFireCallback" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8469 | |||||
| 8470 | if (mDatabases.Get(aCallback->mDatabaseId)) { | ||||
| 8471 | return false; | ||||
| 8472 | } | ||||
| 8473 | |||||
| 8474 | (void)aCallback->mCallback->Run(); | ||||
| 8475 | return true; | ||||
| 8476 | } | ||||
| 8477 | |||||
| 8478 | void ConnectionPool::PerformIdleDatabaseMaintenance( | ||||
| 8479 | DatabaseInfo& aDatabaseInfo) { | ||||
| 8480 | AssertIsOnOwningThread(); | ||||
| 8481 | 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", 8481) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { MOZ_CrashSequence(__null, 8481); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8482 | 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", 8482) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8482); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8483 | 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", 8483) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mIdle" ")"); do { MOZ_CrashSequence(__null, 8483); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8484 | 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", 8484) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mCloseOnIdle" ")"); do { MOZ_CrashSequence(__null, 8484); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8485 | 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", 8485) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8485); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8486 | 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", 8486) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleDatabases.Contains(&aDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8486); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8487 | 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", 8487) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabasesPerformingIdleMaintenance.Contains(&aDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8487); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8488 | |||||
| 8489 | const bool neededCheckpoint = aDatabaseInfo.mNeedsCheckpoint; | ||||
| 8490 | |||||
| 8491 | aDatabaseInfo.mNeedsCheckpoint = false; | ||||
| 8492 | aDatabaseInfo.mIdle = false; | ||||
| 8493 | |||||
| 8494 | auto idleConnectionRunnable = | ||||
| 8495 | MakeRefPtr<IdleConnectionRunnable>(aDatabaseInfo, neededCheckpoint); | ||||
| 8496 | |||||
| 8497 | mDatabasesPerformingIdleMaintenance.AppendElement( | ||||
| 8498 | PerformingIdleMaintenanceDatabaseInfo{aDatabaseInfo, | ||||
| 8499 | idleConnectionRunnable}); | ||||
| 8500 | |||||
| 8501 | 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", 8502) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8502); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8502 | 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", 8502) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.mEventTarget->Dispatch( idleConnectionRunnable.forget(), nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8502); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8503 | } | ||||
| 8504 | |||||
| 8505 | void ConnectionPool::CloseDatabase(DatabaseInfo& aDatabaseInfo) const { | ||||
| 8506 | AssertIsOnOwningThread(); | ||||
| 8507 | 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", 8507) ; AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "!aDatabaseInfo.TotalTransactionCount()" ")"); do { MOZ_CrashSequence(__null, 8507); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8508 | 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", 8508) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8508); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8509 | 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", 8509) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8509); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8510 | |||||
| 8511 | aDatabaseInfo.mIdle = false; | ||||
| 8512 | aDatabaseInfo.mNeedsCheckpoint = false; | ||||
| 8513 | aDatabaseInfo.mClosing = true; | ||||
| 8514 | |||||
| 8515 | 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", 8516) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" ")"); do { MOZ_CrashSequence(__null, 8516); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8516 | 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", 8516) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aDatabaseInfo.Dispatch( MakeAndAddRef<CloseConnectionRunnable>(aDatabaseInfo)))" ")"); do { MOZ_CrashSequence(__null, 8516); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8517 | } | ||||
| 8518 | |||||
| 8519 | bool ConnectionPool::CloseDatabaseWhenIdleInternal( | ||||
| 8520 | const nsACString& aDatabaseId) { | ||||
| 8521 | AssertIsOnOwningThread(); | ||||
| 8522 | 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", 8522) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8522); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8523 | |||||
| 8524 | AUTO_PROFILER_LABEL("ConnectionPool::CloseDatabaseWhenIdleInternal", DOM)mozilla::AutoProfilerLabel raiiObject8524( "ConnectionPool::CloseDatabaseWhenIdleInternal" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8525 | |||||
| 8526 | if (DatabaseInfo* dbInfo = mDatabases.Get(aDatabaseId)) { | ||||
| 8527 | if (mIdleDatabases.RemoveElement(dbInfo) || | ||||
| 8528 | mDatabasesPerformingIdleMaintenance.RemoveElement(dbInfo)) { | ||||
| 8529 | CloseDatabase(*dbInfo); | ||||
| 8530 | AdjustIdleTimer(); | ||||
| 8531 | } else { | ||||
| 8532 | dbInfo->mCloseOnIdle.EnsureFlipped(); | ||||
| 8533 | } | ||||
| 8534 | |||||
| 8535 | return true; | ||||
| 8536 | } | ||||
| 8537 | |||||
| 8538 | return false; | ||||
| 8539 | } | ||||
| 8540 | |||||
| 8541 | ConnectionPool::ConnectionRunnable::ConnectionRunnable( | ||||
| 8542 | DatabaseInfo& aDatabaseInfo) | ||||
| 8543 | : Runnable("dom::indexedDB::ConnectionPool::ConnectionRunnable"), | ||||
| 8544 | mDatabaseInfo(aDatabaseInfo), | ||||
| 8545 | mOwningEventTarget(GetCurrentSerialEventTarget()) { | ||||
| 8546 | AssertIsOnBackgroundThread(); | ||||
| 8547 | 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" , 8547); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDatabaseInfo.mConnectionPool" ")"); do { MOZ_CrashSequence(__null, 8547); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8548 | aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread(); | ||||
| 8549 | 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", 8549) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { MOZ_CrashSequence(__null, 8549); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8550 | } | ||||
| 8551 | |||||
| 8552 | NS_IMETHODIMPnsresult | ||||
| 8553 | ConnectionPool::IdleConnectionRunnable::Run() { | ||||
| 8554 | 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", 8554) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mIdle" ")"); do { MOZ_CrashSequence(__null, 8554); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8555 | |||||
| 8556 | const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget); | ||||
| 8557 | |||||
| 8558 | if (owningThread) { | ||||
| 8559 | mDatabaseInfo.AssertIsOnConnectionThread(); | ||||
| 8560 | |||||
| 8561 | // The connection could be null if EnsureConnection() didn't run or was not | ||||
| 8562 | // successful in TransactionDatabaseOperationBase::RunOnConnectionThread(). | ||||
| 8563 | if (mDatabaseInfo.mConnection) { | ||||
| 8564 | mDatabaseInfo.mConnection->DoIdleProcessing(mNeedsCheckpoint, | ||||
| 8565 | mInterrupted); | ||||
| 8566 | } | ||||
| 8567 | |||||
| 8568 | 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", 8568) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8568); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8569 | return NS_OK; | ||||
| 8570 | } | ||||
| 8571 | |||||
| 8572 | AssertIsOnBackgroundThread(); | ||||
| 8573 | |||||
| 8574 | RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool; | ||||
| 8575 | 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", 8575) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")" ); do { MOZ_CrashSequence(__null, 8575); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8576 | |||||
| 8577 | if (mDatabaseInfo.mClosing || mDatabaseInfo.TotalTransactionCount()) { | ||||
| 8578 | 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", 8579) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8579); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 8579 | &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", 8579) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!connectionPool->mDatabasesPerformingIdleMaintenance.Contains( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8579); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8580 | } else { | ||||
| 8581 | 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", 8583) ; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8583); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8582 | 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", 8583) ; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8583); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8583 | &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", 8583) ; AnnotateMozCrashReason("MOZ_CRASH(" "connectionPool->mDatabasesPerformingIdleMaintenance.RemoveElement( &mDatabaseInfo)" ")"); do { MOZ_CrashSequence(__null, 8583); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8584 | |||||
| 8585 | connectionPool->NoteIdleDatabase(mDatabaseInfo); | ||||
| 8586 | } | ||||
| 8587 | |||||
| 8588 | return NS_OK; | ||||
| 8589 | } | ||||
| 8590 | |||||
| 8591 | NS_IMETHODIMPnsresult | ||||
| 8592 | ConnectionPool::CloseConnectionRunnable::Run() { | ||||
| 8593 | AUTO_PROFILER_LABEL("ConnectionPool::CloseConnectionRunnable::Run", DOM)mozilla::AutoProfilerLabel raiiObject8593( "ConnectionPool::CloseConnectionRunnable::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8594 | |||||
| 8595 | if (mOwningEventTarget) { | ||||
| 8596 | 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", 8596) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8596); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8597 | |||||
| 8598 | const nsCOMPtr<nsIEventTarget> owningThread = std::move(mOwningEventTarget); | ||||
| 8599 | |||||
| 8600 | // The connection could be null if EnsureConnection() didn't run or was not | ||||
| 8601 | // successful in TransactionDatabaseOperationBase::RunOnConnectionThread(). | ||||
| 8602 | if (mDatabaseInfo.mConnection) { | ||||
| 8603 | mDatabaseInfo.AssertIsOnConnectionThread(); | ||||
| 8604 | |||||
| 8605 | mDatabaseInfo.mConnection->Close(); | ||||
| 8606 | |||||
| 8607 | IDB_DEBUG_LOG(("ConnectionPool closed connection 0x%p", | ||||
| 8608 | mDatabaseInfo.mConnection.get())); | ||||
| 8609 | |||||
| 8610 | mDatabaseInfo.mConnection = nullptr; | ||||
| 8611 | |||||
| 8612 | #ifdef DEBUG1 | ||||
| 8613 | mDatabaseInfo.mDEBUGConnectionEventTarget = nullptr; | ||||
| 8614 | #endif | ||||
| 8615 | } | ||||
| 8616 | |||||
| 8617 | 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", 8617) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(owningThread->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8617); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8618 | return NS_OK; | ||||
| 8619 | } | ||||
| 8620 | |||||
| 8621 | RefPtr<ConnectionPool> connectionPool = mDatabaseInfo.mConnectionPool; | ||||
| 8622 | 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", 8622) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")" ); do { MOZ_CrashSequence(__null, 8622); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8623 | |||||
| 8624 | connectionPool->NoteClosedDatabase(mDatabaseInfo); | ||||
| 8625 | return NS_OK; | ||||
| 8626 | } | ||||
| 8627 | |||||
| 8628 | ConnectionPool::DatabaseInfo::DatabaseInfo(ConnectionPool* aConnectionPool, | ||||
| 8629 | const nsACString& aDatabaseId) | ||||
| 8630 | : mConnectionPool(aConnectionPool), | ||||
| 8631 | mDatabaseId(aDatabaseId), | ||||
| 8632 | mReadTransactionCount(0), | ||||
| 8633 | mWriteTransactionCount(0), | ||||
| 8634 | mNeedsCheckpoint(false), | ||||
| 8635 | mIdle(false), | ||||
| 8636 | mClosing(false) | ||||
| 8637 | #ifdef DEBUG1 | ||||
| 8638 | , | ||||
| 8639 | mDEBUGConnectionEventTarget(nullptr) | ||||
| 8640 | #endif | ||||
| 8641 | { | ||||
| 8642 | AssertIsOnBackgroundThread(); | ||||
| 8643 | 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", 8643) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")" ); do { MOZ_CrashSequence(__null, 8643); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8644 | aConnectionPool->AssertIsOnOwningThread(); | ||||
| 8645 | 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", 8645) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8645); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8646 | |||||
| 8647 | 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); | ||||
| 8648 | } | ||||
| 8649 | |||||
| 8650 | ConnectionPool::DatabaseInfo::~DatabaseInfo() { | ||||
| 8651 | AssertIsOnBackgroundThread(); | ||||
| 8652 | 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" , 8652); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnection" ")"); do { MOZ_CrashSequence(__null, 8652); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8653 | 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", 8653) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mScheduledWriteTransactions.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8653); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8654 | 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", 8654) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningWriteTransaction" ")"); do { MOZ_CrashSequence(__null, 8654); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8655 | 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", 8655) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!TotalTransactionCount()" ")"); do { MOZ_CrashSequence(__null, 8655); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8656 | |||||
| 8657 | 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); | ||||
| 8658 | } | ||||
| 8659 | |||||
| 8660 | nsresult ConnectionPool::DatabaseInfo::Dispatch( | ||||
| 8661 | already_AddRefed<nsIRunnable> aRunnable) { | ||||
| 8662 | nsCOMPtr<nsIRunnable> runnable = aRunnable; | ||||
| 8663 | |||||
| 8664 | #ifdef DEBUG1 | ||||
| 8665 | if (kDEBUGTransactionThreadSleepMS) { | ||||
| 8666 | runnable = MakeRefPtr<TransactionRunnable>(std::move(runnable)); | ||||
| 8667 | } | ||||
| 8668 | #endif | ||||
| 8669 | |||||
| 8670 | return mEventTarget->Dispatch(runnable.forget(), NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | ||||
| 8671 | } | ||||
| 8672 | |||||
| 8673 | ConnectionPool::DatabaseCompleteCallback::DatabaseCompleteCallback( | ||||
| 8674 | const nsCString& aDatabaseId, nsIRunnable* aCallback) | ||||
| 8675 | : mDatabaseId(aDatabaseId), mCallback(aCallback) { | ||||
| 8676 | AssertIsOnBackgroundThread(); | ||||
| 8677 | 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", 8677) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8677); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8678 | 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" , 8678); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 8678); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8679 | |||||
| 8680 | 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); | ||||
| 8681 | } | ||||
| 8682 | |||||
| 8683 | ConnectionPool::DatabaseCompleteCallback::~DatabaseCompleteCallback() { | ||||
| 8684 | AssertIsOnBackgroundThread(); | ||||
| 8685 | |||||
| 8686 | 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); | ||||
| 8687 | } | ||||
| 8688 | |||||
| 8689 | ConnectionPool::FinishCallbackWrapper::FinishCallbackWrapper( | ||||
| 8690 | ConnectionPool* aConnectionPool, uint64_t aTransactionId, | ||||
| 8691 | FinishCallback* aCallback) | ||||
| 8692 | : Runnable("dom::indexedDB::ConnectionPool::FinishCallbackWrapper"), | ||||
| 8693 | mConnectionPool(aConnectionPool), | ||||
| 8694 | mCallback(aCallback), | ||||
| 8695 | mOwningEventTarget(GetCurrentSerialEventTarget()), | ||||
| 8696 | mTransactionId(aTransactionId), | ||||
| 8697 | mHasRunOnce(false) { | ||||
| 8698 | AssertIsOnBackgroundThread(); | ||||
| 8699 | 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", 8699) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnectionPool" ")" ); do { MOZ_CrashSequence(__null, 8699); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8700 | 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" , 8700); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aCallback" ")" ); do { MOZ_CrashSequence(__null, 8700); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8701 | 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", 8701) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { MOZ_CrashSequence(__null, 8701); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8702 | } | ||||
| 8703 | |||||
| 8704 | ConnectionPool::FinishCallbackWrapper::~FinishCallbackWrapper() { | ||||
| 8705 | 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", 8705) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mConnectionPool" ")" ); do { MOZ_CrashSequence(__null, 8705); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8706 | 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" , 8706); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCallback" ")"); do { MOZ_CrashSequence(__null, 8706); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8707 | } | ||||
| 8708 | |||||
| 8709 | nsresult ConnectionPool::FinishCallbackWrapper::Run() { | ||||
| 8710 | 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", 8710) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnectionPool" ")" ); do { MOZ_CrashSequence(__null, 8710); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8711 | 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" , 8711); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")" ); do { MOZ_CrashSequence(__null, 8711); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8712 | 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", 8712) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOwningEventTarget" ")"); do { MOZ_CrashSequence(__null, 8712); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8713 | |||||
| 8714 | AUTO_PROFILER_LABEL("ConnectionPool::FinishCallbackWrapper::Run", DOM)mozilla::AutoProfilerLabel raiiObject8714( "ConnectionPool::FinishCallbackWrapper::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8715 | |||||
| 8716 | if (!mHasRunOnce) { | ||||
| 8717 | 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", 8717) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 8717); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8718 | |||||
| 8719 | mHasRunOnce = true; | ||||
| 8720 | |||||
| 8721 | (void)mCallback->Run(); | ||||
| 8722 | |||||
| 8723 | 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", 8723) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 8723); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8724 | |||||
| 8725 | return NS_OK; | ||||
| 8726 | } | ||||
| 8727 | |||||
| 8728 | mConnectionPool->AssertIsOnOwningThread(); | ||||
| 8729 | 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" , 8729); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mHasRunOnce" ")"); do { MOZ_CrashSequence(__null, 8729); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8730 | |||||
| 8731 | RefPtr<ConnectionPool> connectionPool = std::move(mConnectionPool); | ||||
| 8732 | |||||
| 8733 | connectionPool->FinishOp(mTransactionId); | ||||
| 8734 | |||||
| 8735 | RefPtr<FinishCallback> callback = std::move(mCallback); | ||||
| 8736 | |||||
| 8737 | callback->TransactionFinishedBeforeUnblock(); | ||||
| 8738 | |||||
| 8739 | connectionPool->NoteFinishedTransaction(mTransactionId); | ||||
| 8740 | |||||
| 8741 | callback->TransactionFinishedAfterUnblock(); | ||||
| 8742 | |||||
| 8743 | return NS_OK; | ||||
| 8744 | } | ||||
| 8745 | |||||
| 8746 | #ifdef DEBUG1 | ||||
| 8747 | |||||
| 8748 | ConnectionPool::TransactionRunnable::TransactionRunnable( | ||||
| 8749 | nsCOMPtr<nsIRunnable> aRunnable) | ||||
| 8750 | : Runnable("dom::indexedDB::ConnectionPool::TransactionRunnable"), | ||||
| 8751 | mRunnable(std::move(aRunnable)) { | ||||
| 8752 | AssertIsOnBackgroundThread(); | ||||
| 8753 | 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" , 8753); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGTransactionThreadSleepMS" ")"); do { MOZ_CrashSequence(__null, 8753); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8754 | } | ||||
| 8755 | |||||
| 8756 | nsresult ConnectionPool::TransactionRunnable::Run() { | ||||
| 8757 | 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", 8757) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 8757); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8758 | |||||
| 8759 | QM_TRY(MOZ_TO_RESULT(mRunnable->Run())){auto tryResult999 = (ToResult(mRunnable->Run())); static_assert (std::is_empty_v<typename decltype(tryResult999)::ok_type> ); if ((__builtin_expect(!!(tryResult999.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(mRunnable->Run())", tryResult999 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 8759, mozilla::dom::quota::Severity::Error); return tryResult999 .propagateErr(); }}; | ||||
| 8760 | |||||
| 8761 | 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", 8762) ; AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" ")"); do { MOZ_CrashSequence(__null, 8762); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 8762 | 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", 8762) ; AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval( kDEBUGTransactionThreadSleepMS)) == PR_SUCCESS" ")"); do { MOZ_CrashSequence(__null, 8762); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8763 | |||||
| 8764 | return NS_OK; | ||||
| 8765 | } | ||||
| 8766 | |||||
| 8767 | #endif | ||||
| 8768 | |||||
| 8769 | ConnectionPool::IdleResource::IdleResource(const TimeStamp& aIdleTime) | ||||
| 8770 | : mIdleTime(aIdleTime) { | ||||
| 8771 | AssertIsOnBackgroundThread(); | ||||
| 8772 | 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", 8772) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIdleTime.IsNull()" ")"); do { MOZ_CrashSequence(__null, 8772); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8773 | |||||
| 8774 | 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); | ||||
| 8775 | } | ||||
| 8776 | |||||
| 8777 | ConnectionPool::IdleResource::~IdleResource() { | ||||
| 8778 | AssertIsOnBackgroundThread(); | ||||
| 8779 | |||||
| 8780 | 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); | ||||
| 8781 | } | ||||
| 8782 | |||||
| 8783 | ConnectionPool::IdleDatabaseInfo::IdleDatabaseInfo(DatabaseInfo& aDatabaseInfo) | ||||
| 8784 | : IdleResource( | ||||
| 8785 | TimeStamp::NowLoRes() + | ||||
| 8786 | (aDatabaseInfo.mIdle | ||||
| 8787 | ? TimeDuration::FromMilliseconds(kConnectionIdleMaintenanceMS) | ||||
| 8788 | : TimeDuration::FromMilliseconds(kConnectionIdleCloseMS))), | ||||
| 8789 | mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)) { | ||||
| 8790 | AssertIsOnBackgroundThread(); | ||||
| 8791 | |||||
| 8792 | 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); | ||||
| 8793 | } | ||||
| 8794 | |||||
| 8795 | ConnectionPool::IdleDatabaseInfo::~IdleDatabaseInfo() { | ||||
| 8796 | AssertIsOnBackgroundThread(); | ||||
| 8797 | |||||
| 8798 | 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); | ||||
| 8799 | } | ||||
| 8800 | |||||
| 8801 | ConnectionPool::PerformingIdleMaintenanceDatabaseInfo:: | ||||
| 8802 | PerformingIdleMaintenanceDatabaseInfo( | ||||
| 8803 | DatabaseInfo& aDatabaseInfo, | ||||
| 8804 | RefPtr<IdleConnectionRunnable> aIdleConnectionRunnable) | ||||
| 8805 | : mDatabaseInfo(WrapNotNullUnchecked(&aDatabaseInfo)), | ||||
| 8806 | mIdleConnectionRunnable(std::move(aIdleConnectionRunnable)) { | ||||
| 8807 | AssertIsOnBackgroundThread(); | ||||
| 8808 | 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", 8808) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mIdleConnectionRunnable" ")"); do { MOZ_CrashSequence(__null, 8808); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8809 | |||||
| 8810 | 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); | ||||
| 8811 | } | ||||
| 8812 | |||||
| 8813 | ConnectionPool::PerformingIdleMaintenanceDatabaseInfo:: | ||||
| 8814 | ~PerformingIdleMaintenanceDatabaseInfo() { | ||||
| 8815 | AssertIsOnBackgroundThread(); | ||||
| 8816 | |||||
| 8817 | 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); | ||||
| 8818 | } | ||||
| 8819 | |||||
| 8820 | ConnectionPool::TransactionInfo::TransactionInfo( | ||||
| 8821 | DatabaseInfo& aDatabaseInfo, const nsID& aBackgroundChildLoggingId, | ||||
| 8822 | const nsACString& aDatabaseId, uint64_t aTransactionId, | ||||
| 8823 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | ||||
| 8824 | bool aIsWriteTransaction, TransactionDatabaseOperationBase* aTransactionOp) | ||||
| 8825 | : mDatabaseInfo(aDatabaseInfo), | ||||
| 8826 | mBackgroundChildLoggingId(aBackgroundChildLoggingId), | ||||
| 8827 | mDatabaseId(aDatabaseId), | ||||
| 8828 | mTransactionId(aTransactionId), | ||||
| 8829 | mLoggingSerialNumber(aLoggingSerialNumber), | ||||
| 8830 | mObjectStoreNames(aObjectStoreNames.Clone()), | ||||
| 8831 | mIsWriteTransaction(aIsWriteTransaction), | ||||
| 8832 | mRunning(false), | ||||
| 8833 | mRunningOp(false) { | ||||
| 8834 | AssertIsOnBackgroundThread(); | ||||
| 8835 | aDatabaseInfo.mConnectionPool->AssertIsOnOwningThread(); | ||||
| 8836 | |||||
| 8837 | 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); | ||||
| 8838 | |||||
| 8839 | if (aTransactionOp) { | ||||
| 8840 | mQueuedOps.Push(aTransactionOp); | ||||
| 8841 | } | ||||
| 8842 | } | ||||
| 8843 | |||||
| 8844 | ConnectionPool::TransactionInfo::~TransactionInfo() { | ||||
| 8845 | AssertIsOnBackgroundThread(); | ||||
| 8846 | 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", 8846) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mBlockedOn.Count()" ")"); do { MOZ_CrashSequence(__null, 8846); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8847 | 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", 8847) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mQueuedOps.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 8847); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8848 | 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" , 8848); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")" ); do { MOZ_CrashSequence(__null, 8848); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8849 | 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" , 8849); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunningOp" ")"); do { MOZ_CrashSequence(__null, 8849); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8850 | 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" , 8850); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFinished" ")" ); do { MOZ_CrashSequence(__null, 8850); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8851 | |||||
| 8852 | 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); | ||||
| 8853 | } | ||||
| 8854 | |||||
| 8855 | void ConnectionPool::TransactionInfo::AddBlockingTransaction( | ||||
| 8856 | TransactionInfo& aTransactionInfo) { | ||||
| 8857 | AssertIsOnBackgroundThread(); | ||||
| 8858 | |||||
| 8859 | // XXX Does it really make sense to have both mBlocking and mBlockingOrdered, | ||||
| 8860 | // just to reduce the algorithmic complexity of this Contains check? This was | ||||
| 8861 | // mentioned in the context of Bug 1290853, but no real justification was | ||||
| 8862 | // given. There was the suggestion of encapsulating this in an | ||||
| 8863 | // insertion-ordered hashtable implementation, which seems like a good idea. | ||||
| 8864 | // If we had that, this would be the appropriate data structure to use here. | ||||
| 8865 | if (mBlocking.EnsureInserted(&aTransactionInfo)) { | ||||
| 8866 | mBlockingOrdered.AppendElement(WrapNotNullUnchecked(&aTransactionInfo)); | ||||
| 8867 | } | ||||
| 8868 | } | ||||
| 8869 | |||||
| 8870 | void ConnectionPool::TransactionInfo::RemoveBlockingTransactions() { | ||||
| 8871 | AssertIsOnBackgroundThread(); | ||||
| 8872 | |||||
| 8873 | for (const auto blockedInfo : mBlockingOrdered) { | ||||
| 8874 | blockedInfo->MaybeUnblock(*this); | ||||
| 8875 | } | ||||
| 8876 | |||||
| 8877 | mBlocking.Clear(); | ||||
| 8878 | mBlockingOrdered.Clear(); | ||||
| 8879 | } | ||||
| 8880 | |||||
| 8881 | void ConnectionPool::TransactionInfo::SetRunning() { | ||||
| 8882 | AssertIsOnBackgroundThread(); | ||||
| 8883 | 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" , 8883); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mRunning" ")" ); do { MOZ_CrashSequence(__null, 8883); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8884 | |||||
| 8885 | AUTO_PROFILER_LABEL("ConnectionPool::FinishOp", DOM)mozilla::AutoProfilerLabel raiiObject8885( "ConnectionPool::FinishOp" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 8886 | |||||
| 8887 | mRunning = true; | ||||
| 8888 | |||||
| 8889 | if (!mQueuedOps.IsEmpty()) { | ||||
| 8890 | mRunningOp = true; | ||||
| 8891 | |||||
| 8892 | nsCOMPtr<nsIRunnable> runnable = mQueuedOps.Pop(); | ||||
| 8893 | |||||
| 8894 | 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", 8894) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))" ")"); do { MOZ_CrashSequence(__null, 8894); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8895 | } | ||||
| 8896 | } | ||||
| 8897 | |||||
| 8898 | void ConnectionPool::TransactionInfo::StartOp(nsCOMPtr<nsIRunnable> aRunnable) { | ||||
| 8899 | AssertIsOnBackgroundThread(); | ||||
| 8900 | |||||
| 8901 | if (mRunning) { | ||||
| 8902 | 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", 8902) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mEventTarget" ")"); do { MOZ_CrashSequence(__null, 8902); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8903 | 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", 8903) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseInfo.mClosing" ")"); do { MOZ_CrashSequence(__null, 8903); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8904 | 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", 8906) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" ")"); do { MOZ_CrashSequence(__null, 8906); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 8905 | 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", 8906) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" ")"); do { MOZ_CrashSequence(__null, 8906); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false) | ||||
| 8906 | 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", 8906) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseInfo.mRunningWriteTransaction && mDatabaseInfo.mRunningWriteTransaction.refEquals(*this)" ")"); do { MOZ_CrashSequence(__null, 8906); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 8907 | |||||
| 8908 | if (!mRunningOp) { | ||||
| 8909 | mRunningOp = true; | ||||
| 8910 | |||||
| 8911 | 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", 8911) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(aRunnable.forget()))" ")"); do { MOZ_CrashSequence(__null, 8911); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8912 | } else { | ||||
| 8913 | mQueuedOps.Push(std::move(aRunnable)); | ||||
| 8914 | } | ||||
| 8915 | } else { | ||||
| 8916 | mQueuedOps.Push(std::move(aRunnable)); | ||||
| 8917 | } | ||||
| 8918 | } | ||||
| 8919 | |||||
| 8920 | void ConnectionPool::TransactionInfo::FinishOp() { | ||||
| 8921 | AssertIsOnBackgroundThread(); | ||||
| 8922 | 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" , 8922); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRunning" ")" ); do { MOZ_CrashSequence(__null, 8922); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8923 | 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" , 8923); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mRunningOp" ")"); do { MOZ_CrashSequence(__null, 8923); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8924 | |||||
| 8925 | if (mQueuedOps.IsEmpty()) { | ||||
| 8926 | mRunningOp = false; | ||||
| 8927 | } else { | ||||
| 8928 | nsCOMPtr<nsIRunnable> runnable = mQueuedOps.Pop(); | ||||
| 8929 | |||||
| 8930 | 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", 8930) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDatabaseInfo.Dispatch(runnable.forget()))" ")"); do { MOZ_CrashSequence(__null, 8930); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 8931 | } | ||||
| 8932 | } | ||||
| 8933 | |||||
| 8934 | void ConnectionPool::TransactionInfo::MaybeUnblock( | ||||
| 8935 | TransactionInfo& aTransactionInfo) { | ||||
| 8936 | AssertIsOnBackgroundThread(); | ||||
| 8937 | 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", 8937) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBlockedOn.Contains(&aTransactionInfo)" ")"); do { MOZ_CrashSequence(__null, 8937); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8938 | |||||
| 8939 | mBlockedOn.Remove(&aTransactionInfo); | ||||
| 8940 | if (mBlockedOn.IsEmpty()) { | ||||
| 8941 | ConnectionPool* connectionPool = mDatabaseInfo.mConnectionPool; | ||||
| 8942 | 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", 8942) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "connectionPool" ")" ); do { MOZ_CrashSequence(__null, 8942); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 8943 | connectionPool->AssertIsOnOwningThread(); | ||||
| 8944 | |||||
| 8945 | (void)connectionPool->ScheduleTransaction( | ||||
| 8946 | *this, | ||||
| 8947 | /* aFromQueuedTransactions */ false); | ||||
| 8948 | } | ||||
| 8949 | } | ||||
| 8950 | |||||
| 8951 | #if defined(DEBUG1) || defined(NS_BUILD_REFCNT_LOGGING1) | ||||
| 8952 | ConnectionPool::TransactionInfoPair::TransactionInfoPair() { | ||||
| 8953 | AssertIsOnBackgroundThread(); | ||||
| 8954 | |||||
| 8955 | 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); | ||||
| 8956 | } | ||||
| 8957 | |||||
| 8958 | ConnectionPool::TransactionInfoPair::~TransactionInfoPair() { | ||||
| 8959 | AssertIsOnBackgroundThread(); | ||||
| 8960 | |||||
| 8961 | 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); | ||||
| 8962 | } | ||||
| 8963 | #endif | ||||
| 8964 | |||||
| 8965 | /******************************************************************************* | ||||
| 8966 | * Metadata classes | ||||
| 8967 | ******************************************************************************/ | ||||
| 8968 | |||||
| 8969 | bool FullObjectStoreMetadata::HasLiveIndexes() const { | ||||
| 8970 | AssertIsOnBackgroundThread(); | ||||
| 8971 | |||||
| 8972 | return std::any_of(mIndexes.Values().cbegin(), mIndexes.Values().cend(), | ||||
| 8973 | [](const auto& entry) { return !entry->mDeleted; }); | ||||
| 8974 | } | ||||
| 8975 | |||||
| 8976 | SafeRefPtr<FullDatabaseMetadata> FullDatabaseMetadata::Duplicate() const { | ||||
| 8977 | AssertIsOnBackgroundThread(); | ||||
| 8978 | |||||
| 8979 | // FullDatabaseMetadata contains two hash tables of pointers that we need to | ||||
| 8980 | // duplicate so we can't just use the copy constructor. | ||||
| 8981 | auto newMetadata = MakeSafeRefPtr<FullDatabaseMetadata>(mCommonMetadata); | ||||
| 8982 | |||||
| 8983 | newMetadata->mDatabaseId = mDatabaseId; | ||||
| 8984 | newMetadata->mFilePath = mFilePath; | ||||
| 8985 | newMetadata->mNextObjectStoreId = mNextObjectStoreId; | ||||
| 8986 | newMetadata->mNextIndexId = mNextIndexId; | ||||
| 8987 | |||||
| 8988 | for (const auto& objectStoreEntry : mObjectStores) { | ||||
| 8989 | const auto& objectStoreValue = objectStoreEntry.GetData(); | ||||
| 8990 | |||||
| 8991 | auto newOSMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>( | ||||
| 8992 | objectStoreValue->mCommonMetadata, [&objectStoreValue] { | ||||
| 8993 | const auto&& srcLocked = objectStoreValue->mAutoIncrementIds.Lock(); | ||||
| 8994 | return *srcLocked; | ||||
| 8995 | }()); | ||||
| 8996 | |||||
| 8997 | for (const auto& indexEntry : objectStoreValue->mIndexes) { | ||||
| 8998 | const auto& value = indexEntry.GetData(); | ||||
| 8999 | |||||
| 9000 | auto newIndexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); | ||||
| 9001 | |||||
| 9002 | newIndexMetadata->mCommonMetadata = value->mCommonMetadata; | ||||
| 9003 | |||||
| 9004 | 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", 9005) | ||||
| 9005 | 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", 9005)) { | ||||
| 9006 | return nullptr; | ||||
| 9007 | } | ||||
| 9008 | } | ||||
| 9009 | |||||
| 9010 | 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", 9011) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" ")"); do { MOZ_CrashSequence(__null, 9011); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9011 | 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", 9011) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreValue->mIndexes.Count() == newOSMetadata->mIndexes.Count()" ")"); do { MOZ_CrashSequence(__null, 9011); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9012 | |||||
| 9013 | 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", 9014) | ||||
| 9014 | 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", 9014)) { | ||||
| 9015 | return nullptr; | ||||
| 9016 | } | ||||
| 9017 | } | ||||
| 9018 | |||||
| 9019 | 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", 9019) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStores.Count() == newMetadata->mObjectStores.Count()" ")"); do { MOZ_CrashSequence(__null, 9019); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9020 | |||||
| 9021 | return newMetadata; | ||||
| 9022 | } | ||||
| 9023 | |||||
| 9024 | DatabaseLoggingInfo::~DatabaseLoggingInfo() { | ||||
| 9025 | AssertIsOnBackgroundThread(); | ||||
| 9026 | |||||
| 9027 | if (gLoggingInfoHashtable) { | ||||
| 9028 | const nsID& backgroundChildLoggingId = | ||||
| 9029 | mLoggingInfo.backgroundChildLoggingId(); | ||||
| 9030 | |||||
| 9031 | 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", 9031) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable->Get(backgroundChildLoggingId) == this" ")"); do { MOZ_CrashSequence(__null, 9031); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9032 | |||||
| 9033 | gLoggingInfoHashtable->Remove(backgroundChildLoggingId); | ||||
| 9034 | } | ||||
| 9035 | } | ||||
| 9036 | |||||
| 9037 | /******************************************************************************* | ||||
| 9038 | * Factory | ||||
| 9039 | ******************************************************************************/ | ||||
| 9040 | |||||
| 9041 | Factory::Factory(RefPtr<DatabaseLoggingInfo> aLoggingInfo, | ||||
| 9042 | const nsACString& aSystemLocale) | ||||
| 9043 | : mSystemLocale(aSystemLocale), | ||||
| 9044 | mLoggingInfo(std::move(aLoggingInfo)) | ||||
| 9045 | #ifdef DEBUG1 | ||||
| 9046 | , | ||||
| 9047 | mActorDestroyed(false) | ||||
| 9048 | #endif | ||||
| 9049 | { | ||||
| 9050 | AssertIsOnBackgroundThread(); | ||||
| 9051 | 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", 9051) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9051); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9052 | } | ||||
| 9053 | |||||
| 9054 | 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", 9054) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9054); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 9055 | |||||
| 9056 | // static | ||||
| 9057 | SafeRefPtr<Factory> Factory::Create(const LoggingInfo& aLoggingInfo, | ||||
| 9058 | const nsACString& aSystemLocale) { | ||||
| 9059 | AssertIsOnBackgroundThread(); | ||||
| 9060 | 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", 9060) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9060); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9061 | |||||
| 9062 | // Balanced in ActoryDestroy(). | ||||
| 9063 | IncreaseBusyCount(); | ||||
| 9064 | |||||
| 9065 | 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", 9065) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "gLoggingInfoHashtable" ")"); do { MOZ_CrashSequence(__null, 9065); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9066 | RefPtr<DatabaseLoggingInfo> loggingInfo = | ||||
| 9067 | gLoggingInfoHashtable->WithEntryHandle( | ||||
| 9068 | aLoggingInfo.backgroundChildLoggingId(), [&](auto&& entry) { | ||||
| 9069 | if (entry) { | ||||
| 9070 | [[maybe_unused]] const auto& loggingInfo = entry.Data(); | ||||
| 9071 | 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", 9072) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" ")"); do { MOZ_CrashSequence(__null, 9072); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9072 | 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", 9072) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLoggingInfo.backgroundChildLoggingId() == loggingInfo->Id()" ")"); do { MOZ_CrashSequence(__null, 9072); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9073 | #if !FUZZING | ||||
| 9074 | 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", 9077) ; } } while (false) | ||||
| 9075 | 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", 9077) ; } } while (false) | ||||
| 9076 | 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", 9077) ; } } while (false) | ||||
| 9077 | "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", 9077) ; } } while (false); | ||||
| 9078 | 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", 9082) ; } } while (false) | ||||
| 9079 | 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", 9082) ; } } while (false) | ||||
| 9080 | 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", 9082) ; } } while (false) | ||||
| 9081 | .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", 9082) ; } } while (false) | ||||
| 9082 | "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", 9082) ; } } while (false); | ||||
| 9083 | 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", 9086) ; } } while (false) | ||||
| 9084 | 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", 9086) ; } } while (false) | ||||
| 9085 | 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", 9086) ; } } while (false) | ||||
| 9086 | "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", 9086) ; } } while (false); | ||||
| 9087 | #endif // !FUZZING | ||||
| 9088 | } else { | ||||
| 9089 | entry.Insert(new DatabaseLoggingInfo(aLoggingInfo)); | ||||
| 9090 | } | ||||
| 9091 | |||||
| 9092 | return do_AddRef(entry.Data()); | ||||
| 9093 | }); | ||||
| 9094 | |||||
| 9095 | return MakeSafeRefPtr<Factory>(std::move(loggingInfo), aSystemLocale); | ||||
| 9096 | } | ||||
| 9097 | |||||
| 9098 | void Factory::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 9099 | AssertIsOnBackgroundThread(); | ||||
| 9100 | 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", 9100) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9100); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9101 | |||||
| 9102 | #ifdef DEBUG1 | ||||
| 9103 | mActorDestroyed = true; | ||||
| 9104 | #endif | ||||
| 9105 | |||||
| 9106 | // Match the IncreaseBusyCount in Create(). | ||||
| 9107 | DecreaseBusyCount(); | ||||
| 9108 | } | ||||
| 9109 | |||||
| 9110 | mozilla::ipc::IPCResult Factory::RecvDeleteMe() { | ||||
| 9111 | AssertIsOnBackgroundThread(); | ||||
| 9112 | 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", 9112) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9112); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9113 | |||||
| 9114 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))){auto tryResult1000 = (OkIf(PBackgroundIDBFactoryParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult1000)::ok_type>); if ((__builtin_expect(!!(tryResult1000 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBFactoryParent::Send__delete__(this))" , tryResult1000.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9114, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 9115 | |||||
| 9116 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9117 | } | ||||
| 9118 | |||||
| 9119 | PBackgroundIDBFactoryRequestParent* | ||||
| 9120 | Factory::AllocPBackgroundIDBFactoryRequestParent( | ||||
| 9121 | const FactoryRequestParams& aParams) { | ||||
| 9122 | AssertIsOnBackgroundThread(); | ||||
| 9123 | 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", 9123) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 9123); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9124 | |||||
| 9125 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9125)) { | ||||
| 9126 | return nullptr; | ||||
| 9127 | } | ||||
| 9128 | |||||
| 9129 | const CommonFactoryRequestParams* commonParams; | ||||
| 9130 | |||||
| 9131 | switch (aParams.type()) { | ||||
| 9132 | case FactoryRequestParams::TOpenDatabaseRequestParams: { | ||||
| 9133 | const OpenDatabaseRequestParams& params = | ||||
| 9134 | aParams.get_OpenDatabaseRequestParams(); | ||||
| 9135 | commonParams = ¶ms.commonParams(); | ||||
| 9136 | break; | ||||
| 9137 | } | ||||
| 9138 | |||||
| 9139 | case FactoryRequestParams::TDeleteDatabaseRequestParams: { | ||||
| 9140 | const DeleteDatabaseRequestParams& params = | ||||
| 9141 | aParams.get_DeleteDatabaseRequestParams(); | ||||
| 9142 | commonParams = ¶ms.commonParams(); | ||||
| 9143 | break; | ||||
| 9144 | } | ||||
| 9145 | |||||
| 9146 | default: | ||||
| 9147 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9147) ; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 9147); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 9148 | } | ||||
| 9149 | |||||
| 9150 | 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" , 9150); AnnotateMozCrashReason("MOZ_ASSERT" "(" "commonParams" ")"); do { MOZ_CrashSequence(__null, 9150); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9151 | |||||
| 9152 | const DatabaseMetadata& metadata = commonParams->metadata(); | ||||
| 9153 | |||||
| 9154 | 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", 9154 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!IsValidPersistenceType(metadata.persistenceType())" ")"); do { MOZ_CrashSequence(__null, 9154); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!IsValidPersistenceType(metadata.persistenceType())))) { | ||||
| 9155 | return nullptr; | ||||
| 9156 | } | ||||
| 9157 | |||||
| 9158 | const PrincipalInfo& principalInfo = commonParams->principalInfo(); | ||||
| 9159 | |||||
| 9160 | 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", 9160) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!quota::IsPrincipalInfoValid(principalInfo)" ")"); do { MOZ_CrashSequence(__null, 9160); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((!quota::IsPrincipalInfoValid(principalInfo)))) { | ||||
| 9161 | IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!" )); | ||||
| 9162 | return nullptr; | ||||
| 9163 | } | ||||
| 9164 | |||||
| 9165 | 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", 9166) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { MOZ_CrashSequence(__null, 9166); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9166 | 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", 9166) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "principalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || principalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { MOZ_CrashSequence(__null, 9166); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9167 | |||||
| 9168 | if (!BackgroundParent::ValidatePrincipalInfo(Manager(), principalInfo, | ||||
| 9169 | PrincipalValidationOptions())) { | ||||
| 9170 | IPC_FAIL(this, "Invalid principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid principal!" )); | ||||
| 9171 | return nullptr; | ||||
| 9172 | } | ||||
| 9173 | |||||
| 9174 | /* GetPersistenceType returns PERSISTENT for system principals and internal | ||||
| 9175 | content principals, PRIVATE for private-browsing content principals, and | ||||
| 9176 | DEFAULT for everything else. The sent value is technically redundant and | ||||
| 9177 | always deducible from the principal but we validate it here so that an | ||||
| 9178 | incorrect metadata value cannot reach other parts of the code. | ||||
| 9179 | TODO: Stop sending persistenceType from the content process and just derive it | ||||
| 9180 | on the parent side. */ | ||||
| 9181 | if (metadata.persistenceType() != | ||||
| 9182 | IDBFactory::GetPersistenceType(principalInfo)) { | ||||
| 9183 | IPC_FAIL(this, "Persistence type does not match principal!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Persistence type does not match principal!" )); | ||||
| 9184 | return nullptr; | ||||
| 9185 | } | ||||
| 9186 | |||||
| 9187 | Maybe<ContentParentId> contentParentId = GetContentParentId(); | ||||
| 9188 | |||||
| 9189 | auto actor = [&]() -> RefPtr<FactoryRequestOp> { | ||||
| 9190 | if (aParams.type() == FactoryRequestParams::TOpenDatabaseRequestParams) { | ||||
| 9191 | return MakeRefPtr<OpenDatabaseOp>(SafeRefPtrFromThis(), contentParentId, | ||||
| 9192 | *commonParams); | ||||
| 9193 | } else { | ||||
| 9194 | return MakeRefPtr<DeleteDatabaseOp>(SafeRefPtrFromThis(), contentParentId, | ||||
| 9195 | *commonParams); | ||||
| 9196 | } | ||||
| 9197 | }(); | ||||
| 9198 | |||||
| 9199 | gFactoryOps->insertBack(actor); | ||||
| 9200 | |||||
| 9201 | // Balanced in CleanupMetadata() which is/must always called by SendResults(). | ||||
| 9202 | IncreaseBusyCount(); | ||||
| 9203 | |||||
| 9204 | // Transfer ownership to IPDL. | ||||
| 9205 | return actor.forget().take(); | ||||
| 9206 | } | ||||
| 9207 | |||||
| 9208 | mozilla::ipc::IPCResult Factory::RecvPBackgroundIDBFactoryRequestConstructor( | ||||
| 9209 | PBackgroundIDBFactoryRequestParent* aActor, | ||||
| 9210 | const FactoryRequestParams& aParams) { | ||||
| 9211 | AssertIsOnBackgroundThread(); | ||||
| 9212 | 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" , 9212); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 9212); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9213 | 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", 9213) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != FactoryRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 9213); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9214 | 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", 9214) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!QuotaClient::IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9214); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9215 | |||||
| 9216 | auto* op = static_cast<FactoryRequestOp*>(aActor); | ||||
| 9217 | |||||
| 9218 | 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", 9218) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"); do { MOZ_CrashSequence(__null, 9218); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9219 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9220 | } | ||||
| 9221 | |||||
| 9222 | bool Factory::DeallocPBackgroundIDBFactoryRequestParent( | ||||
| 9223 | PBackgroundIDBFactoryRequestParent* aActor) { | ||||
| 9224 | AssertIsOnBackgroundThread(); | ||||
| 9225 | 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" , 9225); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 9225); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9226 | |||||
| 9227 | // Transfer ownership back from IPDL. | ||||
| 9228 | RefPtr<FactoryRequestOp> op = | ||||
| 9229 | dont_AddRef(static_cast<FactoryRequestOp*>(aActor)); | ||||
| 9230 | return true; | ||||
| 9231 | } | ||||
| 9232 | |||||
| 9233 | mozilla::ipc::IPCResult Factory::RecvGetDatabases( | ||||
| 9234 | const PersistenceType& aPersistenceType, | ||||
| 9235 | const PrincipalInfo& aPrincipalInfo, GetDatabasesResolver&& aResolve) { | ||||
| 9236 | AssertIsOnBackgroundThread(); | ||||
| 9237 | |||||
| 9238 | auto ResolveGetDatabasesAndReturn = [&aResolve](const nsresult rv) { | ||||
| 9239 | aResolve(rv); | ||||
| 9240 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9241 | }; | ||||
| 9242 | |||||
| 9243 | QM_TRY(MOZ_TO_RESULT(!QuotaClient::IsShuttingDownOnBackgroundThread()),{auto tryResult1001 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult1001 )::ok_type>); if ((__builtin_expect(!!(tryResult1001.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1001 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9244, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, ResolveGetDatabasesAndReturn); }} | ||||
| 9244 | ResolveGetDatabasesAndReturn){auto tryResult1001 = (ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult1001 )::ok_type>); if ((__builtin_expect(!!(tryResult1001.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1001 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9244, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaClient::IsShuttingDownOnBackgroundThread())" , tryTempError, ResolveGetDatabasesAndReturn); }}; | ||||
| 9245 | |||||
| 9246 | QM_TRY(MOZ_TO_RESULT(IsValidPersistenceType(aPersistenceType)),{auto tryResult1002 = (ToResult(IsValidPersistenceType(aPersistenceType ))); static_assert(std::is_empty_v<typename decltype(tryResult1002 )::ok_type>); if ((__builtin_expect(!!(tryResult1002.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1002 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9247, 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))); }} | ||||
| 9247 | QM_IPC_FAIL(this)){auto tryResult1002 = (ToResult(IsValidPersistenceType(aPersistenceType ))); static_assert(std::is_empty_v<typename decltype(tryResult1002 )::ok_type>); if ((__builtin_expect(!!(tryResult1002.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1002 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(IsValidPersistenceType(aPersistenceType))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9247, 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))); }}; | ||||
| 9248 | |||||
| 9249 | QM_TRY(MOZ_TO_RESULT(quota::IsPrincipalInfoValid(aPrincipalInfo)),{auto tryResult1003 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo ))); static_assert(std::is_empty_v<typename decltype(tryResult1003 )::ok_type>); if ((__builtin_expect(!!(tryResult1003.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1003 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9250, 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))); }} | ||||
| 9250 | QM_IPC_FAIL(this)){auto tryResult1003 = (ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo ))); static_assert(std::is_empty_v<typename decltype(tryResult1003 )::ok_type>); if ((__builtin_expect(!!(tryResult1003.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1003 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quota::IsPrincipalInfoValid(aPrincipalInfo))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9250, 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))); }}; | ||||
| 9251 | |||||
| 9252 | 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", 9253) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { MOZ_CrashSequence(__null, 9253); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9253 | 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", 9253) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aPrincipalInfo.type() == PrincipalInfo::TSystemPrincipalInfo || aPrincipalInfo.type() == PrincipalInfo::TContentPrincipalInfo" ")"); do { MOZ_CrashSequence(__null, 9253); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9254 | |||||
| 9255 | QM_TRY(MOZ_TO_RESULT(BackgroundParent::ValidatePrincipalInfo({auto tryResult1004 = (ToResult(BackgroundParent::ValidatePrincipalInfo ( Manager(), aPrincipalInfo, PrincipalValidationOptions()))); static_assert(std::is_empty_v<typename decltype(tryResult1004 )::ok_type>); if ((__builtin_expect(!!(tryResult1004.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1004 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9257, 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))); }} | ||||
| 9256 | Manager(), aPrincipalInfo, PrincipalValidationOptions())),{auto tryResult1004 = (ToResult(BackgroundParent::ValidatePrincipalInfo ( Manager(), aPrincipalInfo, PrincipalValidationOptions()))); static_assert(std::is_empty_v<typename decltype(tryResult1004 )::ok_type>); if ((__builtin_expect(!!(tryResult1004.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1004 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9257, 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))); }} | ||||
| 9257 | QM_IPC_FAIL(this)){auto tryResult1004 = (ToResult(BackgroundParent::ValidatePrincipalInfo ( Manager(), aPrincipalInfo, PrincipalValidationOptions()))); static_assert(std::is_empty_v<typename decltype(tryResult1004 )::ok_type>); if ((__builtin_expect(!!(tryResult1004.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1004 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9257, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(BackgroundParent::ValidatePrincipalInfo( Manager(), aPrincipalInfo, PrincipalValidationOptions()))" , tryTempError, mozilla::dom::quota::detail::IpcFailCustomRetVal (mozilla::WrapNotNull(this))); }}; | ||||
| 9258 | |||||
| 9259 | PersistenceType persistenceType = | ||||
| 9260 | IDBFactory::GetPersistenceType(aPrincipalInfo); | ||||
| 9261 | |||||
| 9262 | QM_TRY(MOZ_TO_RESULT(aPersistenceType == persistenceType), QM_IPC_FAIL(this)){auto tryResult1005 = (ToResult(aPersistenceType == persistenceType )); static_assert(std::is_empty_v<typename decltype(tryResult1005 )::ok_type>); if ((__builtin_expect(!!(tryResult1005.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1005 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(aPersistenceType == persistenceType)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9262, 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))); }}; | ||||
| 9263 | |||||
| 9264 | Maybe<ContentParentId> contentParentId = GetContentParentId(); | ||||
| 9265 | |||||
| 9266 | auto op = MakeRefPtr<GetDatabasesOp>(SafeRefPtrFromThis(), contentParentId, | ||||
| 9267 | aPersistenceType, aPrincipalInfo, | ||||
| 9268 | std::move(aResolve)); | ||||
| 9269 | |||||
| 9270 | gFactoryOps->insertBack(op); | ||||
| 9271 | |||||
| 9272 | // Balanced in CleanupMetadata() which is/must always called by SendResults(). | ||||
| 9273 | IncreaseBusyCount(); | ||||
| 9274 | |||||
| 9275 | 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", 9275) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(NS_DispatchToCurrentThread(op))" ")"); do { MOZ_CrashSequence(__null, 9275); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9276 | |||||
| 9277 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9278 | } | ||||
| 9279 | |||||
| 9280 | Maybe<ContentParentId> Factory::GetContentParentId() const { | ||||
| 9281 | uint64_t childID = BackgroundParent::GetChildID(Manager()); | ||||
| 9282 | if (childID) { | ||||
| 9283 | // If childID is not zero we are dealing with an other-process actor. We | ||||
| 9284 | // want to initialize OpenDatabaseOp/DeleteDatabaseOp here with the ID | ||||
| 9285 | // (and later also Database) in that case, so Database::IsOwnedByProcess | ||||
| 9286 | // can find Databases belonging to a particular content process when | ||||
| 9287 | // QuotaClient::AbortOperationsForProcess is called which is currently used | ||||
| 9288 | // to abort operations for content processes only. | ||||
| 9289 | return Some(ContentParentId(childID)); | ||||
| 9290 | } | ||||
| 9291 | |||||
| 9292 | return Nothing(); | ||||
| 9293 | } | ||||
| 9294 | |||||
| 9295 | /******************************************************************************* | ||||
| 9296 | * WaitForTransactionsHelper | ||||
| 9297 | ******************************************************************************/ | ||||
| 9298 | |||||
| 9299 | void WaitForTransactionsHelper::WaitForTransactions() { | ||||
| 9300 | 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", 9300) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { MOZ_CrashSequence(__null, 9300); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9301 | |||||
| 9302 | (void)this->Run(); | ||||
| 9303 | } | ||||
| 9304 | |||||
| 9305 | void WaitForTransactionsHelper::MaybeWaitForTransactions() { | ||||
| 9306 | AssertIsOnBackgroundThread(); | ||||
| 9307 | 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", 9307) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial" ")"); do { MOZ_CrashSequence(__null, 9307); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9308 | |||||
| 9309 | RefPtr<ConnectionPool> connectionPool = gConnectionPool.get(); | ||||
| 9310 | if (connectionPool) { | ||||
| 9311 | mState = State::WaitingForTransactions; | ||||
| 9312 | |||||
| 9313 | connectionPool->WaitForDatabaseToComplete(mDatabaseId, this); | ||||
| 9314 | |||||
| 9315 | return; | ||||
| 9316 | } | ||||
| 9317 | |||||
| 9318 | CallCallback(); | ||||
| 9319 | } | ||||
| 9320 | |||||
| 9321 | void WaitForTransactionsHelper::CallCallback() { | ||||
| 9322 | AssertIsOnBackgroundThread(); | ||||
| 9323 | 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", 9324) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions" ")"); do { MOZ_CrashSequence(__null, 9324); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9324 | 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", 9324) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::Initial || mState == State::WaitingForTransactions" ")"); do { MOZ_CrashSequence(__null, 9324); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9325 | |||||
| 9326 | const nsCOMPtr<nsIRunnable> callback = std::move(mCallback); | ||||
| 9327 | |||||
| 9328 | callback->Run(); | ||||
| 9329 | |||||
| 9330 | mState = State::Complete; | ||||
| 9331 | } | ||||
| 9332 | |||||
| 9333 | NS_IMETHODIMPnsresult | ||||
| 9334 | WaitForTransactionsHelper::Run() { | ||||
| 9335 | 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", 9335) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState != State::Complete" ")"); do { MOZ_CrashSequence(__null, 9335); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9336 | 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" , 9336); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCallback" ")" ); do { MOZ_CrashSequence(__null, 9336); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9337 | |||||
| 9338 | switch (mState) { | ||||
| 9339 | case State::Initial: | ||||
| 9340 | MaybeWaitForTransactions(); | ||||
| 9341 | break; | ||||
| 9342 | |||||
| 9343 | case State::WaitingForTransactions: | ||||
| 9344 | CallCallback(); | ||||
| 9345 | break; | ||||
| 9346 | |||||
| 9347 | default: | ||||
| 9348 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9348) ; AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 9348); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 9349 | } | ||||
| 9350 | |||||
| 9351 | return NS_OK; | ||||
| 9352 | } | ||||
| 9353 | |||||
| 9354 | /******************************************************************************* | ||||
| 9355 | * Database | ||||
| 9356 | ******************************************************************************/ | ||||
| 9357 | |||||
| 9358 | Database::Database(SafeRefPtr<Factory> aFactory, | ||||
| 9359 | const PrincipalInfo& aPrincipalInfo, | ||||
| 9360 | const Maybe<ContentParentId>& aOptionalContentParentId, | ||||
| 9361 | const quota::OriginMetadata& aOriginMetadata, | ||||
| 9362 | uint32_t aTelemetryId, | ||||
| 9363 | SafeRefPtr<FullDatabaseMetadata> aMetadata, | ||||
| 9364 | SafeRefPtr<DatabaseFileManager> aFileManager, | ||||
| 9365 | ClientDirectoryLockHandle aDirectoryLockHandle, | ||||
| 9366 | bool aInPrivateBrowsing, | ||||
| 9367 | const Maybe<const CipherKey>& aMaybeKey) | ||||
| 9368 | : mFactory(std::move(aFactory)), | ||||
| 9369 | mMetadata(std::move(aMetadata)), | ||||
| 9370 | mFileManager(std::move(aFileManager)), | ||||
| 9371 | mDirectoryLockHandle(std::move(aDirectoryLockHandle)), | ||||
| 9372 | mPrincipalInfo(aPrincipalInfo), | ||||
| 9373 | mOptionalContentParentId(aOptionalContentParentId), | ||||
| 9374 | mOriginMetadata(aOriginMetadata), | ||||
| 9375 | mId(mMetadata->mDatabaseId), | ||||
| 9376 | mFilePath(mMetadata->mFilePath), | ||||
| 9377 | mKey(aMaybeKey), | ||||
| 9378 | mTelemetryId(aTelemetryId), | ||||
| 9379 | mPersistenceType(mMetadata->mCommonMetadata.persistenceType()), | ||||
| 9380 | mInPrivateBrowsing(aInPrivateBrowsing), | ||||
| 9381 | mBackgroundThread(GetCurrentSerialEventTarget()) | ||||
| 9382 | #ifdef DEBUG1 | ||||
| 9383 | , | ||||
| 9384 | mAllBlobsUnmapped(false) | ||||
| 9385 | #endif | ||||
| 9386 | { | ||||
| 9387 | AssertIsOnBackgroundThread(); | ||||
| 9388 | 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" , 9388); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFactory" ")" ); do { MOZ_CrashSequence(__null, 9388); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9389 | 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" , 9389); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")" ); do { MOZ_CrashSequence(__null, 9389); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9390 | 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" , 9390); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 9390); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9391 | |||||
| 9392 | 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", 9392) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 9392); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9393 | 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", 9393) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle->Id() >= 0" ")"); do { MOZ_CrashSequence(__null, 9393); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9394 | mDirectoryLockId = mDirectoryLockHandle->Id(); | ||||
| 9395 | } | ||||
| 9396 | |||||
| 9397 | template <typename T> | ||||
| 9398 | bool Database::InvalidateAll(const nsTBaseHashSet<nsPtrHashKey<T>>& aTable) { | ||||
| 9399 | AssertIsOnBackgroundThread(); | ||||
| 9400 | |||||
| 9401 | const uint32_t count = aTable.Count(); | ||||
| 9402 | if (!count) { | ||||
| 9403 | return true; | ||||
| 9404 | } | ||||
| 9405 | |||||
| 9406 | // XXX Does this really need to be fallible? | ||||
| 9407 | QM_TRY_INSPECT(const auto& elementsToInvalidate,auto tryResult1006 = (TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult1006.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1006.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9410, 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 = tryResult1006.inspect(); | ||||
| 9408 | TransformIntoNewArray(auto tryResult1006 = (TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult1006.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1006.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9410, 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 = tryResult1006.inspect(); | ||||
| 9409 | aTable, [](const auto& entry) { return entry; }, fallible),auto tryResult1006 = (TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult1006.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1006.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9410, 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 = tryResult1006.inspect(); | ||||
| 9410 | false)auto tryResult1006 = (TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)); if ((__builtin_expect (!!(tryResult1006.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1006.unwrapErr(); mozilla::dom::quota::HandleError ("TransformIntoNewArray( aTable, [](const auto& entry) { return entry; }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9410, 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 = tryResult1006.inspect();; | ||||
| 9411 | |||||
| 9412 | for (const auto& elementToInvalidate : elementsToInvalidate) { | ||||
| 9413 | 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", 9413) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "elementToInvalidate" ")"); do { MOZ_CrashSequence(__null, 9413); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9414 | |||||
| 9415 | elementToInvalidate->Invalidate(); | ||||
| 9416 | } | ||||
| 9417 | |||||
| 9418 | return true; | ||||
| 9419 | } | ||||
| 9420 | |||||
| 9421 | void Database::Invalidate() { | ||||
| 9422 | AssertIsOnBackgroundThread(); | ||||
| 9423 | |||||
| 9424 | if (mInvalidated) { | ||||
| 9425 | return; | ||||
| 9426 | } | ||||
| 9427 | |||||
| 9428 | mInvalidated.Flip(); | ||||
| 9429 | |||||
| 9430 | if (mActorWasAlive && !mActorDestroyed) { | ||||
| 9431 | (void)SendInvalidate(); | ||||
| 9432 | } | ||||
| 9433 | |||||
| 9434 | QM_WARNONLY_TRY(OkIf(InvalidateAll(mTransactions))){auto tryResult1007 = (OkIf(InvalidateAll(mTransactions))); static_assert (std::is_empty_v<typename decltype(tryResult1007)::ok_type >); if ((__builtin_expect(!!(tryResult1007.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(InvalidateAll(mTransactions))" , tryResult1007.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9434, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 9435 | |||||
| 9436 | 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", 9436) ; AnnotateMozCrashReason("MOZ_CRASH(" "CloseInternal()" ")"); do { MOZ_CrashSequence(__null, 9436); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9437 | } | ||||
| 9438 | |||||
| 9439 | nsresult Database::EnsureConnection() { | ||||
| 9440 | 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", 9440) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 9440); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9441 | 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", 9441) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9441); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9442 | |||||
| 9443 | AUTO_PROFILER_LABEL("Database::EnsureConnection", DOM)mozilla::AutoProfilerLabel raiiObject9443( "Database::EnsureConnection" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 9444 | |||||
| 9445 | if (!mConnection || !mConnection->HasStorageConnection()) { | ||||
| 9446 | QM_TRY_UNWRAP(mConnection, gConnectionPool->GetOrCreateConnection(*this))auto tryResult1008 = (gConnectionPool->GetOrCreateConnection (*this)); if ((__builtin_expect(!!(tryResult1008.isErr()), 0) )) { mozilla::dom::quota::HandleError("gConnectionPool->GetOrCreateConnection(*this)" , tryResult1008.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9446, mozilla::dom::quota::Severity::Error); return tryResult1008 .propagateErr(); } mConnection = tryResult1008.unwrap();; | ||||
| 9447 | } | ||||
| 9448 | |||||
| 9449 | AssertIsOnConnectionThread(); | ||||
| 9450 | |||||
| 9451 | return NS_OK; | ||||
| 9452 | } | ||||
| 9453 | |||||
| 9454 | bool Database::RegisterTransaction(TransactionBase& aTransaction) { | ||||
| 9455 | AssertIsOnBackgroundThread(); | ||||
| 9456 | 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", 9456) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Contains(&aTransaction)" ")"); do { MOZ_CrashSequence(__null, 9456); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9457 | 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", 9457) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 9457); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9458 | 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", 9458); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mInvalidated" ")") ; do { MOZ_CrashSequence(__null, 9458); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9459 | 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" , 9459); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")" ); do { MOZ_CrashSequence(__null, 9459); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9460 | |||||
| 9461 | 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" , 9461)) { | ||||
| 9462 | return false; | ||||
| 9463 | } | ||||
| 9464 | |||||
| 9465 | return true; | ||||
| 9466 | } | ||||
| 9467 | |||||
| 9468 | void Database::UnregisterTransaction(TransactionBase& aTransaction) { | ||||
| 9469 | AssertIsOnBackgroundThread(); | ||||
| 9470 | 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", 9470) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransactions.Contains(&aTransaction)" ")"); do { MOZ_CrashSequence(__null, 9470); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9471 | |||||
| 9472 | mTransactions.Remove(&aTransaction); | ||||
| 9473 | |||||
| 9474 | MaybeCloseConnection(); | ||||
| 9475 | } | ||||
| 9476 | |||||
| 9477 | void Database::SetActorAlive() { | ||||
| 9478 | AssertIsOnBackgroundThread(); | ||||
| 9479 | 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", 9479) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9479); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9480 | |||||
| 9481 | mActorWasAlive.Flip(); | ||||
| 9482 | } | ||||
| 9483 | |||||
| 9484 | void Database::MapBlob(const IPCBlob& aIPCBlob, | ||||
| 9485 | SafeRefPtr<DatabaseFileInfo> aFileInfo) { | ||||
| 9486 | AssertIsOnBackgroundThread(); | ||||
| 9487 | |||||
| 9488 | const RemoteLazyStream& stream = aIPCBlob.inputStream(); | ||||
| 9489 | 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" , 9489); AnnotateMozCrashReason("MOZ_ASSERT" "(" "stream.type() == RemoteLazyStream::TRemoteLazyInputStream" ")"); do { MOZ_CrashSequence(__null, 9489); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9490 | |||||
| 9491 | nsID id{}; | ||||
| 9492 | 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", 9493) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" ")"); do { MOZ_CrashSequence(__null, 9493); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ) | ||||
| 9493 | 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", 9493) ; AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stream.get_RemoteLazyInputStream()->GetInternalStreamID(id))" ")"); do { MOZ_CrashSequence(__null, 9493); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9494 | |||||
| 9495 | 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", 9495) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMappedBlobs.Contains(id)" ")"); do { MOZ_CrashSequence(__null, 9495); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9496 | mMappedBlobs.InsertOrUpdate(id, std::move(aFileInfo)); | ||||
| 9497 | |||||
| 9498 | RefPtr<UnmapBlobCallback> callback = | ||||
| 9499 | new UnmapBlobCallback(SafeRefPtrFromThis()); | ||||
| 9500 | |||||
| 9501 | auto storage = RemoteLazyInputStreamStorage::Get(); | ||||
| 9502 | 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", 9502) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "storage.isOk()" ")" ); do { MOZ_CrashSequence(__null, 9502); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9503 | storage.inspect()->StoreCallback(id, callback); | ||||
| 9504 | } | ||||
| 9505 | |||||
| 9506 | void Database::Stringify(nsACString& aResult) const { | ||||
| 9507 | AssertIsOnBackgroundThread(); | ||||
| 9508 | |||||
| 9509 | constexpr auto kQuotaGenericDelimiterString = "|"_ns; | ||||
| 9510 | |||||
| 9511 | aResult.Append( | ||||
| 9512 | "DirectoryLock:"_ns + IntToCString(!!mDirectoryLockHandle) + | ||||
| 9513 | kQuotaGenericDelimiterString + | ||||
| 9514 | // | ||||
| 9515 | "Transactions:"_ns + IntToCString(mTransactions.Count()) + | ||||
| 9516 | kQuotaGenericDelimiterString + | ||||
| 9517 | // | ||||
| 9518 | "OtherProcessActor:"_ns + | ||||
| 9519 | IntToCString( | ||||
| 9520 | BackgroundParent::IsOtherProcessActor(GetBackgroundParent())) + | ||||
| 9521 | kQuotaGenericDelimiterString + | ||||
| 9522 | // | ||||
| 9523 | "Origin:"_ns + AnonymizedOriginString(mOriginMetadata.mOrigin) + | ||||
| 9524 | kQuotaGenericDelimiterString + | ||||
| 9525 | // | ||||
| 9526 | "PersistenceType:"_ns + PersistenceTypeToString(mPersistenceType) + | ||||
| 9527 | kQuotaGenericDelimiterString + | ||||
| 9528 | // | ||||
| 9529 | "Closed:"_ns + IntToCString(static_cast<bool>(mClosed)) + | ||||
| 9530 | kQuotaGenericDelimiterString + | ||||
| 9531 | // | ||||
| 9532 | "Invalidated:"_ns + IntToCString(static_cast<bool>(mInvalidated)) + | ||||
| 9533 | kQuotaGenericDelimiterString + | ||||
| 9534 | // | ||||
| 9535 | "ActorWasAlive:"_ns + IntToCString(static_cast<bool>(mActorWasAlive)) + | ||||
| 9536 | kQuotaGenericDelimiterString + | ||||
| 9537 | // | ||||
| 9538 | "ActorDestroyed:"_ns + IntToCString(static_cast<bool>(mActorDestroyed))); | ||||
| 9539 | } | ||||
| 9540 | |||||
| 9541 | SafeRefPtr<DatabaseFileInfo> Database::GetBlob(const IPCBlob& aIPCBlob) { | ||||
| 9542 | AssertIsOnBackgroundThread(); | ||||
| 9543 | |||||
| 9544 | RefPtr<RemoteLazyInputStream> lazyStream; | ||||
| 9545 | switch (aIPCBlob.inputStream().type()) { | ||||
| 9546 | case RemoteLazyStream::TIPCStream: { | ||||
| 9547 | const InputStreamParams& inputStreamParams = | ||||
| 9548 | aIPCBlob.inputStream().get_IPCStream().stream(); | ||||
| 9549 | if (inputStreamParams.type() != | ||||
| 9550 | InputStreamParams::TRemoteLazyInputStreamParams) { | ||||
| 9551 | return nullptr; | ||||
| 9552 | } | ||||
| 9553 | lazyStream = inputStreamParams.get_RemoteLazyInputStreamParams().stream(); | ||||
| 9554 | break; | ||||
| 9555 | } | ||||
| 9556 | case RemoteLazyStream::TRemoteLazyInputStream: | ||||
| 9557 | lazyStream = aIPCBlob.inputStream().get_RemoteLazyInputStream(); | ||||
| 9558 | break; | ||||
| 9559 | default: | ||||
| 9560 | 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" , 9560); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Unknown RemoteLazyStream type" ")" ); do { MOZ_CrashSequence(__null, 9560); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9561 | return nullptr; | ||||
| 9562 | } | ||||
| 9563 | |||||
| 9564 | if (!lazyStream) { | ||||
| 9565 | 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" , 9565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Unexpected null stream" ")"); do { MOZ_CrashSequence(__null, 9565); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 9566 | return nullptr; | ||||
| 9567 | } | ||||
| 9568 | |||||
| 9569 | nsID id{}; | ||||
| 9570 | nsresult rv = lazyStream->GetInternalStreamID(id); | ||||
| 9571 | if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { | ||||
| 9572 | 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", 9573 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")"); do { MOZ_CrashSequence(__null, 9573); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9573 | "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", 9573 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "MOZ_ASSERT_UNREACHABLE: " "Received RemoteLazyInputStream doesn't have an actor connection" ")"); do { MOZ_CrashSequence(__null, 9573); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9574 | return nullptr; | ||||
| 9575 | } | ||||
| 9576 | |||||
| 9577 | const auto fileInfo = mMappedBlobs.Lookup(id); | ||||
| 9578 | return fileInfo ? fileInfo->clonePtr() : nullptr; | ||||
| 9579 | } | ||||
| 9580 | |||||
| 9581 | void Database::UnmapBlob(const nsID& aID) { | ||||
| 9582 | AssertIsOnBackgroundThread(); | ||||
| 9583 | |||||
| 9584 | 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", 9584) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMappedBlobs.Contains(aID)" ")"); do { MOZ_CrashSequence(__null, 9584); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 9585 | mMappedBlobs.Remove(aID); | ||||
| 9586 | } | ||||
| 9587 | |||||
| 9588 | void Database::UnmapAllBlobs() { | ||||
| 9589 | AssertIsOnBackgroundThread(); | ||||
| 9590 | |||||
| 9591 | #ifdef DEBUG1 | ||||
| 9592 | mAllBlobsUnmapped = true; | ||||
| 9593 | #endif | ||||
| 9594 | |||||
| 9595 | mMappedBlobs.Clear(); | ||||
| 9596 | } | ||||
| 9597 | |||||
| 9598 | bool Database::CloseInternal() { | ||||
| 9599 | AssertIsOnBackgroundThread(); | ||||
| 9600 | |||||
| 9601 | if (mClosed) { | ||||
| 9602 | if (NS_WARN_IF(!IsInvalidated())NS_warn_if_impl(!IsInvalidated(), "!IsInvalidated()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9602)) { | ||||
| 9603 | // Signal misbehaving child for sending the close message twice. | ||||
| 9604 | return false; | ||||
| 9605 | } | ||||
| 9606 | |||||
| 9607 | // Ignore harmless race when we just invalidated the database. | ||||
| 9608 | return true; | ||||
| 9609 | } | ||||
| 9610 | |||||
| 9611 | mClosed.Flip(); | ||||
| 9612 | |||||
| 9613 | if (gConnectionPool) { | ||||
| 9614 | gConnectionPool->CloseDatabaseWhenIdle(Id()); | ||||
| 9615 | } | ||||
| 9616 | |||||
| 9617 | DatabaseActorInfo* info; | ||||
| 9618 | 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", 9618) ; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)" ")"); do { MOZ_CrashSequence(__null, 9618); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9619 | |||||
| 9620 | 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", 9620) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(this)" ")"); do { MOZ_CrashSequence(__null, 9620); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9621 | |||||
| 9622 | if (info->mWaitingFactoryOp) { | ||||
| 9623 | info->mWaitingFactoryOp->NoteDatabaseClosed(this); | ||||
| 9624 | } | ||||
| 9625 | |||||
| 9626 | MaybeCloseConnection(); | ||||
| 9627 | |||||
| 9628 | return true; | ||||
| 9629 | } | ||||
| 9630 | |||||
| 9631 | void Database::MaybeCloseConnection() { | ||||
| 9632 | AssertIsOnBackgroundThread(); | ||||
| 9633 | |||||
| 9634 | if (!mTransactions.Count() && IsClosed() && mDirectoryLockHandle) { | ||||
| 9635 | nsCOMPtr<nsIRunnable> callback = | ||||
| 9636 | NewRunnableMethod("dom::indexedDB::Database::ConnectionClosedCallback", | ||||
| 9637 | this, &Database::ConnectionClosedCallback); | ||||
| 9638 | |||||
| 9639 | RefPtr<WaitForTransactionsHelper> helper = | ||||
| 9640 | new WaitForTransactionsHelper(Id(), callback); | ||||
| 9641 | helper->WaitForTransactions(); | ||||
| 9642 | } | ||||
| 9643 | } | ||||
| 9644 | |||||
| 9645 | void Database::ConnectionClosedCallback() { | ||||
| 9646 | AssertIsOnBackgroundThread(); | ||||
| 9647 | 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" , 9647); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mClosed" ")" ); do { MOZ_CrashSequence(__null, 9647); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9648 | 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", 9648) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransactions.Count()" ")"); do { MOZ_CrashSequence(__null, 9648); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9649 | |||||
| 9650 | { | ||||
| 9651 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 9652 | } | ||||
| 9653 | |||||
| 9654 | CleanupMetadata(); | ||||
| 9655 | |||||
| 9656 | UnmapAllBlobs(); | ||||
| 9657 | |||||
| 9658 | if (IsInvalidated() && IsActorAlive()) { | ||||
| 9659 | // Step 3 and 4 of "5.2 Closing a Database": | ||||
| 9660 | // 1. Wait for all transactions to complete. | ||||
| 9661 | // 2. Fire a close event if forced flag is set, i.e., IsInvalidated() in our | ||||
| 9662 | // implementation. | ||||
| 9663 | (void)SendCloseAfterInvalidationComplete(); | ||||
| 9664 | } | ||||
| 9665 | } | ||||
| 9666 | |||||
| 9667 | void Database::CleanupMetadata() { | ||||
| 9668 | AssertIsOnBackgroundThread(); | ||||
| 9669 | |||||
| 9670 | DatabaseActorInfo* info; | ||||
| 9671 | 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", 9671) ; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)" ")"); do { MOZ_CrashSequence(__null, 9671); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9672 | removeFrom(info->mLiveDatabases); | ||||
| 9673 | |||||
| 9674 | QuotaManager::MaybeRecordQuotaClientShutdownStep( | ||||
| 9675 | quota::Client::IDB, "Live database entry removed"_ns); | ||||
| 9676 | |||||
| 9677 | if (info->mLiveDatabases.isEmpty()) { | ||||
| 9678 | 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", 9679) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { MOZ_CrashSequence(__null, 9679); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9679 | !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", 9679) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp || !info->mWaitingFactoryOp->HasBlockedDatabases()" ")"); do { MOZ_CrashSequence(__null, 9679); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9680 | gLiveDatabaseHashtable->Remove(Id()); | ||||
| 9681 | |||||
| 9682 | QuotaManager::MaybeRecordQuotaClientShutdownStep( | ||||
| 9683 | quota::Client::IDB, "gLiveDatabaseHashtable entry removed"_ns); | ||||
| 9684 | } | ||||
| 9685 | |||||
| 9686 | // Match the IncreaseBusyCount in OpenDatabaseOp::EnsureDatabaseActor(). | ||||
| 9687 | DecreaseBusyCount(); | ||||
| 9688 | } | ||||
| 9689 | |||||
| 9690 | void Database::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 9691 | AssertIsOnBackgroundThread(); | ||||
| 9692 | |||||
| 9693 | mActorDestroyed.Flip(); | ||||
| 9694 | |||||
| 9695 | if (!IsInvalidated()) { | ||||
| 9696 | Invalidate(); | ||||
| 9697 | } | ||||
| 9698 | } | ||||
| 9699 | |||||
| 9700 | PBackgroundIDBDatabaseFileParent* | ||||
| 9701 | Database::AllocPBackgroundIDBDatabaseFileParent(const IPCBlob& aIPCBlob) { | ||||
| 9702 | AssertIsOnBackgroundThread(); | ||||
| 9703 | |||||
| 9704 | SafeRefPtr<DatabaseFileInfo> fileInfo = GetBlob(aIPCBlob); | ||||
| 9705 | RefPtr<DatabaseFile> actor; | ||||
| 9706 | |||||
| 9707 | if (fileInfo) { | ||||
| 9708 | actor = new DatabaseFile(std::move(fileInfo)); | ||||
| 9709 | } else { | ||||
| 9710 | // This is a blob we haven't seen before. | ||||
| 9711 | fileInfo = mFileManager->CreateFileInfo(); | ||||
| 9712 | if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9712)) { | ||||
| 9713 | return nullptr; | ||||
| 9714 | } | ||||
| 9715 | |||||
| 9716 | actor = new DatabaseFile(IPCBlobUtils::Deserialize(aIPCBlob), | ||||
| 9717 | std::move(fileInfo)); | ||||
| 9718 | } | ||||
| 9719 | |||||
| 9720 | 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" , 9720); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")") ; do { MOZ_CrashSequence(__null, 9720); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9721 | |||||
| 9722 | return actor.forget().take(); | ||||
| 9723 | } | ||||
| 9724 | |||||
| 9725 | bool Database::DeallocPBackgroundIDBDatabaseFileParent( | ||||
| 9726 | PBackgroundIDBDatabaseFileParent* aActor) { | ||||
| 9727 | AssertIsOnBackgroundThread(); | ||||
| 9728 | 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" , 9728); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 9728); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9729 | |||||
| 9730 | RefPtr<DatabaseFile> actor = dont_AddRef(static_cast<DatabaseFile*>(aActor)); | ||||
| 9731 | return true; | ||||
| 9732 | } | ||||
| 9733 | |||||
| 9734 | already_AddRefed<PBackgroundIDBTransactionParent> | ||||
| 9735 | Database::AllocPBackgroundIDBTransactionParent( | ||||
| 9736 | const nsTArray<nsString>& aObjectStoreNames, const Mode& aMode, | ||||
| 9737 | const Durability& aDurability) { | ||||
| 9738 | AssertIsOnBackgroundThread(); | ||||
| 9739 | |||||
| 9740 | // Once a database is closed it must not try to open new transactions. | ||||
| 9741 | if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9741)) { | ||||
| 9742 | 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" , 9742); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated" ")"); do { MOZ_CrashSequence(__null, 9742); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9743 | return nullptr; | ||||
| 9744 | } | ||||
| 9745 | |||||
| 9746 | 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" , 9746); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aObjectStoreNames.IsEmpty()" ")"); do { MOZ_CrashSequence(__null , 9746); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aObjectStoreNames.IsEmpty ()))) { | ||||
| 9747 | return nullptr; | ||||
| 9748 | } | ||||
| 9749 | |||||
| 9750 | 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", 9753 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9753); __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)) | ||||
| 9751 | 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", 9753 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9753); __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)) | ||||
| 9752 | 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", 9753 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9753); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction ::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode ::Cleanup)) | ||||
| 9753 | aMode != IDBTransaction::Mode::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", 9753 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9753); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aMode != IDBTransaction::Mode::ReadOnly && aMode != IDBTransaction::Mode::ReadWrite && aMode != IDBTransaction ::Mode::ReadWriteFlush && aMode != IDBTransaction::Mode ::Cleanup))) { | ||||
| 9754 | return nullptr; | ||||
| 9755 | } | ||||
| 9756 | |||||
| 9757 | 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", 9759 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9759); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed)) | ||||
| 9758 | 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", 9759 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9759); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed)) | ||||
| 9759 | 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", 9759 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9759); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((aDurability != IDBTransaction::Durability::Default && aDurability != IDBTransaction::Durability::Strict && aDurability != IDBTransaction::Durability::Relaxed))) { | ||||
| 9760 | return nullptr; | ||||
| 9761 | } | ||||
| 9762 | |||||
| 9763 | const ObjectStoreTable& objectStores = mMetadata->mObjectStores; | ||||
| 9764 | const uint32_t nameCount = aObjectStoreNames.Length(); | ||||
| 9765 | |||||
| 9766 | 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" , 9766); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "nameCount > objectStores.Count()" ")"); do { MOZ_CrashSequence (__null, 9766); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((nameCount > objectStores .Count()))) { | ||||
| 9767 | return nullptr; | ||||
| 9768 | } | ||||
| 9769 | |||||
| 9770 | QM_TRY_UNWRAP(auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9771 | auto objectStoreMetadatas,auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9772 | TransformIntoNewArrayAbortOnErr(auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9773 | aObjectStoreNames,auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9774 | [lastName = Maybe<const nsString&>{},auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9775 | &objectStores](const nsString& name) mutableauto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9776 | -> mozilla::Result<SafeRefPtr<FullObjectStoreMetadata>,auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9777 | nsresult> {auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9778 | if (lastName) {auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9779 | // Make sure that this name is sorted properly and not aauto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9780 | // duplicate.auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9781 | if (NS_AUUF_OR_WARN_IF(name <= lastName.ref())) {auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9782 | return Err(NS_ERROR_FAILURE);auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9783 | }auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9784 | }auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9785 | lastName = SomeRef(name);auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9786 | |||||
| 9787 | const auto foundIt =auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9788 | std::find_if(objectStores.cbegin(), objectStores.cend(),auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9789 | [&name](const auto& entry) {auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9790 | const auto& value = entry.GetData();auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9791 | MOZ_ASSERT(entry.GetKey());auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9792 | return name == value->mCommonMetadata.name() &&auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9793 | !value->mDeleted;auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9794 | });auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9795 | if (foundIt == objectStores.cend()) {auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9796 | MOZ_ASSERT_UNLESS_FUZZING(false, "ObjectStore not found.");auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9797 | return Err(NS_ERROR_FAILURE);auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9798 | }auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9799 | |||||
| 9800 | return foundIt->GetData().clonePtr();auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9801 | },auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9802 | fallible),auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap(); | ||||
| 9803 | nullptr)auto tryResult1009 = (TransformIntoNewArrayAbortOnErr( aObjectStoreNames , [lastName = Maybe<const nsString&>{}, &objectStores ](const nsString& name) mutable -> mozilla::Result< SafeRefPtr<FullObjectStoreMetadata>, nsresult> { if ( lastName) { if ([](bool aCond) { if ((__builtin_expect(!!(aCond ), 0))) { do { static_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", 9781 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "name <= lastName.ref()" ")"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } return aCond ; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE ); } } lastName = SomeRef(name); const auto foundIt = std::find_if (objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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", 9791) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "entry.GetKey()" ")" ); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted ; }); if (foundIt == objectStores.cend()) { do { static_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" , 9796); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "ObjectStore not found." ")"); do { MOZ_CrashSequence(__null , 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt ->GetData().clonePtr(); }, fallible)); if ((__builtin_expect (!!(tryResult1009.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1009.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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __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" , 9803, 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\", 9781); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"name <= lastName.ref()\" \")\"); do { MOZ_CrashSequence(__null, 9781); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((name <= lastName.ref()))) { return Err(NS_ERROR_FAILURE); } } lastName = SomeRef(name); const auto foundIt = std::find_if(objectStores.cbegin(), objectStores.cend(), [&name](const auto& entry) { const auto& value = entry.GetData(); do { static_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\", 9791); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"entry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 9791); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return name == value->mCommonMetadata.name() && !value->mDeleted; }); if (foundIt == objectStores.cend()) { do { static_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\", 9796); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"false\" \") (\" \"ObjectStore not found.\" \")\"); do { MOZ_CrashSequence(__null, 9796); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Err(NS_ERROR_FAILURE); } return foundIt->GetData().clonePtr(); }, fallible)" , tryTempError, nullptr); } auto objectStoreMetadatas = tryResult1009 .unwrap();; | ||||
| 9804 | |||||
| 9805 | return MakeSafeRefPtr<NormalTransaction>(SafeRefPtrFromThis(), aMode, | ||||
| 9806 | aDurability, | ||||
| 9807 | std::move(objectStoreMetadatas)) | ||||
| 9808 | .forget(); | ||||
| 9809 | } | ||||
| 9810 | |||||
| 9811 | mozilla::ipc::IPCResult Database::RecvPBackgroundIDBTransactionConstructor( | ||||
| 9812 | PBackgroundIDBTransactionParent* aActor, | ||||
| 9813 | nsTArray<nsString>&& aObjectStoreNames, const Mode& aMode, | ||||
| 9814 | const Durability& aDurability) { | ||||
| 9815 | AssertIsOnBackgroundThread(); | ||||
| 9816 | 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" , 9816); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 9816); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9817 | 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" , 9817); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreNames.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 9817); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9818 | 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", 9821) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9821); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9819 | 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", 9821) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9821); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9820 | 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", 9821) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9821); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9821 | 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", 9821) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMode == IDBTransaction::Mode::ReadOnly || aMode == IDBTransaction::Mode::ReadWrite || aMode == IDBTransaction::Mode::ReadWriteFlush || aMode == IDBTransaction::Mode::Cleanup" ")"); do { MOZ_CrashSequence(__null, 9821); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9822 | 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", 9824) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9824); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9823 | 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", 9824) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9824); __attribute__((nomerge )) ::abort(); } while (false); } } while (false) | ||||
| 9824 | 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", 9824) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDurability == IDBTransaction::Durability::Default || aDurability == IDBTransaction::Durability::Strict || aDurability == IDBTransaction::Durability::Relaxed" ")"); do { MOZ_CrashSequence(__null, 9824); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9825 | 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" , 9825); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mClosed" ")" ); do { MOZ_CrashSequence(__null, 9825); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9826 | |||||
| 9827 | if (IsInvalidated()) { | ||||
| 9828 | // This is an expected race. We don't want the child to die here, just don't | ||||
| 9829 | // actually do any work. | ||||
| 9830 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9831 | } | ||||
| 9832 | |||||
| 9833 | if (!gConnectionPool) { | ||||
| 9834 | gConnectionPool = new ConnectionPool(); | ||||
| 9835 | } | ||||
| 9836 | |||||
| 9837 | auto* transaction = static_cast<NormalTransaction*>(aActor); | ||||
| 9838 | |||||
| 9839 | RefPtr<StartTransactionOp> startOp = new StartTransactionOp( | ||||
| 9840 | SafeRefPtr{transaction, AcquireStrongRefFromRawPtr{}}); | ||||
| 9841 | |||||
| 9842 | uint64_t transactionId = startOp->StartOnConnectionPool( | ||||
| 9843 | GetLoggingInfo()->Id(), mMetadata->mDatabaseId, | ||||
| 9844 | transaction->LoggingSerialNumber(), aObjectStoreNames, | ||||
| 9845 | aMode != IDBTransaction::Mode::ReadOnly); | ||||
| 9846 | |||||
| 9847 | transaction->Init(transactionId); | ||||
| 9848 | |||||
| 9849 | if (NS_WARN_IF(!RegisterTransaction(*transaction))NS_warn_if_impl(!RegisterTransaction(*transaction), "!RegisterTransaction(*transaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9849)) { | ||||
| 9850 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9850, idbInternalErrMsg.get()); } while (0); | ||||
| 9851 | transaction->Abort(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, /* aForce */ false); | ||||
| 9852 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9853 | } | ||||
| 9854 | |||||
| 9855 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9856 | } | ||||
| 9857 | |||||
| 9858 | mozilla::ipc::IPCResult Database::RecvDeleteMe() { | ||||
| 9859 | AssertIsOnBackgroundThread(); | ||||
| 9860 | 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", 9860) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9860); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9861 | |||||
| 9862 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))){auto tryResult1010 = (OkIf(PBackgroundIDBDatabaseParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult1010)::ok_type>); if ((__builtin_expect(!!(tryResult1010 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBDatabaseParent::Send__delete__(this))" , tryResult1010.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9862, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 9863 | |||||
| 9864 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9865 | } | ||||
| 9866 | |||||
| 9867 | mozilla::ipc::IPCResult Database::RecvBlocked() { | ||||
| 9868 | AssertIsOnBackgroundThread(); | ||||
| 9869 | |||||
| 9870 | if (NS_WARN_IF(mClosed)NS_warn_if_impl(mClosed, "mClosed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9870)) { | ||||
| 9871 | // Even though the sender checks the DB for not being closed, too, | ||||
| 9872 | // there is a potential race with an ongoing origin clearing which | ||||
| 9873 | // might have invalidated the DB in the meantime. Just ignore. | ||||
| 9874 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9875 | } | ||||
| 9876 | |||||
| 9877 | DatabaseActorInfo* info; | ||||
| 9878 | 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", 9878) ; AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(Id(), &info)" ")"); do { MOZ_CrashSequence(__null, 9878); __attribute__((nomerge )) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 9879 | 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", 9879) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(this)" ")"); do { MOZ_CrashSequence(__null, 9879); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9880 | |||||
| 9881 | if (NS_WARN_IF(!info->mWaitingFactoryOp)NS_warn_if_impl(!info->mWaitingFactoryOp, "!info->mWaitingFactoryOp" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 9881)) { | ||||
| 9882 | return IPC_FAIL(this, "Database info has no mWaitingFactoryOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Database info has no mWaitingFactoryOp!" )); | ||||
| 9883 | } | ||||
| 9884 | |||||
| 9885 | info->mWaitingFactoryOp->NoteDatabaseBlocked(this); | ||||
| 9886 | |||||
| 9887 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9888 | } | ||||
| 9889 | |||||
| 9890 | mozilla::ipc::IPCResult Database::RecvClose() { | ||||
| 9891 | AssertIsOnBackgroundThread(); | ||||
| 9892 | |||||
| 9893 | if (NS_WARN_IF(!CloseInternal())NS_warn_if_impl(!CloseInternal(), "!CloseInternal()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9893)) { | ||||
| 9894 | return IPC_FAIL(this, "CloseInternal failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("CloseInternal failed!" )); | ||||
| 9895 | } | ||||
| 9896 | |||||
| 9897 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 9898 | } | ||||
| 9899 | |||||
| 9900 | void Database::StartTransactionOp::RunOnConnectionThread() { | ||||
| 9901 | 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", 9901) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 9901); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9902 | 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" , 9902); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 9902); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9903 | |||||
| 9904 | 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) | ||||
| 9905 | 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) | ||||
| 9906 | 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); | ||||
| 9907 | |||||
| 9908 | TransactionDatabaseOperationBase::RunOnConnectionThread(); | ||||
| 9909 | } | ||||
| 9910 | |||||
| 9911 | nsresult Database::StartTransactionOp::DoDatabaseWork( | ||||
| 9912 | DatabaseConnection* aConnection) { | ||||
| 9913 | 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" , 9913); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 9913); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9914 | aConnection->AssertIsOnConnectionThread(); | ||||
| 9915 | |||||
| 9916 | Transaction().SetActiveOnConnectionThread(); | ||||
| 9917 | |||||
| 9918 | if (Transaction().GetMode() == IDBTransaction::Mode::Cleanup) { | ||||
| 9919 | DebugOnly<nsresult> rv = aConnection->DisableQuotaChecks(); | ||||
| 9920 | 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", 9922) ; } } while (false) | ||||
| 9921 | "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", 9922) ; } } while (false) | ||||
| 9922 | "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", 9922) ; } } while (false); | ||||
| 9923 | } | ||||
| 9924 | |||||
| 9925 | if (Transaction().GetMode() != IDBTransaction::Mode::ReadOnly) { | ||||
| 9926 | QM_TRY(MOZ_TO_RESULT({auto tryResult1011 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult1011)::ok_type>); if ((__builtin_expect (!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9927, mozilla::dom::quota::Severity::Error); return tryResult1011 .propagateErr(); }} | ||||
| 9927 | aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1011 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult1011)::ok_type>); if ((__builtin_expect (!!(tryResult1011.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult1011.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9927, mozilla::dom::quota::Severity::Error); return tryResult1011 .propagateErr(); }}; | ||||
| 9928 | } | ||||
| 9929 | |||||
| 9930 | return NS_OK; | ||||
| 9931 | } | ||||
| 9932 | |||||
| 9933 | TransactionOpResult Database::StartTransactionOp::SendSuccessResult() { | ||||
| 9934 | // We don't need to do anything here. | ||||
| 9935 | return NS_OK; | ||||
| 9936 | } | ||||
| 9937 | |||||
| 9938 | bool Database::StartTransactionOp::SendFailureResult( | ||||
| 9939 | const TransactionOpResult& /* aResult */) { | ||||
| 9940 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 9940, idbInternalErrMsg.get()); } while (0); | ||||
| 9941 | |||||
| 9942 | // Abort the transaction. | ||||
| 9943 | return false; | ||||
| 9944 | } | ||||
| 9945 | |||||
| 9946 | void Database::StartTransactionOp::Cleanup() { | ||||
| 9947 | #ifdef DEBUG1 | ||||
| 9948 | // StartTransactionOp is not a normal database operation that is tied to an | ||||
| 9949 | // actor. Do this to make our assertions happy. | ||||
| 9950 | NoteActorDestroyed(); | ||||
| 9951 | #endif | ||||
| 9952 | |||||
| 9953 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 9954 | } | ||||
| 9955 | |||||
| 9956 | /******************************************************************************* | ||||
| 9957 | * TransactionBase | ||||
| 9958 | ******************************************************************************/ | ||||
| 9959 | |||||
| 9960 | TransactionBase::TransactionBase(SafeRefPtr<Database> aDatabase, Mode aMode, | ||||
| 9961 | Durability aDurability) | ||||
| 9962 | : mDatabase(std::move(aDatabase)), | ||||
| 9963 | mDatabaseId(mDatabase->Id()), | ||||
| 9964 | mLoggingSerialNumber( | ||||
| 9965 | mDatabase->GetLoggingInfo()->NextTransactionSN(aMode)), | ||||
| 9966 | mActiveRequestCount(0), | ||||
| 9967 | mInvalidatedOnAnyThread(false), | ||||
| 9968 | mMode(aMode), | ||||
| 9969 | mDurability(aDurability), | ||||
| 9970 | mResultCode(NS_OK) { | ||||
| 9971 | AssertIsOnBackgroundThread(); | ||||
| 9972 | 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" , 9972); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")" ); do { MOZ_CrashSequence(__null, 9972); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9973 | 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", 9973) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLoggingSerialNumber" ")"); do { MOZ_CrashSequence(__null, 9973); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9974 | } | ||||
| 9975 | |||||
| 9976 | TransactionBase::~TransactionBase() { | ||||
| 9977 | 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", 9977) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActiveRequestCount" ")"); do { MOZ_CrashSequence(__null, 9977); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9978 | 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", 9978) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 9978); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9979 | 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" , 9979); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCommittedOrAborted" ")"); do { MOZ_CrashSequence(__null, 9979); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } } while ( false); | ||||
| 9980 | } | ||||
| 9981 | |||||
| 9982 | void TransactionBase::Abort(nsresult aResultCode, bool aForce) { | ||||
| 9983 | AssertIsOnBackgroundThread(); | ||||
| 9984 | 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", 9984) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 9984); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 9985 | |||||
| 9986 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 9987 | mResultCode = aResultCode; | ||||
| 9988 | } | ||||
| 9989 | |||||
| 9990 | if (aForce) { | ||||
| 9991 | mForceAborted.EnsureFlipped(); | ||||
| 9992 | } | ||||
| 9993 | |||||
| 9994 | MaybeCommitOrAbort(); | ||||
| 9995 | } | ||||
| 9996 | |||||
| 9997 | mozilla::ipc::IPCResult TransactionBase::RecvCommit( | ||||
| 9998 | IProtocol* aActor, const Maybe<int64_t> aLastRequest) { | ||||
| 9999 | AssertIsOnBackgroundThread(); | ||||
| 10000 | |||||
| 10001 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10001 )) { | ||||
| 10002 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to commit an already comitted/aborted transaction!") ) | ||||
| 10003 | aActor, "Attempt to commit an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to commit an already comitted/aborted transaction!") ); | ||||
| 10004 | } | ||||
| 10005 | |||||
| 10006 | mCommitOrAbortReceived.Flip(); | ||||
| 10007 | mLastRequestBeforeCommit.init(aLastRequest); | ||||
| 10008 | MaybeCommitOrAbort(); | ||||
| 10009 | |||||
| 10010 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10011 | } | ||||
| 10012 | |||||
| 10013 | mozilla::ipc::IPCResult TransactionBase::RecvAbort(IProtocol* aActor, | ||||
| 10014 | nsresult aResultCode) { | ||||
| 10015 | AssertIsOnBackgroundThread(); | ||||
| 10016 | |||||
| 10017 | 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" , 10017)) { | ||||
| 10018 | 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!")); | ||||
| 10019 | } | ||||
| 10020 | |||||
| 10021 | 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", 10022 ) | ||||
| 10022 | 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", 10022 )) { | ||||
| 10023 | return IPC_FAIL(aActor, "aResultCode does not refer to IndexedDB!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "aResultCode does not refer to IndexedDB!")); | ||||
| 10024 | } | ||||
| 10025 | |||||
| 10026 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10026 )) { | ||||
| 10027 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to abort an already comitted/aborted transaction!")) | ||||
| 10028 | aActor, "Attempt to abort an already comitted/aborted transaction!")mozilla::ipc::IPCResult::Fail(WrapNotNull(aActor), __func__, ( "Attempt to abort an already comitted/aborted transaction!")); | ||||
| 10029 | } | ||||
| 10030 | |||||
| 10031 | mCommitOrAbortReceived.Flip(); | ||||
| 10032 | Abort(aResultCode, /* aForce */ false); | ||||
| 10033 | |||||
| 10034 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10035 | } | ||||
| 10036 | |||||
| 10037 | void TransactionBase::CommitOrAbort() { | ||||
| 10038 | AssertIsOnBackgroundThread(); | ||||
| 10039 | |||||
| 10040 | mCommittedOrAborted.Flip(); | ||||
| 10041 | |||||
| 10042 | if (!mInitialized) { | ||||
| 10043 | return; | ||||
| 10044 | } | ||||
| 10045 | |||||
| 10046 | // In case of a failed request and explicitly committed transaction, abort | ||||
| 10047 | // (cf. https://w3c.github.io/IndexedDB/#async-execute-request step 5.3 | ||||
| 10048 | // vs. 5.4). It's worth emphasizing this can only happen here when we are | ||||
| 10049 | // committing explicitly, otherwise the decision is made by the child. | ||||
| 10050 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && mLastFailedRequest && | ||||
| 10051 | *mLastRequestBeforeCommit && | ||||
| 10052 | *mLastFailedRequest == **mLastRequestBeforeCommit) { | ||||
| 10053 | mResultCode = NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | ||||
| 10054 | } | ||||
| 10055 | |||||
| 10056 | RefPtr<CommitOp> commitOp = | ||||
| 10057 | new CommitOp(SafeRefPtrFromThis(), ClampResultCode(mResultCode)); | ||||
| 10058 | |||||
| 10059 | gConnectionPool->Finish(TransactionId(), commitOp); | ||||
| 10060 | } | ||||
| 10061 | |||||
| 10062 | SafeRefPtr<FullObjectStoreMetadata> | ||||
| 10063 | TransactionBase::GetMetadataForObjectStoreId( | ||||
| 10064 | IndexOrObjectStoreId aObjectStoreId) const { | ||||
| 10065 | AssertIsOnBackgroundThread(); | ||||
| 10066 | 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", 10066 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 10066); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10067 | |||||
| 10068 | if (!aObjectStoreId) { | ||||
| 10069 | return nullptr; | ||||
| 10070 | } | ||||
| 10071 | |||||
| 10072 | auto metadata = mDatabase->Metadata().mObjectStores.Lookup(aObjectStoreId); | ||||
| 10073 | if (!metadata || (*metadata)->mDeleted) { | ||||
| 10074 | return nullptr; | ||||
| 10075 | } | ||||
| 10076 | |||||
| 10077 | 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" , 10077); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 10077); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10078 | |||||
| 10079 | return metadata->clonePtr(); | ||||
| 10080 | } | ||||
| 10081 | |||||
| 10082 | SafeRefPtr<FullIndexMetadata> TransactionBase::GetMetadataForIndexId( | ||||
| 10083 | FullObjectStoreMetadata& aObjectStoreMetadata, | ||||
| 10084 | IndexOrObjectStoreId aIndexId) const { | ||||
| 10085 | AssertIsOnBackgroundThread(); | ||||
| 10086 | 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" , 10086); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")" ); do { MOZ_CrashSequence(__null, 10086); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10087 | |||||
| 10088 | if (!aIndexId) { | ||||
| 10089 | return nullptr; | ||||
| 10090 | } | ||||
| 10091 | |||||
| 10092 | auto metadata = aObjectStoreMetadata.mIndexes.Lookup(aIndexId); | ||||
| 10093 | if (!metadata || (*metadata)->mDeleted) { | ||||
| 10094 | return nullptr; | ||||
| 10095 | } | ||||
| 10096 | |||||
| 10097 | 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", 10097 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*metadata)->mCommonMetadata.id() == aIndexId" ")"); do { MOZ_CrashSequence(__null, 10097); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10098 | |||||
| 10099 | return metadata->clonePtr(); | ||||
| 10100 | } | ||||
| 10101 | |||||
| 10102 | void TransactionBase::NoteModifiedAutoIncrementObjectStore( | ||||
| 10103 | const SafeRefPtr<FullObjectStoreMetadata>& aMetadata) { | ||||
| 10104 | AssertIsOnConnectionThread(); | ||||
| 10105 | |||||
| 10106 | if (!mModifiedAutoIncrementObjectStoreMetadataArray.Contains(aMetadata)) { | ||||
| 10107 | mModifiedAutoIncrementObjectStoreMetadataArray.AppendElement( | ||||
| 10108 | aMetadata.clonePtr()); | ||||
| 10109 | } | ||||
| 10110 | } | ||||
| 10111 | |||||
| 10112 | void TransactionBase::ForgetModifiedAutoIncrementObjectStore( | ||||
| 10113 | FullObjectStoreMetadata& aMetadata) { | ||||
| 10114 | AssertIsOnConnectionThread(); | ||||
| 10115 | |||||
| 10116 | mModifiedAutoIncrementObjectStoreMetadataArray.RemoveElement(&aMetadata); | ||||
| 10117 | } | ||||
| 10118 | |||||
| 10119 | bool TransactionBase::VerifyRequestParams(const RequestParams& aParams) const { | ||||
| 10120 | AssertIsOnBackgroundThread(); | ||||
| 10121 | 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", 10121 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10121); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10122 | |||||
| 10123 | switch (aParams.type()) { | ||||
| 10124 | case RequestParams::TObjectStoreAddParams: { | ||||
| 10125 | const ObjectStoreAddPutParams& params = | ||||
| 10126 | aParams.get_ObjectStoreAddParams().commonParams(); | ||||
| 10127 | 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" , 10127); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params)" ")"); do { MOZ_CrashSequence( __null, 10127); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params)))) { | ||||
| 10128 | return false; | ||||
| 10129 | } | ||||
| 10130 | break; | ||||
| 10131 | } | ||||
| 10132 | |||||
| 10133 | case RequestParams::TObjectStorePutParams: { | ||||
| 10134 | const ObjectStoreAddPutParams& params = | ||||
| 10135 | aParams.get_ObjectStorePutParams().commonParams(); | ||||
| 10136 | 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" , 10136); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params)" ")"); do { MOZ_CrashSequence( __null, 10136); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params)))) { | ||||
| 10137 | return false; | ||||
| 10138 | } | ||||
| 10139 | break; | ||||
| 10140 | } | ||||
| 10141 | |||||
| 10142 | case RequestParams::TObjectStoreGetParams: { | ||||
| 10143 | const ObjectStoreGetParams& params = aParams.get_ObjectStoreGetParams(); | ||||
| 10144 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10145 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10146 | 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" , 10146); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10146 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10147 | return false; | ||||
| 10148 | } | ||||
| 10149 | 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" , 10149); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10149); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10150 | return false; | ||||
| 10151 | } | ||||
| 10152 | break; | ||||
| 10153 | } | ||||
| 10154 | |||||
| 10155 | case RequestParams::TObjectStoreGetKeyParams: { | ||||
| 10156 | const ObjectStoreGetKeyParams& params = | ||||
| 10157 | aParams.get_ObjectStoreGetKeyParams(); | ||||
| 10158 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10159 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10160 | 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" , 10160); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10160 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10161 | return false; | ||||
| 10162 | } | ||||
| 10163 | 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" , 10163); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10163); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10164 | return false; | ||||
| 10165 | } | ||||
| 10166 | break; | ||||
| 10167 | } | ||||
| 10168 | |||||
| 10169 | case RequestParams::TObjectStoreGetAllParams: { | ||||
| 10170 | const ObjectStoreGetAllParams& params = | ||||
| 10171 | aParams.get_ObjectStoreGetAllParams(); | ||||
| 10172 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10173 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10174 | 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" , 10174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10174 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10175 | return false; | ||||
| 10176 | } | ||||
| 10177 | 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", 10178 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10178); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10178 | !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", 10178 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10178); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10179 | return false; | ||||
| 10180 | } | ||||
| 10181 | break; | ||||
| 10182 | } | ||||
| 10183 | |||||
| 10184 | case RequestParams::TObjectStoreGetAllKeysParams: { | ||||
| 10185 | const ObjectStoreGetAllKeysParams& params = | ||||
| 10186 | aParams.get_ObjectStoreGetAllKeysParams(); | ||||
| 10187 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10188 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10189 | 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" , 10189); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10189 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10190 | return false; | ||||
| 10191 | } | ||||
| 10192 | 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", 10193 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10193); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10193 | !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", 10193 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10193); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10194 | return false; | ||||
| 10195 | } | ||||
| 10196 | break; | ||||
| 10197 | } | ||||
| 10198 | |||||
| 10199 | case RequestParams::TObjectStoreGetAllRecordsParams: { | ||||
| 10200 | const ObjectStoreGetAllRecordsParams& params = | ||||
| 10201 | aParams.get_ObjectStoreGetAllRecordsParams(); | ||||
| 10202 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10203 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10204 | 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" , 10204); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10204 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10205 | return false; | ||||
| 10206 | } | ||||
| 10207 | 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", 10208 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10208); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10208 | !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", 10208 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10208); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10209 | return false; | ||||
| 10210 | } | ||||
| 10211 | break; | ||||
| 10212 | } | ||||
| 10213 | |||||
| 10214 | case RequestParams::TObjectStoreDeleteParams: { | ||||
| 10215 | 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", 10218 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10218); __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)) | ||||
| 10216 | 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", 10218 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10218); __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)) | ||||
| 10217 | 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", 10218 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10218); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange)) | ||||
| 10218 | mMode != IDBTransaction::Mode::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", 10218 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10218); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange))) { | ||||
| 10219 | return false; | ||||
| 10220 | } | ||||
| 10221 | |||||
| 10222 | const ObjectStoreDeleteParams& params = | ||||
| 10223 | aParams.get_ObjectStoreDeleteParams(); | ||||
| 10224 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10225 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10226 | 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" , 10226); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10226 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10227 | return false; | ||||
| 10228 | } | ||||
| 10229 | 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" , 10229); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10229); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10230 | return false; | ||||
| 10231 | } | ||||
| 10232 | break; | ||||
| 10233 | } | ||||
| 10234 | |||||
| 10235 | case RequestParams::TObjectStoreClearParams: { | ||||
| 10236 | 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", 10239 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10239); __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)) | ||||
| 10237 | 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", 10239 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10239); __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)) | ||||
| 10238 | 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", 10239 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10239); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange)) | ||||
| 10239 | mMode != IDBTransaction::Mode::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", 10239 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10239); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::Cleanup && mMode != IDBTransaction ::Mode::VersionChange))) { | ||||
| 10240 | return false; | ||||
| 10241 | } | ||||
| 10242 | |||||
| 10243 | const ObjectStoreClearParams& params = | ||||
| 10244 | aParams.get_ObjectStoreClearParams(); | ||||
| 10245 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10246 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10247 | 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" , 10247); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10247 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10248 | return false; | ||||
| 10249 | } | ||||
| 10250 | break; | ||||
| 10251 | } | ||||
| 10252 | |||||
| 10253 | case RequestParams::TObjectStoreCountParams: { | ||||
| 10254 | const ObjectStoreCountParams& params = | ||||
| 10255 | aParams.get_ObjectStoreCountParams(); | ||||
| 10256 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10257 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10258 | 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" , 10258); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10258 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10259 | return false; | ||||
| 10260 | } | ||||
| 10261 | 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", 10261 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10261); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.optionalKeyRange())))) { | ||||
| 10262 | return false; | ||||
| 10263 | } | ||||
| 10264 | break; | ||||
| 10265 | } | ||||
| 10266 | |||||
| 10267 | case RequestParams::TIndexGetParams: { | ||||
| 10268 | const IndexGetParams& params = aParams.get_IndexGetParams(); | ||||
| 10269 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10270 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10271 | 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" , 10271); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10271 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10272 | return false; | ||||
| 10273 | } | ||||
| 10274 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10275 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10276 | 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" , 10276); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10276) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10277 | return false; | ||||
| 10278 | } | ||||
| 10279 | 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" , 10279); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10279); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10280 | return false; | ||||
| 10281 | } | ||||
| 10282 | break; | ||||
| 10283 | } | ||||
| 10284 | |||||
| 10285 | case RequestParams::TIndexGetKeyParams: { | ||||
| 10286 | const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams(); | ||||
| 10287 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10288 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10289 | 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" , 10289); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10289 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10290 | return false; | ||||
| 10291 | } | ||||
| 10292 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10293 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10294 | 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" , 10294); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10294) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10295 | return false; | ||||
| 10296 | } | ||||
| 10297 | 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" , 10297); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.keyRange())" ")"); do { MOZ_CrashSequence (__null, 10297); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (params.keyRange())))) { | ||||
| 10298 | return false; | ||||
| 10299 | } | ||||
| 10300 | break; | ||||
| 10301 | } | ||||
| 10302 | |||||
| 10303 | case RequestParams::TIndexGetAllParams: { | ||||
| 10304 | const IndexGetAllParams& params = aParams.get_IndexGetAllParams(); | ||||
| 10305 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10306 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10307 | 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" , 10307); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10307 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10308 | return false; | ||||
| 10309 | } | ||||
| 10310 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10311 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10312 | 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" , 10312); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10312) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10313 | return false; | ||||
| 10314 | } | ||||
| 10315 | 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", 10316 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10316); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10316 | !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", 10316 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10316); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10317 | return false; | ||||
| 10318 | } | ||||
| 10319 | break; | ||||
| 10320 | } | ||||
| 10321 | |||||
| 10322 | case RequestParams::TIndexGetAllKeysParams: { | ||||
| 10323 | const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams(); | ||||
| 10324 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10325 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10326 | 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" , 10326); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10326 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10327 | return false; | ||||
| 10328 | } | ||||
| 10329 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10330 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10331 | 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" , 10331); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10331) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10332 | return false; | ||||
| 10333 | } | ||||
| 10334 | 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", 10335 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10335); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10335 | !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", 10335 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10335); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10336 | return false; | ||||
| 10337 | } | ||||
| 10338 | break; | ||||
| 10339 | } | ||||
| 10340 | |||||
| 10341 | case RequestParams::TIndexGetAllRecordsParams: { | ||||
| 10342 | const IndexGetAllRecordsParams& params = | ||||
| 10343 | aParams.get_IndexGetAllRecordsParams(); | ||||
| 10344 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10345 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10346 | 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" , 10346); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10346 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10347 | return false; | ||||
| 10348 | } | ||||
| 10349 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10350 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10351 | 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" , 10351); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10351) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10352 | return false; | ||||
| 10353 | } | ||||
| 10354 | 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", 10355 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10355); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ()))) | ||||
| 10355 | !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", 10355 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.options().optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10355); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.options().optionalKeyRange ())))) { | ||||
| 10356 | return false; | ||||
| 10357 | } | ||||
| 10358 | break; | ||||
| 10359 | } | ||||
| 10360 | |||||
| 10361 | case RequestParams::TIndexCountParams: { | ||||
| 10362 | const IndexCountParams& params = aParams.get_IndexCountParams(); | ||||
| 10363 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 10364 | GetMetadataForObjectStoreId(params.objectStoreId()); | ||||
| 10365 | 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" , 10365); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10365 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10366 | return false; | ||||
| 10367 | } | ||||
| 10368 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10369 | GetMetadataForIndexId(*objectStoreMetadata, params.indexId()); | ||||
| 10370 | 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" , 10370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10370) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10371 | return false; | ||||
| 10372 | } | ||||
| 10373 | 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", 10373 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(params.optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10373); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams(params.optionalKeyRange())))) { | ||||
| 10374 | return false; | ||||
| 10375 | } | ||||
| 10376 | break; | ||||
| 10377 | } | ||||
| 10378 | |||||
| 10379 | default: | ||||
| 10380 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10380 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 10380); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 10381 | } | ||||
| 10382 | |||||
| 10383 | return true; | ||||
| 10384 | } | ||||
| 10385 | |||||
| 10386 | bool TransactionBase::VerifyRequestParams( | ||||
| 10387 | const SerializedKeyRange& aParams) const { | ||||
| 10388 | AssertIsOnBackgroundThread(); | ||||
| 10389 | |||||
| 10390 | // XXX Check more here? | ||||
| 10391 | |||||
| 10392 | if (aParams.isOnly()) { | ||||
| 10393 | 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" , 10393); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset()" ")"); do { MOZ_CrashSequence(__null , 10393); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((aParams.lower().IsUnset ()))) { | ||||
| 10394 | return false; | ||||
| 10395 | } | ||||
| 10396 | 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" , 10396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.upper().IsUnset()" ")"); do { MOZ_CrashSequence(__null , 10396); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((!aParams.upper().IsUnset ()))) { | ||||
| 10397 | return false; | ||||
| 10398 | } | ||||
| 10399 | 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" , 10399); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lowerOpen()" ")"); do { MOZ_CrashSequence(__null, 10399 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lowerOpen()))) { | ||||
| 10400 | return false; | ||||
| 10401 | } | ||||
| 10402 | 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" , 10402); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.upperOpen()" ")"); do { MOZ_CrashSequence(__null, 10402 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.upperOpen()))) { | ||||
| 10403 | return false; | ||||
| 10404 | } | ||||
| 10405 | } 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", 10406 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 10406); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lower().IsUnset() && aParams.upper ().IsUnset())) | ||||
| 10406 | 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", 10406 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.lower().IsUnset() && aParams.upper().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 10406); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((aParams.lower().IsUnset() && aParams.upper ().IsUnset()))) { | ||||
| 10407 | return false; | ||||
| 10408 | } | ||||
| 10409 | |||||
| 10410 | return true; | ||||
| 10411 | } | ||||
| 10412 | |||||
| 10413 | bool TransactionBase::VerifyRequestParams( | ||||
| 10414 | const ObjectStoreAddPutParams& aParams) const { | ||||
| 10415 | AssertIsOnBackgroundThread(); | ||||
| 10416 | |||||
| 10417 | 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", 10419 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10419); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange)) | ||||
| 10418 | 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", 10419 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10419); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange)) | ||||
| 10419 | 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", 10419 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 10419); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mMode != IDBTransaction::Mode::ReadWrite && mMode != IDBTransaction::Mode::ReadWriteFlush && mMode != IDBTransaction::Mode::VersionChange))) { | ||||
| 10420 | return false; | ||||
| 10421 | } | ||||
| 10422 | |||||
| 10423 | SafeRefPtr<FullObjectStoreMetadata> objMetadata = | ||||
| 10424 | GetMetadataForObjectStoreId(aParams.objectStoreId()); | ||||
| 10425 | 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" , 10425); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objMetadata" ")"); do { MOZ_CrashSequence(__null, 10425); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objMetadata))) { | ||||
| 10426 | return false; | ||||
| 10427 | } | ||||
| 10428 | |||||
| 10429 | 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" , 10429); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.cloneInfo().data().data.Size()" ")"); do { MOZ_CrashSequence (__null, 10429); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!aParams.cloneInfo ().data().data.Size()))) { | ||||
| 10430 | return false; | ||||
| 10431 | } | ||||
| 10432 | |||||
| 10433 | if (objMetadata->mCommonMetadata.autoIncrement() && | ||||
| 10434 | objMetadata->mCommonMetadata.keyPath().IsValid() && | ||||
| 10435 | aParams.key().IsUnset()) { | ||||
| 10436 | const SerializedStructuredCloneWriteInfo& cloneInfo = aParams.cloneInfo(); | ||||
| 10437 | |||||
| 10438 | 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" , 10438); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!cloneInfo.offsetToKeyProp()" ")"); do { MOZ_CrashSequence( __null, 10438); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!cloneInfo.offsetToKeyProp ()))) { | ||||
| 10439 | return false; | ||||
| 10440 | } | ||||
| 10441 | |||||
| 10442 | 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", 10442 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.data().data.Size() < sizeof(uint64_t)" ")"); do { MOZ_CrashSequence(__null, 10442); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cloneInfo.data().data.Size() < sizeof(uint64_t) ))) { | ||||
| 10443 | return false; | ||||
| 10444 | } | ||||
| 10445 | |||||
| 10446 | 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", 10447 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 10447); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data() .data.Size() - sizeof(uint64_t)))) | ||||
| 10447 | (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", 10447 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "cloneInfo.offsetToKeyProp() > (cloneInfo.data().data.Size() - sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 10447); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((cloneInfo.offsetToKeyProp() > (cloneInfo.data() .data.Size() - sizeof(uint64_t))))) { | ||||
| 10448 | return false; | ||||
| 10449 | } | ||||
| 10450 | } 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" , 10450); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "aParams.cloneInfo().offsetToKeyProp()" ")"); do { MOZ_CrashSequence (__null, 10450); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((aParams.cloneInfo ().offsetToKeyProp()))) { | ||||
| 10451 | return false; | ||||
| 10452 | } | ||||
| 10453 | |||||
| 10454 | for (const auto& updateInfo : aParams.indexUpdateInfos()) { | ||||
| 10455 | SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 10456 | GetMetadataForIndexId(*objMetadata, updateInfo.indexId()); | ||||
| 10457 | 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" , 10457); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10457) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10458 | return false; | ||||
| 10459 | } | ||||
| 10460 | |||||
| 10461 | 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" , 10461); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "updateInfo.value().IsUnset()" ")"); do { MOZ_CrashSequence( __null, 10461); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((updateInfo.value ().IsUnset()))) { | ||||
| 10462 | return false; | ||||
| 10463 | } | ||||
| 10464 | |||||
| 10465 | 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", 10465 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!updateInfo.value().GetBuffer().IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 10465); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10466 | } | ||||
| 10467 | |||||
| 10468 | for (const FileAddInfo& fileAddInfo : aParams.fileAddInfos()) { | ||||
| 10469 | const PBackgroundIDBDatabaseFileParent* file = | ||||
| 10470 | fileAddInfo.file().AsParent(); | ||||
| 10471 | |||||
| 10472 | switch (fileAddInfo.type()) { | ||||
| 10473 | case StructuredCloneFileBase::eBlob: | ||||
| 10474 | 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" , 10474); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!file" ")"); do { MOZ_CrashSequence(__null, 10474); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!file))) { | ||||
| 10475 | return false; | ||||
| 10476 | } | ||||
| 10477 | |||||
| 10478 | // Reject actors managed by a different Database | ||||
| 10479 | 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", 10481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")"); do { MOZ_CrashSequence(__null, 10481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent *>( &GetDatabase()))) | ||||
| 10480 | 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", 10481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")"); do { MOZ_CrashSequence(__null, 10481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent *>( &GetDatabase()))) | ||||
| 10481 | &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", 10481 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "file->Manager() != static_cast<const PBackgroundIDBDatabaseParent*>( &GetDatabase())" ")"); do { MOZ_CrashSequence(__null, 10481); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((file->Manager() != static_cast<const PBackgroundIDBDatabaseParent *>( &GetDatabase())))) { | ||||
| 10482 | return false; | ||||
| 10483 | } | ||||
| 10484 | break; | ||||
| 10485 | |||||
| 10486 | case StructuredCloneFileBase::eMutableFile: { | ||||
| 10487 | return false; | ||||
| 10488 | } | ||||
| 10489 | |||||
| 10490 | case StructuredCloneFileBase::eStructuredClone: | ||||
| 10491 | case StructuredCloneFileBase::eWasmBytecode: | ||||
| 10492 | case StructuredCloneFileBase::eWasmCompiled: | ||||
| 10493 | case StructuredCloneFileBase::eEndGuard: | ||||
| 10494 | 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", 10494 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "Unsupported." ")"); do { MOZ_CrashSequence(__null, 10494); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10495 | return false; | ||||
| 10496 | |||||
| 10497 | default: | ||||
| 10498 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10498 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 10498); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 10499 | } | ||||
| 10500 | } | ||||
| 10501 | |||||
| 10502 | return true; | ||||
| 10503 | } | ||||
| 10504 | |||||
| 10505 | bool TransactionBase::VerifyRequestParams( | ||||
| 10506 | const Maybe<SerializedKeyRange>& aParams) const { | ||||
| 10507 | AssertIsOnBackgroundThread(); | ||||
| 10508 | |||||
| 10509 | if (aParams.isSome()) { | ||||
| 10510 | 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" , 10510); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams(aParams.ref())" ")"); do { MOZ_CrashSequence (__null, 10510); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!VerifyRequestParams (aParams.ref())))) { | ||||
| 10511 | return false; | ||||
| 10512 | } | ||||
| 10513 | } | ||||
| 10514 | |||||
| 10515 | return true; | ||||
| 10516 | } | ||||
| 10517 | |||||
| 10518 | void TransactionBase::NoteActiveRequest() { | ||||
| 10519 | AssertIsOnBackgroundThread(); | ||||
| 10520 | 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", 10520 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount < (18446744073709551615UL)" ")"); do { MOZ_CrashSequence(__null, 10520); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10521 | |||||
| 10522 | mActiveRequestCount++; | ||||
| 10523 | } | ||||
| 10524 | |||||
| 10525 | void TransactionBase::NoteFinishedRequest(const int64_t aRequestId, | ||||
| 10526 | const nsresult aResultCode) { | ||||
| 10527 | AssertIsOnBackgroundThread(); | ||||
| 10528 | 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", 10528 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActiveRequestCount" ")"); do { MOZ_CrashSequence(__null, 10528); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10529 | |||||
| 10530 | mActiveRequestCount--; | ||||
| 10531 | |||||
| 10532 | if (NS_FAILED(aResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResultCode)), 0)) )) { | ||||
| 10533 | mLastFailedRequest = Some(aRequestId); | ||||
| 10534 | } | ||||
| 10535 | |||||
| 10536 | MaybeCommitOrAbort(); | ||||
| 10537 | } | ||||
| 10538 | |||||
| 10539 | void TransactionBase::Invalidate() { | ||||
| 10540 | AssertIsOnBackgroundThread(); | ||||
| 10541 | 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", 10541 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInvalidated == mInvalidatedOnAnyThread" ")"); do { MOZ_CrashSequence(__null, 10541); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10542 | |||||
| 10543 | if (!mInvalidated) { | ||||
| 10544 | mInvalidated.Flip(); | ||||
| 10545 | mInvalidatedOnAnyThread = true; | ||||
| 10546 | |||||
| 10547 | Abort(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR, /* aForce */ false); | ||||
| 10548 | } | ||||
| 10549 | } | ||||
| 10550 | |||||
| 10551 | PBackgroundIDBRequestParent* TransactionBase::AllocRequest( | ||||
| 10552 | const int64_t aRequestId, RequestParams&& aParams, bool aTrustParams) { | ||||
| 10553 | AssertIsOnBackgroundThread(); | ||||
| 10554 | 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", 10554 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10554); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10555 | |||||
| 10556 | #ifdef DEBUG1 | ||||
| 10557 | // Always verify parameters in DEBUG builds! | ||||
| 10558 | aTrustParams = false; | ||||
| 10559 | #endif | ||||
| 10560 | |||||
| 10561 | 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", 10561 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aTrustParams && !VerifyRequestParams(aParams)" ")"); do { MOZ_CrashSequence(__null, 10561); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!aTrustParams && !VerifyRequestParams(aParams )))) { | ||||
| 10562 | return nullptr; | ||||
| 10563 | } | ||||
| 10564 | |||||
| 10565 | 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" , 10565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCommitOrAbortReceived" ")"); do { MOZ_CrashSequence(__null , 10565); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((mCommitOrAbortReceived ))) { | ||||
| 10566 | return nullptr; | ||||
| 10567 | } | ||||
| 10568 | |||||
| 10569 | RefPtr<NormalTransactionOp> actor; | ||||
| 10570 | |||||
| 10571 | switch (aParams.type()) { | ||||
| 10572 | case RequestParams::TObjectStoreAddParams: | ||||
| 10573 | case RequestParams::TObjectStorePutParams: | ||||
| 10574 | actor = new ObjectStoreAddOrPutRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10575 | std::move(aParams)); | ||||
| 10576 | break; | ||||
| 10577 | |||||
| 10578 | case RequestParams::TObjectStoreGetParams: | ||||
| 10579 | actor = | ||||
| 10580 | new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10581 | /* aGetAll */ false); | ||||
| 10582 | break; | ||||
| 10583 | |||||
| 10584 | case RequestParams::TObjectStoreGetAllParams: | ||||
| 10585 | actor = | ||||
| 10586 | new ObjectStoreGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10587 | /* aGetAll */ true); | ||||
| 10588 | break; | ||||
| 10589 | |||||
| 10590 | case RequestParams::TObjectStoreGetKeyParams: | ||||
| 10591 | actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10592 | aParams, | ||||
| 10593 | /* aGetAll */ false); | ||||
| 10594 | break; | ||||
| 10595 | |||||
| 10596 | case RequestParams::TObjectStoreGetAllKeysParams: | ||||
| 10597 | actor = new ObjectStoreGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10598 | aParams, | ||||
| 10599 | /* aGetAll */ true); | ||||
| 10600 | break; | ||||
| 10601 | |||||
| 10602 | case RequestParams::TObjectStoreGetAllRecordsParams: | ||||
| 10603 | actor = new ObjectStoreGetAllRecordsRequestOp(SafeRefPtrFromThis(), | ||||
| 10604 | aRequestId, aParams); | ||||
| 10605 | break; | ||||
| 10606 | |||||
| 10607 | case RequestParams::TObjectStoreDeleteParams: | ||||
| 10608 | actor = | ||||
| 10609 | new ObjectStoreDeleteRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10610 | aParams.get_ObjectStoreDeleteParams()); | ||||
| 10611 | break; | ||||
| 10612 | |||||
| 10613 | case RequestParams::TObjectStoreClearParams: | ||||
| 10614 | actor = | ||||
| 10615 | new ObjectStoreClearRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10616 | aParams.get_ObjectStoreClearParams()); | ||||
| 10617 | break; | ||||
| 10618 | |||||
| 10619 | case RequestParams::TObjectStoreCountParams: | ||||
| 10620 | actor = | ||||
| 10621 | new ObjectStoreCountRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10622 | aParams.get_ObjectStoreCountParams()); | ||||
| 10623 | break; | ||||
| 10624 | |||||
| 10625 | case RequestParams::TIndexGetParams: | ||||
| 10626 | actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10627 | /* aGetAll */ false); | ||||
| 10628 | break; | ||||
| 10629 | |||||
| 10630 | case RequestParams::TIndexGetKeyParams: | ||||
| 10631 | actor = | ||||
| 10632 | new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10633 | /* aGetAll */ false); | ||||
| 10634 | break; | ||||
| 10635 | |||||
| 10636 | case RequestParams::TIndexGetAllParams: | ||||
| 10637 | actor = new IndexGetRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10638 | /* aGetAll */ true); | ||||
| 10639 | break; | ||||
| 10640 | |||||
| 10641 | case RequestParams::TIndexGetAllKeysParams: | ||||
| 10642 | actor = | ||||
| 10643 | new IndexGetKeyRequestOp(SafeRefPtrFromThis(), aRequestId, aParams, | ||||
| 10644 | /* aGetAll */ true); | ||||
| 10645 | break; | ||||
| 10646 | |||||
| 10647 | case RequestParams::TIndexGetAllRecordsParams: | ||||
| 10648 | actor = new IndexGetAllRecordsRequestOp(SafeRefPtrFromThis(), aRequestId, | ||||
| 10649 | aParams); | ||||
| 10650 | break; | ||||
| 10651 | |||||
| 10652 | case RequestParams::TIndexCountParams: | ||||
| 10653 | actor = | ||||
| 10654 | new IndexCountRequestOp(SafeRefPtrFromThis(), aRequestId, aParams); | ||||
| 10655 | break; | ||||
| 10656 | |||||
| 10657 | default: | ||||
| 10658 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10658 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 10658); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 10659 | } | ||||
| 10660 | |||||
| 10661 | 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" , 10661); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { MOZ_CrashSequence(__null, 10661); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10662 | |||||
| 10663 | // Transfer ownership to IPDL. | ||||
| 10664 | return actor.forget().take(); | ||||
| 10665 | } | ||||
| 10666 | |||||
| 10667 | bool TransactionBase::StartRequest(PBackgroundIDBRequestParent* aActor) { | ||||
| 10668 | AssertIsOnBackgroundThread(); | ||||
| 10669 | 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" , 10669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10669); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10670 | |||||
| 10671 | auto* op = static_cast<NormalTransactionOp*>(aActor); | ||||
| 10672 | |||||
| 10673 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10673)) { | ||||
| 10674 | op->Cleanup(); | ||||
| 10675 | return false; | ||||
| 10676 | } | ||||
| 10677 | |||||
| 10678 | op->DispatchToConnectionPool(); | ||||
| 10679 | return true; | ||||
| 10680 | } | ||||
| 10681 | |||||
| 10682 | bool TransactionBase::DeallocRequest( | ||||
| 10683 | PBackgroundIDBRequestParent* const aActor) { | ||||
| 10684 | AssertIsOnBackgroundThread(); | ||||
| 10685 | MOZ_ASSERT(aActor)do { static_assert( mozilla::detail::AssertionConditionType< decltype(aActor)>::isValid, "invalid assertion condition") ; if ((__builtin_expect(!!(!(!!(aActor))), 0))) { do { } while (false); MOZ_ReportAssertionFailure("aActor", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10685); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10686 | |||||
| 10687 | // Transfer ownership back from IPDL. | ||||
| 10688 | const RefPtr<NormalTransactionOp> actor = | ||||
| 10689 | dont_AddRef(static_cast<NormalTransactionOp*>(aActor)); | ||||
| 10690 | return true; | ||||
| 10691 | } | ||||
| 10692 | |||||
| 10693 | already_AddRefed<PBackgroundIDBCursorParent> TransactionBase::AllocCursor( | ||||
| 10694 | const OpenCursorParams& aParams, bool aTrustParams) { | ||||
| 10695 | AssertIsOnBackgroundThread(); | ||||
| 10696 | 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", 10696 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10696); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10697 | |||||
| 10698 | #ifdef DEBUG1 | ||||
| 10699 | // Always verify parameters in DEBUG builds! | ||||
| 10700 | aTrustParams = false; | ||||
| 10701 | #endif | ||||
| 10702 | |||||
| 10703 | const OpenCursorParams::Type type = aParams.type(); | ||||
| 10704 | SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata; | ||||
| 10705 | SafeRefPtr<FullIndexMetadata> indexMetadata; | ||||
| 10706 | CursorBase::Direction direction; | ||||
| 10707 | |||||
| 10708 | // First extract the parameters common to all open cursor variants. | ||||
| 10709 | const auto& commonParams = GetCommonOpenCursorParams(aParams); | ||||
| 10710 | objectStoreMetadata = | ||||
| 10711 | GetMetadataForObjectStoreId(commonParams.objectStoreId()); | ||||
| 10712 | 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" , 10712); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 10712 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!objectStoreMetadata))) { | ||||
| 10713 | return nullptr; | ||||
| 10714 | } | ||||
| 10715 | 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", 10716 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10716); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams( commonParams.optionalKeyRange ()))) | ||||
| 10716 | 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", 10716 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!VerifyRequestParams( commonParams.optionalKeyRange())" ")"); do { MOZ_CrashSequence(__null, 10716); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!VerifyRequestParams( commonParams.optionalKeyRange ())))) { | ||||
| 10717 | return nullptr; | ||||
| 10718 | } | ||||
| 10719 | direction = commonParams.direction(); | ||||
| 10720 | |||||
| 10721 | // Now, for the index open cursor variants, extract the additional parameter. | ||||
| 10722 | if (type == OpenCursorParams::TIndexOpenCursorParams || | ||||
| 10723 | type == OpenCursorParams::TIndexOpenKeyCursorParams) { | ||||
| 10724 | const auto& commonIndexParams = GetCommonIndexOpenCursorParams(aParams); | ||||
| 10725 | indexMetadata = GetMetadataForIndexId(*objectStoreMetadata, | ||||
| 10726 | commonIndexParams.indexId()); | ||||
| 10727 | 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" , 10727); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!indexMetadata" ")"); do { MOZ_CrashSequence(__null, 10727) ; __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((!indexMetadata))) { | ||||
| 10728 | return nullptr; | ||||
| 10729 | } | ||||
| 10730 | } | ||||
| 10731 | |||||
| 10732 | 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" , 10732); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCommitOrAbortReceived" ")"); do { MOZ_CrashSequence(__null , 10732); __attribute__((nomerge)) ::abort(); } while (false) ; } } while (false); } return aCond; }((mCommitOrAbortReceived ))) { | ||||
| 10733 | return nullptr; | ||||
| 10734 | } | ||||
| 10735 | |||||
| 10736 | // Create Cursor and transfer ownership to IPDL. | ||||
| 10737 | switch (type) { | ||||
| 10738 | case OpenCursorParams::TObjectStoreOpenCursorParams: | ||||
| 10739 | 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", 10739 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")" ); do { MOZ_CrashSequence(__null, 10739); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10740 | return MakeAndAddRef<Cursor<IDBCursorType::ObjectStore>>( | ||||
| 10741 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction, | ||||
| 10742 | CursorBase::ConstructFromTransactionBase{}); | ||||
| 10743 | case OpenCursorParams::TObjectStoreOpenKeyCursorParams: | ||||
| 10744 | 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", 10744 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexMetadata" ")" ); do { MOZ_CrashSequence(__null, 10744); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10745 | return MakeAndAddRef<Cursor<IDBCursorType::ObjectStoreKey>>( | ||||
| 10746 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), direction, | ||||
| 10747 | CursorBase::ConstructFromTransactionBase{}); | ||||
| 10748 | case OpenCursorParams::TIndexOpenCursorParams: | ||||
| 10749 | return MakeAndAddRef<Cursor<IDBCursorType::Index>>( | ||||
| 10750 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), | ||||
| 10751 | std::move(indexMetadata), direction, | ||||
| 10752 | CursorBase::ConstructFromTransactionBase{}); | ||||
| 10753 | case OpenCursorParams::TIndexOpenKeyCursorParams: | ||||
| 10754 | return MakeAndAddRef<Cursor<IDBCursorType::IndexKey>>( | ||||
| 10755 | SafeRefPtrFromThis(), std::move(objectStoreMetadata), | ||||
| 10756 | std::move(indexMetadata), direction, | ||||
| 10757 | CursorBase::ConstructFromTransactionBase{}); | ||||
| 10758 | default: | ||||
| 10759 | MOZ_CRASH("Cannot get here.")do { do { } while (false); MOZ_ReportCrash("" "Cannot get here." , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 10759 ); AnnotateMozCrashReason("MOZ_CRASH(" "Cannot get here." ")" ); do { MOZ_CrashSequence(__null, 10759); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 10760 | } | ||||
| 10761 | } | ||||
| 10762 | |||||
| 10763 | bool TransactionBase::StartCursor(PBackgroundIDBCursorParent* const aActor, | ||||
| 10764 | const int64_t aRequestId, | ||||
| 10765 | const OpenCursorParams& aParams) { | ||||
| 10766 | AssertIsOnBackgroundThread(); | ||||
| 10767 | 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" , 10767); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10767); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10768 | 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", 10768 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10768); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10769 | |||||
| 10770 | auto* const op = static_cast<CursorBase*>(aActor); | ||||
| 10771 | |||||
| 10772 | 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", 10772 )) { | ||||
| 10773 | return false; | ||||
| 10774 | } | ||||
| 10775 | |||||
| 10776 | return true; | ||||
| 10777 | } | ||||
| 10778 | |||||
| 10779 | /******************************************************************************* | ||||
| 10780 | * NormalTransaction | ||||
| 10781 | ******************************************************************************/ | ||||
| 10782 | |||||
| 10783 | NormalTransaction::NormalTransaction( | ||||
| 10784 | SafeRefPtr<Database> aDatabase, TransactionBase::Mode aMode, | ||||
| 10785 | TransactionBase::Durability aDurability, | ||||
| 10786 | nsTArray<SafeRefPtr<FullObjectStoreMetadata>>&& aObjectStores) | ||||
| 10787 | : TransactionBase(std::move(aDatabase), aMode, aDurability), | ||||
| 10788 | mObjectStores{std::move(aObjectStores)} { | ||||
| 10789 | AssertIsOnBackgroundThread(); | ||||
| 10790 | 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", 10790 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mObjectStores.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 10790); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10791 | } | ||||
| 10792 | |||||
| 10793 | bool NormalTransaction::IsSameProcessActor() { | ||||
| 10794 | AssertIsOnBackgroundThread(); | ||||
| 10795 | |||||
| 10796 | PBackgroundParent* const actor = Manager()->Manager()->Manager(); | ||||
| 10797 | 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" , 10797); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { MOZ_CrashSequence(__null, 10797); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10798 | |||||
| 10799 | return !BackgroundParent::IsOtherProcessActor(actor); | ||||
| 10800 | } | ||||
| 10801 | |||||
| 10802 | void NormalTransaction::SendCompleteNotification(nsresult aResult) { | ||||
| 10803 | AssertIsOnBackgroundThread(); | ||||
| 10804 | |||||
| 10805 | if (!IsActorDestroyed()) { | ||||
| 10806 | (void)SendComplete(aResult); | ||||
| 10807 | } | ||||
| 10808 | } | ||||
| 10809 | |||||
| 10810 | void NormalTransaction::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 10811 | AssertIsOnBackgroundThread(); | ||||
| 10812 | |||||
| 10813 | NoteActorDestroyed(); | ||||
| 10814 | |||||
| 10815 | if (!mCommittedOrAborted) { | ||||
| 10816 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 10817 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10817, idbInternalErrMsg.get()); } while (0); | ||||
| 10818 | mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 10819 | } | ||||
| 10820 | |||||
| 10821 | mForceAborted.EnsureFlipped(); | ||||
| 10822 | |||||
| 10823 | MaybeCommitOrAbort(); | ||||
| 10824 | } | ||||
| 10825 | } | ||||
| 10826 | |||||
| 10827 | mozilla::ipc::IPCResult NormalTransaction::RecvDeleteMe() { | ||||
| 10828 | AssertIsOnBackgroundThread(); | ||||
| 10829 | 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", 10829 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 10829); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10830 | |||||
| 10831 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))){auto tryResult1012 = (OkIf(PBackgroundIDBTransactionParent:: Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult1012)::ok_type>); if ((__builtin_expect (!!(tryResult1012.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBTransactionParent::Send__delete__(this))" , tryResult1012.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10831, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 10832 | |||||
| 10833 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10834 | } | ||||
| 10835 | |||||
| 10836 | mozilla::ipc::IPCResult NormalTransaction::RecvCommit( | ||||
| 10837 | const Maybe<int64_t>& aLastRequest) { | ||||
| 10838 | AssertIsOnBackgroundThread(); | ||||
| 10839 | |||||
| 10840 | return TransactionBase::RecvCommit(this, aLastRequest); | ||||
| 10841 | } | ||||
| 10842 | |||||
| 10843 | mozilla::ipc::IPCResult NormalTransaction::RecvAbort( | ||||
| 10844 | const nsresult& aResultCode) { | ||||
| 10845 | AssertIsOnBackgroundThread(); | ||||
| 10846 | |||||
| 10847 | return TransactionBase::RecvAbort(this, aResultCode); | ||||
| 10848 | } | ||||
| 10849 | |||||
| 10850 | PBackgroundIDBRequestParent* | ||||
| 10851 | NormalTransaction::AllocPBackgroundIDBRequestParent( | ||||
| 10852 | const int64_t& aRequestId, const RequestParams& aParams) { | ||||
| 10853 | AssertIsOnBackgroundThread(); | ||||
| 10854 | 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", 10854 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10854); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10855 | |||||
| 10856 | return AllocRequest(aRequestId, | ||||
| 10857 | std::move(const_cast<RequestParams&>(aParams)), | ||||
| 10858 | IsSameProcessActor()); | ||||
| 10859 | } | ||||
| 10860 | |||||
| 10861 | mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBRequestConstructor( | ||||
| 10862 | PBackgroundIDBRequestParent* const aActor, const int64_t& aRequestId, | ||||
| 10863 | const RequestParams& aParams) { | ||||
| 10864 | AssertIsOnBackgroundThread(); | ||||
| 10865 | 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" , 10865); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10865); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10866 | 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", 10866 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10866); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10867 | |||||
| 10868 | if (!StartRequest(aActor)) { | ||||
| 10869 | return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!" )); | ||||
| 10870 | } | ||||
| 10871 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10872 | } | ||||
| 10873 | |||||
| 10874 | bool NormalTransaction::DeallocPBackgroundIDBRequestParent( | ||||
| 10875 | PBackgroundIDBRequestParent* const aActor) { | ||||
| 10876 | AssertIsOnBackgroundThread(); | ||||
| 10877 | 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" , 10877); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10877); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10878 | |||||
| 10879 | return DeallocRequest(aActor); | ||||
| 10880 | } | ||||
| 10881 | |||||
| 10882 | already_AddRefed<PBackgroundIDBCursorParent> | ||||
| 10883 | NormalTransaction::AllocPBackgroundIDBCursorParent( | ||||
| 10884 | const int64_t& aRequestId, const OpenCursorParams& aParams) { | ||||
| 10885 | AssertIsOnBackgroundThread(); | ||||
| 10886 | |||||
| 10887 | return AllocCursor(aParams, IsSameProcessActor()); | ||||
| 10888 | } | ||||
| 10889 | |||||
| 10890 | mozilla::ipc::IPCResult NormalTransaction::RecvPBackgroundIDBCursorConstructor( | ||||
| 10891 | PBackgroundIDBCursorParent* const aActor, const int64_t& aRequestId, | ||||
| 10892 | const OpenCursorParams& aParams) { | ||||
| 10893 | AssertIsOnBackgroundThread(); | ||||
| 10894 | 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" , 10894); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 10894); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10895 | 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", 10895 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { MOZ_CrashSequence(__null, 10895); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10896 | |||||
| 10897 | if (!StartCursor(aActor, aRequestId, aParams)) { | ||||
| 10898 | return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!" )); | ||||
| 10899 | } | ||||
| 10900 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 10901 | } | ||||
| 10902 | |||||
| 10903 | /******************************************************************************* | ||||
| 10904 | * VersionChangeTransaction | ||||
| 10905 | ******************************************************************************/ | ||||
| 10906 | |||||
| 10907 | VersionChangeTransaction::VersionChangeTransaction( | ||||
| 10908 | OpenDatabaseOp* aOpenDatabaseOp) | ||||
| 10909 | : TransactionBase(aOpenDatabaseOp->mDatabase.clonePtr(), | ||||
| 10910 | IDBTransaction::Mode::VersionChange, | ||||
| 10911 | // VersionChange must not change durability. | ||||
| 10912 | IDBTransaction::Durability::Default), // Not used. | ||||
| 10913 | mOpenDatabaseOp(aOpenDatabaseOp) { | ||||
| 10914 | AssertIsOnBackgroundThread(); | ||||
| 10915 | 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", 10915 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 10915); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10916 | } | ||||
| 10917 | |||||
| 10918 | VersionChangeTransaction::~VersionChangeTransaction() { | ||||
| 10919 | #ifdef DEBUG1 | ||||
| 10920 | // Silence the base class' destructor assertion if we never made this actor | ||||
| 10921 | // live. | ||||
| 10922 | FakeActorDestroyed(); | ||||
| 10923 | #endif | ||||
| 10924 | } | ||||
| 10925 | |||||
| 10926 | bool VersionChangeTransaction::IsSameProcessActor() { | ||||
| 10927 | AssertIsOnBackgroundThread(); | ||||
| 10928 | |||||
| 10929 | PBackgroundParent* actor = Manager()->Manager()->Manager(); | ||||
| 10930 | 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" , 10930); AnnotateMozCrashReason("MOZ_ASSERT" "(" "actor" ")" ); do { MOZ_CrashSequence(__null, 10930); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10931 | |||||
| 10932 | return !BackgroundParent::IsOtherProcessActor(actor); | ||||
| 10933 | } | ||||
| 10934 | |||||
| 10935 | void VersionChangeTransaction::SetActorAlive() { | ||||
| 10936 | AssertIsOnBackgroundThread(); | ||||
| 10937 | 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", 10937 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 10937); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10938 | |||||
| 10939 | mActorWasAlive.Flip(); | ||||
| 10940 | } | ||||
| 10941 | |||||
| 10942 | bool VersionChangeTransaction::CopyDatabaseMetadata() { | ||||
| 10943 | AssertIsOnBackgroundThread(); | ||||
| 10944 | 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", 10944) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOldMetadata" ")" ); do { MOZ_CrashSequence(__null, 10944); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10945 | |||||
| 10946 | const auto& origMetadata = GetDatabase().Metadata(); | ||||
| 10947 | |||||
| 10948 | SafeRefPtr<FullDatabaseMetadata> newMetadata = origMetadata.Duplicate(); | ||||
| 10949 | if (NS_WARN_IF(!newMetadata)NS_warn_if_impl(!newMetadata, "!newMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 10949)) { | ||||
| 10950 | return false; | ||||
| 10951 | } | ||||
| 10952 | |||||
| 10953 | // Replace the live metadata with the new mutable copy. | ||||
| 10954 | DatabaseActorInfo* info; | ||||
| 10955 | 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", 10955 ); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(origMetadata.mDatabaseId, &info)" ")"); do { MOZ_CrashSequence(__null, 10955); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 10956 | 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" , 10956); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()" ")"); do { MOZ_CrashSequence(__null, 10956); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10957 | 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", 10957 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == &origMetadata" ")"); do { MOZ_CrashSequence(__null, 10957); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10958 | |||||
| 10959 | mOldMetadata = std::move(info->mMetadata); | ||||
| 10960 | info->mMetadata = std::move(newMetadata); | ||||
| 10961 | |||||
| 10962 | // Replace metadata pointers for all live databases. | ||||
| 10963 | for (Database* const liveDatabase : info->mLiveDatabases) { | ||||
| 10964 | liveDatabase->mMetadata = info->mMetadata.clonePtr(); | ||||
| 10965 | } | ||||
| 10966 | |||||
| 10967 | return true; | ||||
| 10968 | } | ||||
| 10969 | |||||
| 10970 | void VersionChangeTransaction::UpdateMetadata(nsresult aResult) { | ||||
| 10971 | AssertIsOnBackgroundThread(); | ||||
| 10972 | 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", 10972 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 10972); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10973 | 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", 10973 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!!mActorWasAlive == !!mOpenDatabaseOp->mDatabase" ")"); do { MOZ_CrashSequence(__null, 10973); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10974 | 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" , 10974); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mDatabaseId.ref().IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 10974); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 10975 | |||||
| 10976 | if (IsActorDestroyed() || !mActorWasAlive) { | ||||
| 10977 | return; | ||||
| 10978 | } | ||||
| 10979 | |||||
| 10980 | SafeRefPtr<FullDatabaseMetadata> oldMetadata = std::move(mOldMetadata); | ||||
| 10981 | |||||
| 10982 | DatabaseActorInfo* info; | ||||
| 10983 | if (!gLiveDatabaseHashtable->Get(oldMetadata->mDatabaseId, &info)) { | ||||
| 10984 | return; | ||||
| 10985 | } | ||||
| 10986 | |||||
| 10987 | 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" , 10987); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()" ")"); do { MOZ_CrashSequence(__null, 10987); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10988 | |||||
| 10989 | if (NS_SUCCEEDED(aResult)((bool)(__builtin_expect(!!(!NS_FAILED_impl(aResult)), 1)))) { | ||||
| 10990 | // Remove all deleted objectStores and indexes, then mark immutable. | ||||
| 10991 | info->mMetadata->mObjectStores.RemoveIf([](const auto& objectStoreIter) { | ||||
| 10992 | 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", 10992 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreIter.Key()" ")"); do { MOZ_CrashSequence(__null, 10992); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 10993 | const SafeRefPtr<FullObjectStoreMetadata>& metadata = | ||||
| 10994 | objectStoreIter.Data(); | ||||
| 10995 | 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" , 10995); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 10995); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 10996 | |||||
| 10997 | if (metadata->mDeleted) { | ||||
| 10998 | return true; | ||||
| 10999 | } | ||||
| 11000 | |||||
| 11001 | metadata->mIndexes.RemoveIf([](const auto& indexIter) -> bool { | ||||
| 11002 | 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", 11002 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexIter.Key()" ")" ); do { MOZ_CrashSequence(__null, 11002); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11003 | const SafeRefPtr<FullIndexMetadata>& index = indexIter.Data(); | ||||
| 11004 | 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" , 11004); AnnotateMozCrashReason("MOZ_ASSERT" "(" "index" ")" ); do { MOZ_CrashSequence(__null, 11004); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11005 | |||||
| 11006 | return index->mDeleted; | ||||
| 11007 | }); | ||||
| 11008 | metadata->mIndexes.MarkImmutable(); | ||||
| 11009 | |||||
| 11010 | return false; | ||||
| 11011 | }); | ||||
| 11012 | |||||
| 11013 | info->mMetadata->mObjectStores.MarkImmutable(); | ||||
| 11014 | } else { | ||||
| 11015 | // Replace metadata pointers for all live databases. | ||||
| 11016 | info->mMetadata = std::move(oldMetadata); | ||||
| 11017 | |||||
| 11018 | for (Database* const liveDatabase : info->mLiveDatabases) { | ||||
| 11019 | liveDatabase->mMetadata = info->mMetadata.clonePtr(); | ||||
| 11020 | } | ||||
| 11021 | } | ||||
| 11022 | } | ||||
| 11023 | |||||
| 11024 | void VersionChangeTransaction::SendCompleteNotification(nsresult aResult) { | ||||
| 11025 | AssertIsOnBackgroundThread(); | ||||
| 11026 | 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", 11026 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 11026); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11027 | 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", 11027 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mOpenDatabaseOp->mCompleteCallback" ")"); do { MOZ_CrashSequence(__null, 11027); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11028 | 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", 11028 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->HasFailed()" ")"); do { MOZ_CrashSequence(__null, 11028); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11029 | 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", 11030 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 11030); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11030 | 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", 11030 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState > OpenDatabaseOp::State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 11030); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11031 | |||||
| 11032 | const RefPtr<OpenDatabaseOp> openDatabaseOp = std::move(mOpenDatabaseOp); | ||||
| 11033 | |||||
| 11034 | if (!mActorWasAlive) { | ||||
| 11035 | return; | ||||
| 11036 | } | ||||
| 11037 | |||||
| 11038 | openDatabaseOp->mCompleteCallback = | ||||
| 11039 | [self = SafeRefPtr{this, AcquireStrongRefFromRawPtr{}}, aResult]() { | ||||
| 11040 | if (!self->IsActorDestroyed()) { | ||||
| 11041 | (void)self->SendComplete(aResult); | ||||
| 11042 | } | ||||
| 11043 | }; | ||||
| 11044 | |||||
| 11045 | auto handleError = [openDatabaseOp](const nsresult rv) { | ||||
| 11046 | openDatabaseOp->SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 11047 | |||||
| 11048 | openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults; | ||||
| 11049 | |||||
| 11050 | 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", 11050 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(openDatabaseOp->Run())" ")"); do { MOZ_CrashSequence(__null, 11050); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 11051 | }; | ||||
| 11052 | |||||
| 11053 | if (NS_FAILED(aResult)((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult)), 0)))) { | ||||
| 11054 | // 3.3.1 Opening a database: | ||||
| 11055 | // "If the upgrade transaction was aborted, run the steps for closing a | ||||
| 11056 | // database connection with connection, create and return a new AbortError | ||||
| 11057 | // exception and abort these steps." | ||||
| 11058 | handleError(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 11059 | return; | ||||
| 11060 | } | ||||
| 11061 | |||||
| 11062 | openDatabaseOp->mState = OpenDatabaseOp::State::DatabaseWorkVersionUpdate; | ||||
| 11063 | |||||
| 11064 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 11065 | 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" , 11065); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 11065); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11066 | |||||
| 11067 | QM_TRY(MOZ_TO_RESULT(quotaManager->IOThread()->Dispatch(openDatabaseOp,{auto tryResult1013 = (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(tryResult1013 )::ok_type>); if ((__builtin_expect(!!(tryResult1013.isErr ()), 0))) { auto tryTempError = tryResult1013.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" , 11071, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 11068 | NS_DISPATCH_NORMAL)){auto tryResult1013 = (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(tryResult1013 )::ok_type>); if ((__builtin_expect(!!(tryResult1013.isErr ()), 0))) { auto tryTempError = tryResult1013.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" , 11071, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 11069 | .mapErr({auto tryResult1013 = (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(tryResult1013 )::ok_type>); if ((__builtin_expect(!!(tryResult1013.isErr ()), 0))) { auto tryTempError = tryResult1013.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" , 11071, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 11070 | [](const auto) { return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; }),{auto tryResult1013 = (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(tryResult1013 )::ok_type>); if ((__builtin_expect(!!(tryResult1013.isErr ()), 0))) { auto tryTempError = tryResult1013.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" , 11071, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }} | ||||
| 11071 | QM_VOID, handleError){auto tryResult1013 = (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(tryResult1013 )::ok_type>); if ((__builtin_expect(!!(tryResult1013.isErr ()), 0))) { auto tryTempError = tryResult1013.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" , 11071, mozilla::dom::quota::Severity::Error); handleError(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return ; }}; | ||||
| 11072 | } | ||||
| 11073 | |||||
| 11074 | void VersionChangeTransaction::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 11075 | AssertIsOnBackgroundThread(); | ||||
| 11076 | |||||
| 11077 | NoteActorDestroyed(); | ||||
| 11078 | |||||
| 11079 | if (!mCommittedOrAborted) { | ||||
| 11080 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 11081 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11081, idbInternalErrMsg.get()); } while (0); | ||||
| 11082 | mResultCode = NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 11083 | } | ||||
| 11084 | |||||
| 11085 | mForceAborted.EnsureFlipped(); | ||||
| 11086 | |||||
| 11087 | MaybeCommitOrAbort(); | ||||
| 11088 | } | ||||
| 11089 | } | ||||
| 11090 | |||||
| 11091 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteMe() { | ||||
| 11092 | AssertIsOnBackgroundThread(); | ||||
| 11093 | 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", 11093 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 11093); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11094 | |||||
| 11095 | QM_WARNONLY_TRY({auto tryResult1014 = (OkIf(PBackgroundIDBVersionChangeTransactionParent ::Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult1014)::ok_type>); if ((__builtin_expect (!!(tryResult1014.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))" , tryResult1014.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11096, mozilla::dom::quota::Severity::Warning); }} | ||||
| 11096 | OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))){auto tryResult1014 = (OkIf(PBackgroundIDBVersionChangeTransactionParent ::Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult1014)::ok_type>); if ((__builtin_expect (!!(tryResult1014.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIDBVersionChangeTransactionParent::Send__delete__(this))" , tryResult1014.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11096, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 11097 | |||||
| 11098 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11099 | } | ||||
| 11100 | |||||
| 11101 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCommit( | ||||
| 11102 | const Maybe<int64_t>& aLastRequest) { | ||||
| 11103 | AssertIsOnBackgroundThread(); | ||||
| 11104 | |||||
| 11105 | return TransactionBase::RecvCommit(this, aLastRequest); | ||||
| 11106 | } | ||||
| 11107 | |||||
| 11108 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvAbort( | ||||
| 11109 | const nsresult& aResultCode) { | ||||
| 11110 | AssertIsOnBackgroundThread(); | ||||
| 11111 | |||||
| 11112 | return TransactionBase::RecvAbort(this, aResultCode); | ||||
| 11113 | } | ||||
| 11114 | |||||
| 11115 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateObjectStore( | ||||
| 11116 | const ObjectStoreMetadata& aMetadata) { | ||||
| 11117 | AssertIsOnBackgroundThread(); | ||||
| 11118 | |||||
| 11119 | if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11119)) { | ||||
| 11120 | return IPC_FAIL(this, "No metadata ID!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata ID!" )); | ||||
| 11121 | } | ||||
| 11122 | |||||
| 11123 | const SafeRefPtr<FullDatabaseMetadata> dbMetadata = | ||||
| 11124 | GetDatabase().MetadataPtr(); | ||||
| 11125 | |||||
| 11126 | 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" , 11126)) { | ||||
| 11127 | 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!" )); | ||||
| 11128 | } | ||||
| 11129 | |||||
| 11130 | 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", 11133 ) | ||||
| 11131 | 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", 11133 ) | ||||
| 11132 | 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", 11133 ) | ||||
| 11133 | .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", 11133 )) { | ||||
| 11134 | return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!" )); | ||||
| 11135 | } | ||||
| 11136 | |||||
| 11137 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11137 )) { | ||||
| 11138 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11139 | } | ||||
| 11140 | |||||
| 11141 | const int64_t initialAutoIncrementId = aMetadata.autoIncrement() ? 1 : 0; | ||||
| 11142 | auto newMetadata = MakeSafeRefPtr<FullObjectStoreMetadata>( | ||||
| 11143 | aMetadata, FullObjectStoreMetadata::AutoIncrementIds{ | ||||
| 11144 | initialAutoIncrementId, initialAutoIncrementId}); | ||||
| 11145 | |||||
| 11146 | 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", 11147 ) | ||||
| 11147 | 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", 11147 )) { | ||||
| 11148 | return IPC_FAIL(this, "mObjectStores.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mObjectStores.InsertOrUpdate failed!" )); | ||||
| 11149 | } | ||||
| 11150 | |||||
| 11151 | dbMetadata->mNextObjectStoreId++; | ||||
| 11152 | |||||
| 11153 | RefPtr<CreateObjectStoreOp> op = new CreateObjectStoreOp( | ||||
| 11154 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aMetadata); | ||||
| 11155 | |||||
| 11156 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11156)) { | ||||
| 11157 | op->Cleanup(); | ||||
| 11158 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11159 | } | ||||
| 11160 | |||||
| 11161 | op->DispatchToConnectionPool(); | ||||
| 11162 | |||||
| 11163 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11164 | } | ||||
| 11165 | |||||
| 11166 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteObjectStore( | ||||
| 11167 | const IndexOrObjectStoreId& aObjectStoreId) { | ||||
| 11168 | AssertIsOnBackgroundThread(); | ||||
| 11169 | |||||
| 11170 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11170)) { | ||||
| 11171 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11172 | } | ||||
| 11173 | |||||
| 11174 | const auto& dbMetadata = GetDatabase().Metadata(); | ||||
| 11175 | 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" , 11175); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { MOZ_CrashSequence(__null, 11175); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11176 | |||||
| 11177 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11177)) { | ||||
| 11178 | return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!" )); | ||||
| 11179 | } | ||||
| 11180 | |||||
| 11181 | SafeRefPtr<FullObjectStoreMetadata> foundMetadata = | ||||
| 11182 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11183 | |||||
| 11184 | if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11184)) { | ||||
| 11185 | return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!" )); | ||||
| 11186 | } | ||||
| 11187 | |||||
| 11188 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11188 )) { | ||||
| 11189 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11190 | } | ||||
| 11191 | |||||
| 11192 | foundMetadata->mDeleted.Flip(); | ||||
| 11193 | |||||
| 11194 | DebugOnly<bool> foundTargetId = false; | ||||
| 11195 | const bool isLastObjectStore = std::all_of( | ||||
| 11196 | dbMetadata.mObjectStores.begin(), dbMetadata.mObjectStores.end(), | ||||
| 11197 | [&foundTargetId, aObjectStoreId](const auto& objectStoreEntry) -> bool { | ||||
| 11198 | if (uint64_t(aObjectStoreId) == objectStoreEntry.GetKey()) { | ||||
| 11199 | foundTargetId = true; | ||||
| 11200 | return true; | ||||
| 11201 | } | ||||
| 11202 | |||||
| 11203 | return objectStoreEntry.GetData()->mDeleted; | ||||
| 11204 | }); | ||||
| 11205 | 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" , 11205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId" ")"); do { MOZ_CrashSequence(__null, 11205); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11206 | |||||
| 11207 | RefPtr<DeleteObjectStoreOp> op = new DeleteObjectStoreOp( | ||||
| 11208 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | ||||
| 11209 | std::move(foundMetadata), isLastObjectStore); | ||||
| 11210 | |||||
| 11211 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11211)) { | ||||
| 11212 | op->Cleanup(); | ||||
| 11213 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11214 | } | ||||
| 11215 | |||||
| 11216 | op->DispatchToConnectionPool(); | ||||
| 11217 | |||||
| 11218 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11219 | } | ||||
| 11220 | |||||
| 11221 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameObjectStore( | ||||
| 11222 | const IndexOrObjectStoreId& aObjectStoreId, const nsAString& aName) { | ||||
| 11223 | AssertIsOnBackgroundThread(); | ||||
| 11224 | |||||
| 11225 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11225)) { | ||||
| 11226 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11227 | } | ||||
| 11228 | |||||
| 11229 | { | ||||
| 11230 | const auto& dbMetadata = GetDatabase().Metadata(); | ||||
| 11231 | 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" , 11231); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { MOZ_CrashSequence(__null, 11231); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11232 | |||||
| 11233 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11233)) { | ||||
| 11234 | return IPC_FAIL(this, "Invalid ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Invalid ObjectStoreId!" )); | ||||
| 11235 | } | ||||
| 11236 | } | ||||
| 11237 | |||||
| 11238 | SafeRefPtr<FullObjectStoreMetadata> foundMetadata = | ||||
| 11239 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11240 | |||||
| 11241 | if (NS_WARN_IF(!foundMetadata)NS_warn_if_impl(!foundMetadata, "!foundMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11241)) { | ||||
| 11242 | return IPC_FAIL(this, "No metadata found for ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No metadata found for ObjectStoreId!" )); | ||||
| 11243 | } | ||||
| 11244 | |||||
| 11245 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11245 )) { | ||||
| 11246 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11247 | } | ||||
| 11248 | |||||
| 11249 | foundMetadata->mCommonMetadata.name() = aName; | ||||
| 11250 | |||||
| 11251 | RefPtr<RenameObjectStoreOp> renameOp = new RenameObjectStoreOp( | ||||
| 11252 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | ||||
| 11253 | *foundMetadata); | ||||
| 11254 | |||||
| 11255 | if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11255 )) { | ||||
| 11256 | renameOp->Cleanup(); | ||||
| 11257 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11258 | } | ||||
| 11259 | |||||
| 11260 | renameOp->DispatchToConnectionPool(); | ||||
| 11261 | |||||
| 11262 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11263 | } | ||||
| 11264 | |||||
| 11265 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvCreateIndex( | ||||
| 11266 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 11267 | const IndexMetadata& aMetadata) { | ||||
| 11268 | AssertIsOnBackgroundThread(); | ||||
| 11269 | |||||
| 11270 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11270)) { | ||||
| 11271 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11272 | } | ||||
| 11273 | |||||
| 11274 | if (NS_WARN_IF(!aMetadata.id())NS_warn_if_impl(!aMetadata.id(), "!aMetadata.id()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11274)) { | ||||
| 11275 | return IPC_FAIL(this, "No Metadata id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Metadata id!" )); | ||||
| 11276 | } | ||||
| 11277 | |||||
| 11278 | const auto dbMetadata = GetDatabase().MetadataPtr(); | ||||
| 11279 | |||||
| 11280 | 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" , 11280)) { | ||||
| 11281 | 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!" )); | ||||
| 11282 | } | ||||
| 11283 | |||||
| 11284 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | ||||
| 11285 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11286 | |||||
| 11287 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11287 )) { | ||||
| 11288 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | ||||
| 11289 | } | ||||
| 11290 | |||||
| 11291 | 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", 11294 ) | ||||
| 11292 | 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", 11294 ) | ||||
| 11293 | 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", 11294 ) | ||||
| 11294 | .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", 11294 )) { | ||||
| 11295 | return IPC_FAIL(this, "MatchMetadataNameOrId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("MatchMetadataNameOrId failed!" )); | ||||
| 11296 | } | ||||
| 11297 | |||||
| 11298 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11298 )) { | ||||
| 11299 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11300 | } | ||||
| 11301 | |||||
| 11302 | auto newMetadata = MakeSafeRefPtr<FullIndexMetadata>(); | ||||
| 11303 | newMetadata->mCommonMetadata = aMetadata; | ||||
| 11304 | |||||
| 11305 | 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", 11306 ) | ||||
| 11306 | 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", 11306 )) { | ||||
| 11307 | return IPC_FAIL(this, "mIndexes.InsertOrUpdate failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("mIndexes.InsertOrUpdate failed!" )); | ||||
| 11308 | } | ||||
| 11309 | |||||
| 11310 | dbMetadata->mNextIndexId++; | ||||
| 11311 | |||||
| 11312 | RefPtr<CreateIndexOp> op = new CreateIndexOp( | ||||
| 11313 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId, | ||||
| 11314 | aMetadata); | ||||
| 11315 | |||||
| 11316 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11316)) { | ||||
| 11317 | op->Cleanup(); | ||||
| 11318 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11319 | } | ||||
| 11320 | |||||
| 11321 | op->DispatchToConnectionPool(); | ||||
| 11322 | |||||
| 11323 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11324 | } | ||||
| 11325 | |||||
| 11326 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvDeleteIndex( | ||||
| 11327 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 11328 | const IndexOrObjectStoreId& aIndexId) { | ||||
| 11329 | AssertIsOnBackgroundThread(); | ||||
| 11330 | |||||
| 11331 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11331)) { | ||||
| 11332 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11333 | } | ||||
| 11334 | |||||
| 11335 | if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11335)) { | ||||
| 11336 | return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!" )); | ||||
| 11337 | } | ||||
| 11338 | { | ||||
| 11339 | const auto& dbMetadata = GetDatabase().Metadata(); | ||||
| 11340 | 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" , 11340); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextObjectStoreId > 0" ")"); do { MOZ_CrashSequence(__null, 11340); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11341 | 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" , 11341); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata.mNextIndexId > 0" ")"); do { MOZ_CrashSequence(__null, 11341); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11342 | |||||
| 11343 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata.mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata.mNextObjectStoreId , "aObjectStoreId >= dbMetadata.mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11343)) { | ||||
| 11344 | 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!" )); | ||||
| 11345 | } | ||||
| 11346 | |||||
| 11347 | if (NS_WARN_IF(aIndexId >= dbMetadata.mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata.mNextIndexId, "aIndexId >= dbMetadata.mNextIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11347 )) { | ||||
| 11348 | 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!" )); | ||||
| 11349 | } | ||||
| 11350 | } | ||||
| 11351 | |||||
| 11352 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | ||||
| 11353 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11354 | |||||
| 11355 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11355 )) { | ||||
| 11356 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | ||||
| 11357 | } | ||||
| 11358 | |||||
| 11359 | SafeRefPtr<FullIndexMetadata> foundIndexMetadata = | ||||
| 11360 | GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId); | ||||
| 11361 | |||||
| 11362 | if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11362)) { | ||||
| 11363 | return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!" )); | ||||
| 11364 | } | ||||
| 11365 | |||||
| 11366 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11366 )) { | ||||
| 11367 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11368 | } | ||||
| 11369 | |||||
| 11370 | foundIndexMetadata->mDeleted.Flip(); | ||||
| 11371 | |||||
| 11372 | DebugOnly<bool> foundTargetId = false; | ||||
| 11373 | const bool isLastIndex = | ||||
| 11374 | std::all_of(foundObjectStoreMetadata->mIndexes.cbegin(), | ||||
| 11375 | foundObjectStoreMetadata->mIndexes.cend(), | ||||
| 11376 | [&foundTargetId, aIndexId](const auto& indexEntry) -> bool { | ||||
| 11377 | if (uint64_t(aIndexId) == indexEntry.GetKey()) { | ||||
| 11378 | foundTargetId = true; | ||||
| 11379 | return true; | ||||
| 11380 | } | ||||
| 11381 | |||||
| 11382 | return indexEntry.GetData()->mDeleted; | ||||
| 11383 | }); | ||||
| 11384 | 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" , 11384); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundTargetId" ")"); do { MOZ_CrashSequence(__null, 11384); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11385 | |||||
| 11386 | RefPtr<DeleteIndexOp> op = new DeleteIndexOp( | ||||
| 11387 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), aObjectStoreId, | ||||
| 11388 | aIndexId, foundIndexMetadata->mCommonMetadata.unique(), isLastIndex); | ||||
| 11389 | |||||
| 11390 | if (NS_WARN_IF(!op->Init(*this))NS_warn_if_impl(!op->Init(*this), "!op->Init(*this)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11390)) { | ||||
| 11391 | op->Cleanup(); | ||||
| 11392 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11393 | } | ||||
| 11394 | |||||
| 11395 | op->DispatchToConnectionPool(); | ||||
| 11396 | |||||
| 11397 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11398 | } | ||||
| 11399 | |||||
| 11400 | mozilla::ipc::IPCResult VersionChangeTransaction::RecvRenameIndex( | ||||
| 11401 | const IndexOrObjectStoreId& aObjectStoreId, | ||||
| 11402 | const IndexOrObjectStoreId& aIndexId, const nsAString& aName) { | ||||
| 11403 | AssertIsOnBackgroundThread(); | ||||
| 11404 | |||||
| 11405 | if (NS_WARN_IF(!aObjectStoreId)NS_warn_if_impl(!aObjectStoreId, "!aObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11405)) { | ||||
| 11406 | return IPC_FAIL(this, "No ObjectStoreId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No ObjectStoreId!" )); | ||||
| 11407 | } | ||||
| 11408 | |||||
| 11409 | if (NS_WARN_IF(!aIndexId)NS_warn_if_impl(!aIndexId, "!aIndexId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11409)) { | ||||
| 11410 | return IPC_FAIL(this, "No Index id!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No Index id!" )); | ||||
| 11411 | } | ||||
| 11412 | |||||
| 11413 | const SafeRefPtr<FullDatabaseMetadata> dbMetadata = | ||||
| 11414 | GetDatabase().MetadataPtr(); | ||||
| 11415 | 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" , 11415); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata" ")"); do { MOZ_CrashSequence(__null, 11415); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11416 | 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", 11416 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextObjectStoreId > 0" ")"); do { MOZ_CrashSequence(__null, 11416); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11417 | 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" , 11417); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbMetadata->mNextIndexId > 0" ")"); do { MOZ_CrashSequence(__null, 11417); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11418 | |||||
| 11419 | if (NS_WARN_IF(aObjectStoreId >= dbMetadata->mNextObjectStoreId)NS_warn_if_impl(aObjectStoreId >= dbMetadata->mNextObjectStoreId , "aObjectStoreId >= dbMetadata->mNextObjectStoreId", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11419)) { | ||||
| 11420 | 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!" )); | ||||
| 11421 | } | ||||
| 11422 | |||||
| 11423 | if (NS_WARN_IF(aIndexId >= dbMetadata->mNextIndexId)NS_warn_if_impl(aIndexId >= dbMetadata->mNextIndexId, "aIndexId >= dbMetadata->mNextIndexId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11423 )) { | ||||
| 11424 | 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!" )); | ||||
| 11425 | } | ||||
| 11426 | |||||
| 11427 | SafeRefPtr<FullObjectStoreMetadata> foundObjectStoreMetadata = | ||||
| 11428 | GetMetadataForObjectStoreId(aObjectStoreId); | ||||
| 11429 | |||||
| 11430 | if (NS_WARN_IF(!foundObjectStoreMetadata)NS_warn_if_impl(!foundObjectStoreMetadata, "!foundObjectStoreMetadata" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11430 )) { | ||||
| 11431 | return IPC_FAIL(this, "GetMetadataForObjectStoreId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForObjectStoreId failed!" )); | ||||
| 11432 | } | ||||
| 11433 | |||||
| 11434 | SafeRefPtr<FullIndexMetadata> foundIndexMetadata = | ||||
| 11435 | GetMetadataForIndexId(*foundObjectStoreMetadata, aIndexId); | ||||
| 11436 | |||||
| 11437 | if (NS_WARN_IF(!foundIndexMetadata)NS_warn_if_impl(!foundIndexMetadata, "!foundIndexMetadata", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11437)) { | ||||
| 11438 | return IPC_FAIL(this, "GetMetadataForIndexId failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("GetMetadataForIndexId failed!" )); | ||||
| 11439 | } | ||||
| 11440 | |||||
| 11441 | if (NS_WARN_IF(mCommitOrAbortReceived)NS_warn_if_impl(mCommitOrAbortReceived, "mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11441 )) { | ||||
| 11442 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11443 | } | ||||
| 11444 | |||||
| 11445 | foundIndexMetadata->mCommonMetadata.name() = aName; | ||||
| 11446 | |||||
| 11447 | RefPtr<RenameIndexOp> renameOp = new RenameIndexOp( | ||||
| 11448 | SafeRefPtrFromThis().downcast<VersionChangeTransaction>(), | ||||
| 11449 | *foundIndexMetadata, aObjectStoreId); | ||||
| 11450 | |||||
| 11451 | if (NS_WARN_IF(!renameOp->Init(*this))NS_warn_if_impl(!renameOp->Init(*this), "!renameOp->Init(*this)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11451 )) { | ||||
| 11452 | renameOp->Cleanup(); | ||||
| 11453 | return IPC_FAIL(this, "ObjectStoreOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ObjectStoreOp initialization failed!" )); | ||||
| 11454 | } | ||||
| 11455 | |||||
| 11456 | renameOp->DispatchToConnectionPool(); | ||||
| 11457 | |||||
| 11458 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11459 | } | ||||
| 11460 | |||||
| 11461 | PBackgroundIDBRequestParent* | ||||
| 11462 | VersionChangeTransaction::AllocPBackgroundIDBRequestParent( | ||||
| 11463 | const int64_t& aRequestId, const RequestParams& aParams) { | ||||
| 11464 | AssertIsOnBackgroundThread(); | ||||
| 11465 | 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", 11465 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11465); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11466 | |||||
| 11467 | return AllocRequest(aRequestId, | ||||
| 11468 | std::move(const_cast<RequestParams&>(aParams)), | ||||
| 11469 | IsSameProcessActor()); | ||||
| 11470 | } | ||||
| 11471 | |||||
| 11472 | mozilla::ipc::IPCResult | ||||
| 11473 | VersionChangeTransaction::RecvPBackgroundIDBRequestConstructor( | ||||
| 11474 | PBackgroundIDBRequestParent* aActor, const int64_t& aRequestId, | ||||
| 11475 | const RequestParams& aParams) { | ||||
| 11476 | AssertIsOnBackgroundThread(); | ||||
| 11477 | 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" , 11477); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 11477); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11478 | 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", 11478 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != RequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11478); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11479 | |||||
| 11480 | if (!StartRequest(aActor)) { | ||||
| 11481 | return IPC_FAIL(this, "StartRequest failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartRequest failed!" )); | ||||
| 11482 | } | ||||
| 11483 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11484 | } | ||||
| 11485 | |||||
| 11486 | bool VersionChangeTransaction::DeallocPBackgroundIDBRequestParent( | ||||
| 11487 | PBackgroundIDBRequestParent* aActor) { | ||||
| 11488 | AssertIsOnBackgroundThread(); | ||||
| 11489 | 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" , 11489); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 11489); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11490 | |||||
| 11491 | return DeallocRequest(aActor); | ||||
| 11492 | } | ||||
| 11493 | |||||
| 11494 | already_AddRefed<PBackgroundIDBCursorParent> | ||||
| 11495 | VersionChangeTransaction::AllocPBackgroundIDBCursorParent( | ||||
| 11496 | const int64_t& aRequestId, const OpenCursorParams& aParams) { | ||||
| 11497 | AssertIsOnBackgroundThread(); | ||||
| 11498 | |||||
| 11499 | return AllocCursor(aParams, IsSameProcessActor()); | ||||
| 11500 | } | ||||
| 11501 | |||||
| 11502 | mozilla::ipc::IPCResult | ||||
| 11503 | VersionChangeTransaction::RecvPBackgroundIDBCursorConstructor( | ||||
| 11504 | PBackgroundIDBCursorParent* aActor, const int64_t& aRequestId, | ||||
| 11505 | const OpenCursorParams& aParams) { | ||||
| 11506 | AssertIsOnBackgroundThread(); | ||||
| 11507 | 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" , 11507); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aActor" ")" ); do { MOZ_CrashSequence(__null, 11507); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11508 | 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", 11508 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != OpenCursorParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11508); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11509 | |||||
| 11510 | if (!StartCursor(aActor, aRequestId, aParams)) { | ||||
| 11511 | return IPC_FAIL(this, "StartCursor failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("StartCursor failed!" )); | ||||
| 11512 | } | ||||
| 11513 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11514 | } | ||||
| 11515 | |||||
| 11516 | /******************************************************************************* | ||||
| 11517 | * CursorBase | ||||
| 11518 | ******************************************************************************/ | ||||
| 11519 | |||||
| 11520 | CursorBase::CursorBase(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 11521 | SafeRefPtr<FullObjectStoreMetadata> aObjectStoreMetadata, | ||||
| 11522 | const Direction aDirection, | ||||
| 11523 | const ConstructFromTransactionBase /*aConstructionTag*/) | ||||
| 11524 | : mTransaction(std::move(aTransaction)), | ||||
| 11525 | mObjectStoreMetadata(WrapNotNull(std::move(aObjectStoreMetadata))), | ||||
| 11526 | mObjectStoreId((*mObjectStoreMetadata)->mCommonMetadata.id()), | ||||
| 11527 | mDirection(aDirection), | ||||
| 11528 | mMaxExtraCount(IndexedDatabaseManager::MaxPreloadExtraRecords()), | ||||
| 11529 | mIsSameProcessActor(!BackgroundParent::IsOtherProcessActor( | ||||
| 11530 | mTransaction->GetBackgroundParent())) { | ||||
| 11531 | AssertIsOnBackgroundThread(); | ||||
| 11532 | 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" , 11532); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 11532); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11533 | |||||
| 11534 | static_assert( | ||||
| 11535 | OpenCursorParams::T__None == 0 && OpenCursorParams::T__Last == 4, | ||||
| 11536 | "Lots of code here assumes only four types of cursors!"); | ||||
| 11537 | } | ||||
| 11538 | |||||
| 11539 | template <IDBCursorType CursorType> | ||||
| 11540 | bool Cursor<CursorType>::VerifyRequestParams( | ||||
| 11541 | const CursorRequestParams& aParams, | ||||
| 11542 | const CursorPosition<CursorType>& aPosition) const { | ||||
| 11543 | AssertIsOnBackgroundThread(); | ||||
| 11544 | 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", 11544 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11544); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11545 | 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" , 11545); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11545); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11546 | if constexpr (IsIndexCursor) { | ||||
| 11547 | 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", 11547 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata" ")"); do { MOZ_CrashSequence(__null, 11547); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11548 | } | ||||
| 11549 | |||||
| 11550 | #ifdef DEBUG1 | ||||
| 11551 | { | ||||
| 11552 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 11553 | mTransaction->GetMetadataForObjectStoreId(mObjectStoreId); | ||||
| 11554 | if (objectStoreMetadata) { | ||||
| 11555 | 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" , 11555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata == (*this->mObjectStoreMetadata)" ")"); do { MOZ_CrashSequence(__null, 11555); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11556 | } else { | ||||
| 11557 | 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", 11557 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mObjectStoreMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11557); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11558 | } | ||||
| 11559 | |||||
| 11560 | if constexpr (IsIndexCursor) { | ||||
| 11561 | if (objectStoreMetadata) { | ||||
| 11562 | const SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 11563 | mTransaction->GetMetadataForIndexId(*objectStoreMetadata, | ||||
| 11564 | this->mIndexId); | ||||
| 11565 | if (indexMetadata) { | ||||
| 11566 | 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", 11566 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata == *this->mIndexMetadata" ")"); do { MOZ_CrashSequence(__null, 11566); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11567 | } else { | ||||
| 11568 | 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", 11568 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*this->mIndexMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11568); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11569 | } | ||||
| 11570 | } | ||||
| 11571 | } | ||||
| 11572 | } | ||||
| 11573 | #endif | ||||
| 11574 | |||||
| 11575 | 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", 11575 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "(*this->mObjectStoreMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11575); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }(((*this->mObjectStoreMetadata)->mDeleted))) { | ||||
| 11576 | return false; | ||||
| 11577 | } | ||||
| 11578 | |||||
| 11579 | if constexpr (IsIndexCursor) { | ||||
| 11580 | 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", 11581 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11581); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((this->mIndexMetadata && (*this->mIndexMetadata )->mDeleted)) | ||||
| 11581 | (*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", 11581 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "this->mIndexMetadata && (*this->mIndexMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 11581); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((this->mIndexMetadata && (*this->mIndexMetadata )->mDeleted))) { | ||||
| 11582 | return false; | ||||
| 11583 | } | ||||
| 11584 | } | ||||
| 11585 | |||||
| 11586 | const Key& sortKey = aPosition.GetSortKey(this->IsLocaleAware()); | ||||
| 11587 | |||||
| 11588 | switch (aParams.type()) { | ||||
| 11589 | case CursorRequestParams::TContinueParams: { | ||||
| 11590 | const Key& key = aParams.get_ContinueParams().key(); | ||||
| 11591 | if (!key.IsUnset()) { | ||||
| 11592 | switch (mDirection) { | ||||
| 11593 | case IDBCursorDirection::Next: | ||||
| 11594 | case IDBCursorDirection::Nextunique: | ||||
| 11595 | 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" , 11595); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key <= sortKey" ")"); do { MOZ_CrashSequence(__null, 11595 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key <= sortKey))) { | ||||
| 11596 | return false; | ||||
| 11597 | } | ||||
| 11598 | break; | ||||
| 11599 | |||||
| 11600 | case IDBCursorDirection::Prev: | ||||
| 11601 | case IDBCursorDirection::Prevunique: | ||||
| 11602 | 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" , 11602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key >= sortKey" ")"); do { MOZ_CrashSequence(__null, 11602 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key >= sortKey))) { | ||||
| 11603 | return false; | ||||
| 11604 | } | ||||
| 11605 | break; | ||||
| 11606 | |||||
| 11607 | default: | ||||
| 11608 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11608 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 11608); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 11609 | } | ||||
| 11610 | } | ||||
| 11611 | break; | ||||
| 11612 | } | ||||
| 11613 | |||||
| 11614 | case CursorRequestParams::TContinuePrimaryKeyParams: { | ||||
| 11615 | if constexpr (IsIndexCursor) { | ||||
| 11616 | const Key& key = aParams.get_ContinuePrimaryKeyParams().key(); | ||||
| 11617 | const Key& primaryKey = | ||||
| 11618 | aParams.get_ContinuePrimaryKeyParams().primaryKey(); | ||||
| 11619 | 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", 11619 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!key.IsUnset()" ")" ); do { MOZ_CrashSequence(__null, 11619); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11620 | 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", 11620 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!primaryKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 11620); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11621 | switch (mDirection) { | ||||
| 11622 | case IDBCursorDirection::Next: | ||||
| 11623 | 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", 11625 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11625); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey))) | ||||
| 11624 | (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", 11625 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11625); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey))) | ||||
| 11625 | 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", 11625 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11625); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key < sortKey || (key == sortKey && primaryKey <= aPosition.mObjectStoreKey)))) { | ||||
| 11626 | return false; | ||||
| 11627 | } | ||||
| 11628 | break; | ||||
| 11629 | |||||
| 11630 | case IDBCursorDirection::Prev: | ||||
| 11631 | 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", 11633 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11633); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey))) | ||||
| 11632 | (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", 11633 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11633); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey))) | ||||
| 11633 | 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", 11633 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)" ")"); do { MOZ_CrashSequence(__null, 11633); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((key > sortKey || (key == sortKey && primaryKey >= aPosition.mObjectStoreKey)))) { | ||||
| 11634 | return false; | ||||
| 11635 | } | ||||
| 11636 | break; | ||||
| 11637 | |||||
| 11638 | default: | ||||
| 11639 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11639 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 11639); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 11640 | } | ||||
| 11641 | } | ||||
| 11642 | break; | ||||
| 11643 | } | ||||
| 11644 | |||||
| 11645 | case CursorRequestParams::TAdvanceParams: | ||||
| 11646 | 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" , 11646); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "!aParams.get_AdvanceParams().count()" ")"); do { MOZ_CrashSequence (__null, 11646); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); } return aCond; }((!aParams.get_AdvanceParams ().count()))) { | ||||
| 11647 | return false; | ||||
| 11648 | } | ||||
| 11649 | break; | ||||
| 11650 | |||||
| 11651 | default: | ||||
| 11652 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11652 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 11652); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 11653 | } | ||||
| 11654 | |||||
| 11655 | return true; | ||||
| 11656 | } | ||||
| 11657 | |||||
| 11658 | template <IDBCursorType CursorType> | ||||
| 11659 | bool Cursor<CursorType>::Start(const int64_t aRequestId, | ||||
| 11660 | const OpenCursorParams& aParams) { | ||||
| 11661 | AssertIsOnBackgroundThread(); | ||||
| 11662 | 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" , 11662); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == ToOpenCursorParamsType(CursorType)" ")"); do { MOZ_CrashSequence(__null, 11662); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11663 | 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" , 11663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11663); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11664 | |||||
| 11665 | 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" , 11665); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "mCurrentlyRunningOp" ")"); do { MOZ_CrashSequence(__null, 11665 ); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); } return aCond; }((mCurrentlyRunningOp))) { | ||||
| 11666 | return false; | ||||
| 11667 | } | ||||
| 11668 | |||||
| 11669 | const Maybe<SerializedKeyRange>& optionalKeyRange = | ||||
| 11670 | GetCommonOpenCursorParams(aParams).optionalKeyRange(); | ||||
| 11671 | |||||
| 11672 | const RefPtr<OpenOp> openOp = new OpenOp(this, aRequestId, optionalKeyRange); | ||||
| 11673 | |||||
| 11674 | if (NS_WARN_IF(!openOp->Init(*mTransaction))NS_warn_if_impl(!openOp->Init(*mTransaction), "!openOp->Init(*mTransaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11674 )) { | ||||
| 11675 | openOp->Cleanup(); | ||||
| 11676 | return false; | ||||
| 11677 | } | ||||
| 11678 | |||||
| 11679 | openOp->DispatchToConnectionPool(); | ||||
| 11680 | mCurrentlyRunningOp = openOp; | ||||
| 11681 | |||||
| 11682 | return true; | ||||
| 11683 | } | ||||
| 11684 | |||||
| 11685 | void ValueCursorBase::ProcessFiles(CursorResponse& aResponse, | ||||
| 11686 | const FilesArray& aFiles) { | ||||
| 11687 | 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" , 11693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11693); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11688 | 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" , 11693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11693); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11689 | 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" , 11693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11693); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11690 | 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" , 11693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11693); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11691 | 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" , 11693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11693); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11692 | 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" , 11693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11693); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11693 | 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" , 11693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aFiles.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11693); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11694 | |||||
| 11695 | for (size_t i = 0; i < aFiles.Length(); ++i) { | ||||
| 11696 | const auto& files = aFiles[i]; | ||||
| 11697 | if (!files.IsEmpty()) { | ||||
| 11698 | // TODO: Replace this assertion by one that checks if the response type | ||||
| 11699 | // matches the cursor type, at a more generic location. | ||||
| 11700 | 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", 11703 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { MOZ_CrashSequence(__null, 11703); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 11701 | 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", 11703 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { MOZ_CrashSequence(__null, 11703); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 11702 | 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", 11703 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { MOZ_CrashSequence(__null, 11703); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 11703 | 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", 11703 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() == CursorResponse::TArrayOfObjectStoreCursorResponse || aResponse.type() == CursorResponse::TArrayOfIndexCursorResponse" ")"); do { MOZ_CrashSequence(__null, 11703); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11704 | |||||
| 11705 | SerializedStructuredCloneReadInfo* serializedInfo = nullptr; | ||||
| 11706 | switch (aResponse.type()) { | ||||
| 11707 | case CursorResponse::TArrayOfObjectStoreCursorResponse: { | ||||
| 11708 | auto& responses = aResponse.get_ArrayOfObjectStoreCursorResponse(); | ||||
| 11709 | 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", 11709 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()" ")"); do { MOZ_CrashSequence(__null, 11709); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11710 | serializedInfo = &responses[i].cloneInfo(); | ||||
| 11711 | break; | ||||
| 11712 | } | ||||
| 11713 | |||||
| 11714 | case CursorResponse::TArrayOfIndexCursorResponse: { | ||||
| 11715 | auto& responses = aResponse.get_ArrayOfIndexCursorResponse(); | ||||
| 11716 | 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", 11716 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "i < responses.Length()" ")"); do { MOZ_CrashSequence(__null, 11716); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11717 | serializedInfo = &responses[i].cloneInfo(); | ||||
| 11718 | break; | ||||
| 11719 | } | ||||
| 11720 | |||||
| 11721 | default: | ||||
| 11722 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11722 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 11722); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 11723 | } | ||||
| 11724 | |||||
| 11725 | 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", 11725 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo" ")" ); do { MOZ_CrashSequence(__null, 11725); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11726 | 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" , 11726); AnnotateMozCrashReason("MOZ_ASSERT" "(" "serializedInfo->files().IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 11726); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11727 | 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", 11727 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mDatabase" ")"); do { MOZ_CrashSequence(__null, 11727); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11728 | |||||
| 11729 | QM_TRY_UNWRAP(serializedInfo->files(),auto tryResult1015 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1015 .isErr()), 0))) { auto tryTempError = tryResult1015.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1015 .unwrap(); | ||||
| 11730 | SerializeStructuredCloneFiles(this->mDatabase, files,auto tryResult1015 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1015 .isErr()), 0))) { auto tryTempError = tryResult1015.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1015 .unwrap(); | ||||
| 11731 | /* aForPreprocess */ false),auto tryResult1015 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1015 .isErr()), 0))) { auto tryTempError = tryResult1015.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1015 .unwrap(); | ||||
| 11732 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1015 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1015 .isErr()), 0))) { auto tryTempError = tryResult1015.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1015 .unwrap(); | ||||
| 11733 | aResponse = ClampResultCode(result);auto tryResult1015 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1015 .isErr()), 0))) { auto tryTempError = tryResult1015.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1015 .unwrap(); | ||||
| 11734 | })auto tryResult1015 = (SerializeStructuredCloneFiles(this-> mDatabase, files, false)); if ((__builtin_expect(!!(tryResult1015 .isErr()), 0))) { auto tryTempError = tryResult1015.unwrapErr (); mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles(this->mDatabase, files, false)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11734, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = ClampResultCode(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo->files() = tryResult1015 .unwrap();; | ||||
| 11735 | } | ||||
| 11736 | } | ||||
| 11737 | } | ||||
| 11738 | |||||
| 11739 | template <IDBCursorType CursorType> | ||||
| 11740 | void Cursor<CursorType>::SendResponseInternal( | ||||
| 11741 | CursorResponse& aResponse, const FilesArrayT<CursorType>& aFiles) { | ||||
| 11742 | AssertIsOnBackgroundThread(); | ||||
| 11743 | 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", 11743 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResponse.type() != CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 11743); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11744 | 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", 11745 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" ")"); do { MOZ_CrashSequence(__null, 11745); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11745 | 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", 11745 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResponse.get_nsresult())), 0)))" ")"); do { MOZ_CrashSequence(__null, 11745); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11746 | MOZ_ASSERT_IF(aResponse.type() == CursorResponse::Tnsresult,do { if (aResponse.type() == CursorResponse::Tnsresult) { do { static_assert( mozilla::detail::AssertionConditionType<decltype (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", 11748 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { MOZ_CrashSequence(__null, 11748); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11747 | 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", 11748 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { MOZ_CrashSequence(__null, 11748); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 11748 | 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", 11748 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "NS_ERROR_GET_MODULE(aResponse.get_nsresult()) == 33" ")"); do { MOZ_CrashSequence(__null, 11748); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 11749 | 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" , 11749); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11749); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11750 | 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", 11750 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCurrentlyRunningOp" ")"); do { MOZ_CrashSequence(__null, 11750); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11751 | |||||
| 11752 | KeyValueBase::ProcessFiles(aResponse, aFiles); | ||||
| 11753 | |||||
| 11754 | // Work around the deleted function by casting to the base class. | ||||
| 11755 | QM_WARNONLY_TRY(OkIf({auto tryResult1016 = (OkIf( static_cast<PBackgroundIDBCursorParent *>(this)->SendResponse(aResponse))); static_assert(std:: is_empty_v<typename decltype(tryResult1016)::ok_type>); if ((__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))" , tryResult1016.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11756, mozilla::dom::quota::Severity::Warning); }} | ||||
| 11756 | static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))){auto tryResult1016 = (OkIf( static_cast<PBackgroundIDBCursorParent *>(this)->SendResponse(aResponse))); static_assert(std:: is_empty_v<typename decltype(tryResult1016)::ok_type>); if ((__builtin_expect(!!(tryResult1016.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf( static_cast<PBackgroundIDBCursorParent*>(this)->SendResponse(aResponse))" , tryResult1016.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11756, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 11757 | |||||
| 11758 | mCurrentlyRunningOp = nullptr; | ||||
| 11759 | } | ||||
| 11760 | |||||
| 11761 | template <IDBCursorType CursorType> | ||||
| 11762 | void Cursor<CursorType>::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 11763 | AssertIsOnBackgroundThread(); | ||||
| 11764 | |||||
| 11765 | if (mCurrentlyRunningOp) { | ||||
| 11766 | mCurrentlyRunningOp->NoteActorDestroyed(); | ||||
| 11767 | } | ||||
| 11768 | |||||
| 11769 | if constexpr (IsValueCursor) { | ||||
| 11770 | this->mBackgroundParent.destroy(); | ||||
| 11771 | } | ||||
| 11772 | this->mObjectStoreMetadata.destroy(); | ||||
| 11773 | if constexpr (IsIndexCursor) { | ||||
| 11774 | this->mIndexMetadata.destroy(); | ||||
| 11775 | } | ||||
| 11776 | } | ||||
| 11777 | |||||
| 11778 | template <IDBCursorType CursorType> | ||||
| 11779 | mozilla::ipc::IPCResult Cursor<CursorType>::RecvDeleteMe() { | ||||
| 11780 | AssertIsOnBackgroundThread(); | ||||
| 11781 | 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" , 11781); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11781); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11782 | |||||
| 11783 | if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11783)) { | ||||
| 11784 | return IPC_FAIL(mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!" )) | ||||
| 11785 | this,mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Attempt to delete a cursor with a non-null mCurrentlyRunningOp!" )) | ||||
| 11786 | "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!" )); | ||||
| 11787 | } | ||||
| 11788 | |||||
| 11789 | QM_WARNONLY_TRY(OkIf(PBackgroundIDBCursorParent::Send__delete__(this))){auto tryResult1017 = (OkIf(PBackgroundIDBCursorParent::Send__delete__ (this))); static_assert(std::is_empty_v<typename decltype( tryResult1017)::ok_type>); if ((__builtin_expect(!!(tryResult1017 .isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(PBackgroundIDBCursorParent::Send__delete__(this))" , tryResult1017.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11789, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 11790 | |||||
| 11791 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11792 | } | ||||
| 11793 | |||||
| 11794 | template <IDBCursorType CursorType> | ||||
| 11795 | mozilla::ipc::IPCResult Cursor<CursorType>::RecvContinue( | ||||
| 11796 | const int64_t& aRequestId, const CursorRequestParams& aParams, | ||||
| 11797 | const Key& aCurrentKey, const Key& aCurrentObjectStoreKey) { | ||||
| 11798 | AssertIsOnBackgroundThread(); | ||||
| 11799 | 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", 11799 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() != CursorRequestParams::T__None" ")"); do { MOZ_CrashSequence(__null, 11799); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11800 | 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" , 11800); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mObjectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 11800); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11801 | if constexpr (IsIndexCursor) { | ||||
| 11802 | 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", 11802 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "this->mIndexMetadata" ")"); do { MOZ_CrashSequence(__null, 11802); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11803 | } | ||||
| 11804 | |||||
| 11805 | const bool trustParams = | ||||
| 11806 | #ifdef DEBUG1 | ||||
| 11807 | // Always verify parameters in DEBUG builds! | ||||
| 11808 | false | ||||
| 11809 | #else | ||||
| 11810 | this->mIsSameProcessActor | ||||
| 11811 | #endif | ||||
| 11812 | ; | ||||
| 11813 | |||||
| 11814 | 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", 11814 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aCurrentKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 11814); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11815 | |||||
| 11816 | QM_TRY_UNWRAP(auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11817 | auto position,auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11818 | ([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> {auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11819 | if constexpr (IsIndexCursor) {auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11820 | auto localeAwarePosition = Key{};auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11821 | if (this->IsLocaleAware()) {auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11822 | QM_TRY_UNWRAP(auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11823 | localeAwarePosition,auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11824 | aCurrentKey.ToLocaleAwareKey(this->mLocale),auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11825 | Err(IPC_FAIL(this, "aCurrentKey.ToLocaleAwareKey failed!")));auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11826 | }auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11827 | return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition,auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11828 | aCurrentObjectStoreKey};auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11829 | } else {auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11830 | return CursorPosition<CursorType>{aCurrentKey};auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11831 | }auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap(); | ||||
| 11832 | }()))auto tryResult1019 = (([&]() -> Result<CursorPosition <CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this ->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey (this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018 .unwrapErr(); mozilla::dom::quota::HandleError("aCurrentKey.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11825, 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 = tryResult1018.unwrap();; } return CursorPosition <CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey }; } else { return CursorPosition<CursorType>{aCurrentKey }; } }())); if ((__builtin_expect(!!(tryResult1019.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&]() -> Result<CursorPosition<CursorType>, mozilla::ipc::IPCResult> { if constexpr (IsIndexCursor) { auto localeAwarePosition = Key{}; if (this->IsLocaleAware()) { auto tryResult1018 = (aCurrentKey.ToLocaleAwareKey(this->mLocale)); if ((__builtin_expect(!!(tryResult1018.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1018.unwrapErr(); mozilla::dom::quota::HandleError(\"aCurrentKey.ToLocaleAwareKey(this->mLocale)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11825, 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 = tryResult1018.unwrap();; } return CursorPosition<CursorType>{aCurrentKey, localeAwarePosition, aCurrentObjectStoreKey}; } else { return CursorPosition<CursorType>{aCurrentKey}; } }())" , tryResult1019.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11832, mozilla::dom::quota::Severity::Error); return tryResult1019 .propagateErr(); } auto position = tryResult1019.unwrap();; | ||||
| 11833 | |||||
| 11834 | if (!trustParams && !VerifyRequestParams(aParams, position)) { | ||||
| 11835 | return IPC_FAIL(this, "VerifyRequestParams failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("VerifyRequestParams failed!" )); | ||||
| 11836 | } | ||||
| 11837 | |||||
| 11838 | if (NS_WARN_IF(mCurrentlyRunningOp)NS_warn_if_impl(mCurrentlyRunningOp, "mCurrentlyRunningOp", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11838)) { | ||||
| 11839 | return IPC_FAIL(this, "Cursor is CurrentlyRunningOp!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Cursor is CurrentlyRunningOp!" )); | ||||
| 11840 | } | ||||
| 11841 | |||||
| 11842 | if (NS_WARN_IF(mTransaction->mCommitOrAbortReceived)NS_warn_if_impl(mTransaction->mCommitOrAbortReceived, "mTransaction->mCommitOrAbortReceived" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11842 )) { | ||||
| 11843 | return IPC_FAIL(this, "Transaction is already committed/aborted!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Transaction is already committed/aborted!" )); | ||||
| 11844 | } | ||||
| 11845 | |||||
| 11846 | const RefPtr<ContinueOp> continueOp = | ||||
| 11847 | new ContinueOp(this, aRequestId, aParams, std::move(position)); | ||||
| 11848 | if (NS_WARN_IF(!continueOp->Init(*mTransaction))NS_warn_if_impl(!continueOp->Init(*mTransaction), "!continueOp->Init(*mTransaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11848 )) { | ||||
| 11849 | continueOp->Cleanup(); | ||||
| 11850 | return IPC_FAIL(this, "ContinueOp initialization failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("ContinueOp initialization failed!" )); | ||||
| 11851 | } | ||||
| 11852 | |||||
| 11853 | continueOp->DispatchToConnectionPool(); | ||||
| 11854 | mCurrentlyRunningOp = continueOp; | ||||
| 11855 | |||||
| 11856 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 11857 | } | ||||
| 11858 | |||||
| 11859 | /******************************************************************************* | ||||
| 11860 | * DatabaseFileManager | ||||
| 11861 | ******************************************************************************/ | ||||
| 11862 | |||||
| 11863 | DatabaseFileManager::MutexType DatabaseFileManager::sMutex; | ||||
| 11864 | |||||
| 11865 | DatabaseFileManager::DatabaseFileManager( | ||||
| 11866 | PersistenceType aPersistenceType, | ||||
| 11867 | const quota::OriginMetadata& aOriginMetadata, | ||||
| 11868 | const nsAString& aDatabaseName, const nsCString& aDatabaseID, | ||||
| 11869 | const nsAString& aDatabaseFilePath, bool aEnforcingQuota, | ||||
| 11870 | bool aIsInPrivateBrowsingMode) | ||||
| 11871 | : mPersistenceType(aPersistenceType), | ||||
| 11872 | mOriginMetadata(aOriginMetadata), | ||||
| 11873 | mDatabaseName(aDatabaseName), | ||||
| 11874 | mDatabaseID(aDatabaseID), | ||||
| 11875 | mDatabaseFilePath(aDatabaseFilePath), | ||||
| 11876 | mCipherKeyManager( | ||||
| 11877 | aIsInPrivateBrowsingMode | ||||
| 11878 | ? new IndexedDBCipherKeyManager("IndexedDBCipherKeyManager") | ||||
| 11879 | : nullptr), | ||||
| 11880 | mDatabaseVersion(0), | ||||
| 11881 | mEnforcingQuota(aEnforcingQuota), | ||||
| 11882 | mIsInPrivateBrowsingMode(aIsInPrivateBrowsingMode) {} | ||||
| 11883 | |||||
| 11884 | uint64_t DatabaseFileManager::DatabaseVersion() const { | ||||
| 11885 | AssertIsOnIOThread(); | ||||
| 11886 | |||||
| 11887 | return mDatabaseVersion; | ||||
| 11888 | } | ||||
| 11889 | |||||
| 11890 | void DatabaseFileManager::UpdateDatabaseVersion(uint64_t aDatabaseVersion) { | ||||
| 11891 | AssertIsOnIOThread(); | ||||
| 11892 | |||||
| 11893 | mDatabaseVersion = aDatabaseVersion; | ||||
| 11894 | } | ||||
| 11895 | |||||
| 11896 | nsresult DatabaseFileManager::Init(nsIFile* aDirectory, | ||||
| 11897 | const uint64_t aDatabaseVersion, | ||||
| 11898 | mozIStorageConnection& aConnection) { | ||||
| 11899 | AssertIsOnIOThread(); | ||||
| 11900 | 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" , 11900); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 11900); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11901 | |||||
| 11902 | { | ||||
| 11903 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult1020 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect (!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(*aDirectory)", tryResult1020.inspectErr() , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11904 , mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); } const bool& existsAsDirectory = tryResult1020 .inspect(); | ||||
| 11904 | ExistsAsDirectory(*aDirectory))auto tryResult1020 = (ExistsAsDirectory(*aDirectory)); if ((__builtin_expect (!!(tryResult1020.isErr()), 0))) { mozilla::dom::quota::HandleError ("ExistsAsDirectory(*aDirectory)", tryResult1020.inspectErr() , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 11904 , mozilla::dom::quota::Severity::Error); return tryResult1020 .propagateErr(); } const bool& existsAsDirectory = tryResult1020 .inspect();; | ||||
| 11905 | |||||
| 11906 | if (!existsAsDirectory) { | ||||
| 11907 | QM_TRY(MOZ_TO_RESULT(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1021 = (ToResult(aDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1021)::ok_type>); if ((__builtin_expect (!!(tryResult1021.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryResult1021.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11907, mozilla::dom::quota::Severity::Error); return tryResult1021 .propagateErr(); }}; | ||||
| 11908 | } | ||||
| 11909 | |||||
| 11910 | QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1022 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aDirectory)>::GetPath), (aDirectory) )); if ((__builtin_expect (!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory) )" , tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11911, mozilla::dom::quota::Severity::Error); return tryResult1022 .propagateErr(); } auto path = tryResult1022.unwrap(); | ||||
| 11911 | nsString, aDirectory, GetPath))auto tryResult1022 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (aDirectory)>::GetPath), (aDirectory) )); if ((__builtin_expect (!!(tryResult1022.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aDirectory)>::GetPath), (aDirectory) )" , tryResult1022.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11911, mozilla::dom::quota::Severity::Error); return tryResult1022 .propagateErr(); } auto path = tryResult1022.unwrap();; | ||||
| 11912 | |||||
| 11913 | mDirectoryPath.init(std::move(path)); | ||||
| 11914 | } | ||||
| 11915 | |||||
| 11916 | QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult1023 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult1023.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)" , tryResult1023.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11917, mozilla::dom::quota::Severity::Error); return tryResult1023 .propagateErr(); } const auto& journalDirectory = tryResult1023 .inspect(); | ||||
| 11917 | CloneFileAndAppend(*aDirectory, kJournalDirectoryName))auto tryResult1023 = (CloneFileAndAppend(*aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult1023.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, kJournalDirectoryName)" , tryResult1023.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11917, mozilla::dom::quota::Severity::Error); return tryResult1023 .propagateErr(); } const auto& journalDirectory = tryResult1023 .inspect();; | ||||
| 11918 | |||||
| 11919 | // We don't care if it doesn't exist at all, but if it does exist, make sure | ||||
| 11920 | // it's a directory. | ||||
| 11921 | QM_TRY_INSPECT(const bool& existsAsDirectory,auto tryResult1024 = (ExistsAsDirectory(*journalDirectory)); if ((__builtin_expect(!!(tryResult1024.isErr()), 0))) { mozilla ::dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)" , tryResult1024.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11922, mozilla::dom::quota::Severity::Error); return tryResult1024 .propagateErr(); } const bool& existsAsDirectory = tryResult1024 .inspect(); | ||||
| 11922 | ExistsAsDirectory(*journalDirectory))auto tryResult1024 = (ExistsAsDirectory(*journalDirectory)); if ((__builtin_expect(!!(tryResult1024.isErr()), 0))) { mozilla ::dom::quota::HandleError("ExistsAsDirectory(*journalDirectory)" , tryResult1024.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11922, mozilla::dom::quota::Severity::Error); return tryResult1024 .propagateErr(); } const bool& existsAsDirectory = tryResult1024 .inspect();; | ||||
| 11923 | (void)existsAsDirectory; | ||||
| 11924 | |||||
| 11925 | { | ||||
| 11926 | QM_TRY_UNWRAP(auto path, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1025 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11927, mozilla::dom::quota::Severity::Error); return tryResult1025 .propagateErr(); } auto path = tryResult1025.unwrap(); | ||||
| 11927 | nsString, journalDirectory, GetPath))auto tryResult1025 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1025.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1025.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11927, mozilla::dom::quota::Severity::Error); return tryResult1025 .propagateErr(); } auto path = tryResult1025.unwrap();; | ||||
| 11928 | |||||
| 11929 | mJournalDirectoryPath.init(std::move(path)); | ||||
| 11930 | } | ||||
| 11931 | |||||
| 11932 | mDatabaseVersion = aDatabaseVersion; | ||||
| 11933 | |||||
| 11934 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1026 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult1026.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)" , tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11937, mozilla::dom::quota::Severity::Error); return tryResult1026 .propagateErr(); } const auto& stmt = tryResult1026.inspect (); | ||||
| 11935 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1026 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult1026.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)" , tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11937, mozilla::dom::quota::Severity::Error); return tryResult1026 .propagateErr(); } const auto& stmt = tryResult1026.inspect (); | ||||
| 11936 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1026 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult1026.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)" , tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11937, mozilla::dom::quota::Severity::Error); return tryResult1026 .propagateErr(); } const auto& stmt = tryResult1026.inspect (); | ||||
| 11937 | CreateStatement, "SELECT id, refcount FROM file"_ns))auto tryResult1026 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, refcount FROM file"_ns)); if (( __builtin_expect(!!(tryResult1026.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)" , tryResult1026.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11937, mozilla::dom::quota::Severity::Error); return tryResult1026 .propagateErr(); } const auto& stmt = tryResult1026.inspect ();; | ||||
| 11938 | |||||
| 11939 | QM_TRY({auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11940 | CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11941 | QM_TRY_INSPECT(const int64_t& id,{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11942 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11943 | QM_TRY_INSPECT(const int32_t& dbRefCnt,{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11944 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt32, 1));{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11945 | |||||
| 11946 | // We put a raw pointer into the hash table, so the memory refcount will{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11947 | // be 0, but the dbRefCnt is non-zero, which will keep the{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11948 | // DatabaseFileInfo object alive.{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11949 | MOZ_ASSERT(dbRefCnt > 0);{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11950 | DebugOnly ok = static_cast<bool>(CreateFileInfo(Some(id), dbRefCnt));{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11951 | MOZ_ASSERT(ok);{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11952 | |||||
| 11953 | return Ok{};{auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }} | ||||
| 11954 | })){auto tryResult1029 = (CollectWhileHasResult(*stmt, [this](auto & stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1027.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11942, mozilla::dom::quota::Severity::Error); return tryResult1027 .propagateErr(); } const int64_t& id = tryResult1027.inspect ();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( ( stmt), &::mozilla::detail::DerefedType<decltype(stmt)> ::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)" , tryResult1028.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11944, mozilla::dom::quota::Severity::Error); return tryResult1028 .propagateErr(); } const int32_t& dbRefCnt = tryResult1028 .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", 11949 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "dbRefCnt > 0" ")" ); do { MOZ_CrashSequence(__null, 11949); __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" , 11951); AnnotateMozCrashReason("MOZ_ASSERT" "(" "ok" ")"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1029 )::ok_type>); if ((__builtin_expect(!!(tryResult1029.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult(*stmt, [this](auto& stmt) -> Result<Ok, nsresult> { auto tryResult1027 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1027.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1027.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11942, mozilla::dom::quota::Severity::Error); return tryResult1027.propagateErr(); } const int64_t& id = tryResult1027.inspect();; auto tryResult1028 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)); if ((__builtin_expect(!!(tryResult1028.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt32 , 1)\", tryResult1028.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 11944, mozilla::dom::quota::Severity::Error); return tryResult1028.propagateErr(); } const int32_t& dbRefCnt = tryResult1028.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\", 11949); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"dbRefCnt > 0\" \")\"); do { MOZ_CrashSequence(__null, 11949); __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\", 11951); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"ok\" \")\"); do { MOZ_CrashSequence(__null, 11951); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return Ok{}; })" , tryResult1029.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11954, mozilla::dom::quota::Severity::Error); return tryResult1029 .propagateErr(); }}; | ||||
| 11955 | |||||
| 11956 | mInitialized.Flip(); | ||||
| 11957 | |||||
| 11958 | return NS_OK; | ||||
| 11959 | } | ||||
| 11960 | |||||
| 11961 | nsCOMPtr<nsIFile> DatabaseFileManager::GetDirectory() { | ||||
| 11962 | if (!this->AssertValid()) { | ||||
| 11963 | return nullptr; | ||||
| 11964 | } | ||||
| 11965 | |||||
| 11966 | return GetFileForPath(*mDirectoryPath); | ||||
| 11967 | } | ||||
| 11968 | |||||
| 11969 | nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedDirectory() { | ||||
| 11970 | auto directory = GetDirectory(); | ||||
| 11971 | if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11971)) { | ||||
| 11972 | return nullptr; | ||||
| 11973 | } | ||||
| 11974 | |||||
| 11975 | DebugOnly<bool> exists; | ||||
| 11976 | 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", 11976 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->Exists(&exists))), 1)))" ")"); do { MOZ_CrashSequence(__null, 11976); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11977 | 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" , 11977); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { MOZ_CrashSequence(__null, 11977); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 11978 | |||||
| 11979 | DebugOnly<bool> isDirectory; | ||||
| 11980 | 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", 11980 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(directory->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 11980); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11981 | 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" , 11981); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 11981); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11982 | |||||
| 11983 | return directory; | ||||
| 11984 | } | ||||
| 11985 | |||||
| 11986 | nsCOMPtr<nsIFile> DatabaseFileManager::GetJournalDirectory() { | ||||
| 11987 | if (!this->AssertValid()) { | ||||
| 11988 | return nullptr; | ||||
| 11989 | } | ||||
| 11990 | |||||
| 11991 | return GetFileForPath(*mJournalDirectoryPath); | ||||
| 11992 | } | ||||
| 11993 | |||||
| 11994 | nsCOMPtr<nsIFile> DatabaseFileManager::EnsureJournalDirectory() { | ||||
| 11995 | // This can happen on the IO or on a transaction thread. | ||||
| 11996 | 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", 11996 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 11996); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 11997 | |||||
| 11998 | auto journalDirectory = GetFileForPath(*mJournalDirectoryPath); | ||||
| 11999 | QM_TRY(OkIf(journalDirectory), nullptr){auto tryResult1030 = (OkIf(journalDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1030)::ok_type >); if ((__builtin_expect(!!(tryResult1030.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1030.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(journalDirectory)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 11999, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, nullptr); }}; | ||||
| 12000 | |||||
| 12001 | QM_TRY_INSPECT(const bool& exists,auto tryResult1031 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1031.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1031 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12003, 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 = tryResult1031 .inspect(); | ||||
| 12002 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists),auto tryResult1031 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1031.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1031 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12003, 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 = tryResult1031 .inspect(); | ||||
| 12003 | nullptr)auto tryResult1031 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1031.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1031 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12003, 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 = tryResult1031 .inspect();; | ||||
| 12004 | |||||
| 12005 | if (exists) { | ||||
| 12006 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1032 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1032 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1032 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12008, 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 = tryResult1032 .inspect(); | ||||
| 12007 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory),auto tryResult1032 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1032 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1032 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12008, 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 = tryResult1032 .inspect(); | ||||
| 12008 | nullptr)auto tryResult1032 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1032 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1032 .unwrapErr(); mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12008, 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 = tryResult1032 .inspect();; | ||||
| 12009 | |||||
| 12010 | QM_TRY(OkIf(isDirectory), nullptr){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" , 12010, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , nullptr); }}; | ||||
| 12011 | } else { | ||||
| 12012 | QM_TRY({auto tryResult1034 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1034)::ok_type>); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1034.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12014, 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); }} | ||||
| 12013 | MOZ_TO_RESULT(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755)),{auto tryResult1034 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1034)::ok_type>); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1034.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12014, 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); }} | ||||
| 12014 | nullptr){auto tryResult1034 = (ToResult(journalDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1034)::ok_type>); if ((__builtin_expect (!!(tryResult1034.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1034.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(journalDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12014, 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); }}; | ||||
| 12015 | } | ||||
| 12016 | |||||
| 12017 | return journalDirectory; | ||||
| 12018 | } | ||||
| 12019 | |||||
| 12020 | // static | ||||
| 12021 | nsCOMPtr<nsIFile> DatabaseFileManager::GetFileForId(nsIFile* aDirectory, | ||||
| 12022 | int64_t aId) { | ||||
| 12023 | 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" , 12023); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 12023); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12024 | 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" , 12024); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aId > 0" ")"); do { MOZ_CrashSequence(__null, 12024); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12025 | |||||
| 12026 | QM_TRY_RETURN(CloneFileAndAppend(*aDirectory, IntToString(aId)), nullptr){auto tryResult1035 = (CloneFileAndAppend(*aDirectory, IntToString (aId))); if ((__builtin_expect(!!(tryResult1035.isErr()), 0)) ) { [[maybe_unused]] auto tryTempError = tryResult1035.unwrapErr (); mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, IntToString(aId))" , tryResult1035.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12026, 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 tryResult1035.unwrap();}; | ||||
| 12027 | } | ||||
| 12028 | |||||
| 12029 | // static | ||||
| 12030 | nsCOMPtr<nsIFile> DatabaseFileManager::GetCheckedFileForId(nsIFile* aDirectory, | ||||
| 12031 | int64_t aId) { | ||||
| 12032 | auto file = GetFileForId(aDirectory, aId); | ||||
| 12033 | if (NS_WARN_IF(!file)NS_warn_if_impl(!file, "!file", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12033)) { | ||||
| 12034 | return nullptr; | ||||
| 12035 | } | ||||
| 12036 | |||||
| 12037 | DebugOnly<bool> exists; | ||||
| 12038 | 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", 12038 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->Exists(&exists))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12038); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12039 | 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" , 12039); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { MOZ_CrashSequence(__null, 12039); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 12040 | |||||
| 12041 | DebugOnly<bool> isFile; | ||||
| 12042 | 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", 12042 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(file->IsFile(&isFile))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12042); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12043 | 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" , 12043); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isFile" ")" ); do { MOZ_CrashSequence(__null, 12043); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 12044 | |||||
| 12045 | return file; | ||||
| 12046 | } | ||||
| 12047 | |||||
| 12048 | // static | ||||
| 12049 | nsresult DatabaseFileManager::InitDirectory(nsIFile& aDirectory, | ||||
| 12050 | nsIFile& aDatabaseFile, | ||||
| 12051 | const nsACString& aOrigin, | ||||
| 12052 | uint32_t aTelemetryId) { | ||||
| 12053 | AssertIsOnIOThread(); | ||||
| 12054 | |||||
| 12055 | { | ||||
| 12056 | QM_TRY_INSPECT(const bool& exists,auto tryResult1036 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1036.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )" , tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12057, mozilla::dom::quota::Severity::Error); return tryResult1036 .propagateErr(); } const bool& exists = tryResult1036.inspect (); | ||||
| 12057 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, Exists))auto tryResult1036 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1036.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::Exists )" , tryResult1036.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12057, mozilla::dom::quota::Severity::Error); return tryResult1036 .propagateErr(); } const bool& exists = tryResult1036.inspect ();; | ||||
| 12058 | |||||
| 12059 | if (!exists) { | ||||
| 12060 | return NS_OK; | ||||
| 12061 | } | ||||
| 12062 | |||||
| 12063 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1037 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1037 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )" , tryResult1037.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12064, mozilla::dom::quota::Severity::Error); return tryResult1037 .propagateErr(); } const bool& isDirectory = tryResult1037 .inspect(); | ||||
| 12064 | MOZ_TO_RESULT_INVOKE_MEMBER(aDirectory, IsDirectory))auto tryResult1037 = (::mozilla::ToResultInvokeMember( (aDirectory ), &::mozilla::detail::DerefedType<decltype(aDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1037 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDirectory), &::mozilla::detail::DerefedType<decltype(aDirectory)>::IsDirectory )" , tryResult1037.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12064, mozilla::dom::quota::Severity::Error); return tryResult1037 .propagateErr(); } const bool& isDirectory = tryResult1037 .inspect();; | ||||
| 12065 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1038 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult1038)::ok_type>); if ((__builtin_expect(!!(tryResult1038.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1038.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12065, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12066 | } | ||||
| 12067 | |||||
| 12068 | QM_TRY_INSPECT(const auto& journalDirectory,auto tryResult1039 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)" , tryResult1039.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12069, mozilla::dom::quota::Severity::Error); return tryResult1039 .propagateErr(); } const auto& journalDirectory = tryResult1039 .inspect(); | ||||
| 12069 | CloneFileAndAppend(aDirectory, kJournalDirectoryName))auto tryResult1039 = (CloneFileAndAppend(aDirectory, kJournalDirectoryName )); if ((__builtin_expect(!!(tryResult1039.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(aDirectory, kJournalDirectoryName)" , tryResult1039.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12069, mozilla::dom::quota::Severity::Error); return tryResult1039 .propagateErr(); } const auto& journalDirectory = tryResult1039 .inspect();; | ||||
| 12070 | |||||
| 12071 | QM_TRY_INSPECT(const bool& exists,auto tryResult1040 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1040.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12072, mozilla::dom::quota::Severity::Error); return tryResult1040 .propagateErr(); } const bool& exists = tryResult1040.inspect (); | ||||
| 12072 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, Exists))auto tryResult1040 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1040.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::Exists )" , tryResult1040.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12072, mozilla::dom::quota::Severity::Error); return tryResult1040 .propagateErr(); } const bool& exists = tryResult1040.inspect ();; | ||||
| 12073 | |||||
| 12074 | if (exists) { | ||||
| 12075 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1041 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1041 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12076, mozilla::dom::quota::Severity::Error); return tryResult1041 .propagateErr(); } const bool& isDirectory = tryResult1041 .inspect(); | ||||
| 12076 | MOZ_TO_RESULT_INVOKE_MEMBER(journalDirectory, IsDirectory))auto tryResult1041 = (::mozilla::ToResultInvokeMember( (journalDirectory ), &::mozilla::detail::DerefedType<decltype(journalDirectory )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1041 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (journalDirectory), &::mozilla::detail::DerefedType<decltype(journalDirectory)>::IsDirectory )" , tryResult1041.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12076, mozilla::dom::quota::Severity::Error); return tryResult1041 .propagateErr(); } const bool& isDirectory = tryResult1041 .inspect();; | ||||
| 12077 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1042 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult1042)::ok_type>); if ((__builtin_expect(!!(tryResult1042.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1042.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(isDirectory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12077, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12078 | |||||
| 12079 | bool hasJournals = false; | ||||
| 12080 | |||||
| 12081 | QM_TRY(CollectEachFile({auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12082 | *journalDirectory,{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12083 | [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12084 | QM_TRY_INSPECT({auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12085 | const auto& leafName,{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12086 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12087 | |||||
| 12088 | nsresult rv;{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12089 | leafName.ToInteger64(&rv);{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12090 | if (NS_SUCCEEDED(rv)) {{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12091 | hasJournals = true;{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12092 | } else {{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12093 | UNKNOWN_FILE_WARNING(leafName);{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12094 | }{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12095 | |||||
| 12096 | return Ok{};{auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }} | ||||
| 12097 | })){auto tryResult1044 = (CollectEachFile( *journalDirectory, [& hasJournals](const nsCOMPtr<nsIFile>& file) -> Result <Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect (!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1043.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12086, mozilla::dom::quota::Severity::Error); return tryResult1043 .propagateErr(); } const auto& leafName = tryResult1043.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" , 12093); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1044)::ok_type>); if ((__builtin_expect (!!(tryResult1044.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *journalDirectory, [&hasJournals](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1043 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1043.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1043.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12086, mozilla::dom::quota::Severity::Error); return tryResult1043.propagateErr(); } const auto& leafName = tryResult1043.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\", 12093); } return Ok{}; })" , tryResult1044.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12097, mozilla::dom::quota::Severity::Error); return tryResult1044 .propagateErr(); }}; | ||||
| 12098 | |||||
| 12099 | if (hasJournals) { | ||||
| 12100 | QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1045 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12103, mozilla::dom::quota::Severity::Error); return tryResult1045 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1045.unwrap(); | ||||
| 12101 | CreateStorageConnection(auto tryResult1045 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12103, mozilla::dom::quota::Severity::Error); return tryResult1045 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1045.unwrap(); | ||||
| 12102 | aDatabaseFile, aDirectory, VoidString(), aOrigin,auto tryResult1045 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12103, mozilla::dom::quota::Severity::Error); return tryResult1045 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1045.unwrap(); | ||||
| 12103 | /* aDirectoryLockId */ -1, aTelemetryId, Nothing{}))auto tryResult1045 = (CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing {})); if ((__builtin_expect(!!(tryResult1045.isErr()), 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection( aDatabaseFile, aDirectory, VoidString(), aOrigin, -1, aTelemetryId, Nothing{})" , tryResult1045.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12103, mozilla::dom::quota::Severity::Error); return tryResult1045 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1045.unwrap();; | ||||
| 12104 | |||||
| 12105 | mozStorageTransaction transaction(connection.get(), false); | ||||
| 12106 | |||||
| 12107 | QM_TRY(MOZ_TO_RESULT(transaction.Start())){auto tryResult1046 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult1046)::ok_type >); if ((__builtin_expect(!!(tryResult1046.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Start())" , tryResult1046.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12107, mozilla::dom::quota::Severity::Error); return tryResult1046 .propagateErr(); }} | ||||
| 12108 | |||||
| 12109 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL({auto tryResult1047 = (ToResult(connection->ExecuteSimpleSQL ( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1047)::ok_type >); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12110, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }} | ||||
| 12110 | "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))){auto tryResult1047 = (ToResult(connection->ExecuteSimpleSQL ( "CREATE VIRTUAL TABLE fs USING filesystem;"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1047)::ok_type >); if ((__builtin_expect(!!(tryResult1047.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->ExecuteSimpleSQL( \"CREATE VIRTUAL TABLE fs USING filesystem;\"_ns))" , tryResult1047.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12110, mozilla::dom::quota::Severity::Error); return tryResult1047 .propagateErr(); }}; | ||||
| 12111 | |||||
| 12112 | // The parameter names are not used, parameters are bound by index only | ||||
| 12113 | // locally in the same function. | ||||
| 12114 | QM_TRY_INSPECT(auto tryResult1048 = (::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(!!(tryResult1048.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)" , tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12118, mozilla::dom::quota::Severity::Error); return tryResult1048 .propagateErr(); } const auto& stmt = tryResult1048.inspect (); | ||||
| 12115 | const auto& stmt,auto tryResult1048 = (::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(!!(tryResult1048.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)" , tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12118, mozilla::dom::quota::Severity::Error); return tryResult1048 .propagateErr(); } const auto& stmt = tryResult1048.inspect (); | ||||
| 12116 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1048 = (::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(!!(tryResult1048.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)" , tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12118, mozilla::dom::quota::Severity::Error); return tryResult1048 .propagateErr(); } const auto& stmt = tryResult1048.inspect (); | ||||
| 12117 | nsCOMPtr<mozIStorageStatement>, *connection, CreateStatement,auto tryResult1048 = (::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(!!(tryResult1048.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)" , tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12118, mozilla::dom::quota::Severity::Error); return tryResult1048 .propagateErr(); } const auto& stmt = tryResult1048.inspect (); | ||||
| 12118 | "SELECT name, (name IN (SELECT id FROM file)) FROM fs WHERE path = :path"_ns))auto tryResult1048 = (::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(!!(tryResult1048.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)" , tryResult1048.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12118, mozilla::dom::quota::Severity::Error); return tryResult1048 .propagateErr(); } const auto& stmt = tryResult1048.inspect ();; | ||||
| 12119 | |||||
| 12120 | QM_TRY_INSPECT(const auto& path,auto tryResult1049 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12122, mozilla::dom::quota::Severity::Error); return tryResult1049 .propagateErr(); } const auto& path = tryResult1049.inspect (); | ||||
| 12121 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1049 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12122, mozilla::dom::quota::Severity::Error); return tryResult1049 .propagateErr(); } const auto& path = tryResult1049.inspect (); | ||||
| 12122 | nsString, journalDirectory, GetPath))auto tryResult1049 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (journalDirectory)>::GetPath), (journalDirectory) )); if ( (__builtin_expect(!!(tryResult1049.isErr()), 0))) { mozilla:: dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(journalDirectory)>::GetPath), (journalDirectory) )" , tryResult1049.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12122, mozilla::dom::quota::Severity::Error); return tryResult1049 .propagateErr(); } const auto& path = tryResult1049.inspect ();; | ||||
| 12123 | |||||
| 12124 | QM_TRY(MOZ_TO_RESULT(stmt->BindStringByIndex(0, path))){auto tryResult1050 = (ToResult(stmt->BindStringByIndex(0, path))); static_assert(std::is_empty_v<typename decltype( tryResult1050)::ok_type>); if ((__builtin_expect(!!(tryResult1050 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByIndex(0, path))" , tryResult1050.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12124, mozilla::dom::quota::Severity::Error); return tryResult1050 .propagateErr(); }}; | ||||
| 12125 | |||||
| 12126 | QM_TRY(CollectWhileHasResult({auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12127 | *stmt,{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12128 | [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12129 | nsString name;{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12130 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(0, name)));{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12131 | |||||
| 12132 | nsresult rv;{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12133 | name.ToInteger64(&rv);{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12134 | if (NS_FAILED(rv)) {{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12135 | return Ok{};{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12136 | }{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12137 | |||||
| 12138 | int32_t flag = stmt.AsInt32(1);{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12139 | |||||
| 12140 | if (!flag) {{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12141 | QM_TRY_INSPECT(const auto& file,{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12142 | CloneFileAndAppend(aDirectory, name));{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12143 | |||||
| 12144 | QM_SCOPED_CONTEXT("IDBFileManager::OrphanedFileCleanupFailed"_ns);{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12145 | |||||
| 12146 | QM_WARNONLY_TRY(MOZ_TO_RESULT(file->Remove(false)),{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12147 | [](const auto&) {{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12148 | NS_WARNING("Failed to remove orphaned file!");{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12149 | });{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12150 | }{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12151 | |||||
| 12152 | QM_TRY_INSPECT(const auto& journalFile,{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12153 | CloneFileAndAppend(*journalDirectory, name));{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12154 | |||||
| 12155 | if (NS_FAILED(journalFile->Remove(false))) {{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12156 | NS_WARNING("Failed to remove journal file!");{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12157 | }{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12158 | |||||
| 12159 | return Ok{};{auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }} | ||||
| 12160 | })){auto tryResult1056 = (CollectWhileHasResult( *stmt, [&aDirectory , &journalDirectory](auto& stmt) -> Result<Ok, nsresult > { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString (0, name))); static_assert(std::is_empty_v<typename decltype (tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(0, name))" , tryResult1051.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12130, mozilla::dom::quota::Severity::Error); return tryResult1051 .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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect (!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(aDirectory, name)", tryResult1052.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12142 , mozilla::dom::quota::Severity::Error); return tryResult1052 .propagateErr(); } const auto& file = tryResult1052.inspect ();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted , ("IDBFileManager::OrphanedFileCleanupFailed"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v <typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect (!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12149, 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" , 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend (*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*journalDirectory, name)" , tryResult1055.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12153, mozilla::dom::quota::Severity::Error); return tryResult1055 .propagateErr(); } const auto& journalFile = tryResult1055 .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" , 12156); } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1056)::ok_type>); if ((__builtin_expect (!!(tryResult1056.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [&aDirectory, &journalDirectory](auto& stmt) -> Result<Ok, nsresult> { nsString name; {auto tryResult1051 = (ToResult(stmt.GetString(0, name))); static_assert(std::is_empty_v<typename decltype(tryResult1051)::ok_type>); if ((__builtin_expect(!!(tryResult1051.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(0, name))\", tryResult1051.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12130, mozilla::dom::quota::Severity::Error); return tryResult1051.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 tryResult1052 = (CloneFileAndAppend(aDirectory, name)); if ((__builtin_expect(!!(tryResult1052.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(aDirectory, name)\", tryResult1052.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12142, mozilla::dom::quota::Severity::Error); return tryResult1052.propagateErr(); } const auto& file = tryResult1052.inspect();; const ::mozilla::dom::quota::ScopedLogExtraInfo scopedLogExtraInfo1053 { ::mozilla::dom::quota::ScopedLogExtraInfo::kTagContextTainted, (\"IDBFileManager::OrphanedFileCleanupFailed\"_ns) }; {auto tryResult1054 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1054)::ok_type>); if ((__builtin_expect(!!(tryResult1054.isErr()), 0))) { auto tryTempError = tryResult1054.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12149, 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\", 12148); }(tryTempError); }}; } auto tryResult1055 = (CloneFileAndAppend(*journalDirectory, name)); if ((__builtin_expect(!!(tryResult1055.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*journalDirectory, name)\", tryResult1055.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12153, mozilla::dom::quota::Severity::Error); return tryResult1055.propagateErr(); } const auto& journalFile = tryResult1055.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\", 12156); } return Ok{}; })" , tryResult1056.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12160, mozilla::dom::quota::Severity::Error); return tryResult1056 .propagateErr(); }}; | ||||
| 12161 | |||||
| 12162 | QM_TRY(MOZ_TO_RESULT(connection->ExecuteSimpleSQL("DROP TABLE fs;"_ns))){auto tryResult1057 = (ToResult(connection->ExecuteSimpleSQL ("DROP TABLE fs;"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1057)::ok_type>); if ((__builtin_expect (!!(tryResult1057.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(connection->ExecuteSimpleSQL(\"DROP TABLE fs;\"_ns))" , tryResult1057.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12162, mozilla::dom::quota::Severity::Error); return tryResult1057 .propagateErr(); }}; | ||||
| 12163 | QM_TRY(MOZ_TO_RESULT(transaction.Commit())){auto tryResult1058 = (ToResult(transaction.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1058)::ok_type >); if ((__builtin_expect(!!(tryResult1058.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Commit())" , tryResult1058.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12163, mozilla::dom::quota::Severity::Error); return tryResult1058 .propagateErr(); }}; | ||||
| 12164 | } | ||||
| 12165 | } | ||||
| 12166 | |||||
| 12167 | return NS_OK; | ||||
| 12168 | } | ||||
| 12169 | |||||
| 12170 | // static | ||||
| 12171 | Result<FileUsageType, nsresult> DatabaseFileManager::GetUsage( | ||||
| 12172 | nsIFile* aDirectory) { | ||||
| 12173 | AssertIsOnIOThread(); | ||||
| 12174 | 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" , 12174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 12174); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12175 | |||||
| 12176 | FileUsageType usage; | ||||
| 12177 | |||||
| 12178 | QM_TRY(TraverseFiles({auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12179 | *aDirectory,{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12180 | // KnownDirEntryOp{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12181 | [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> {{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12182 | if (isDirectory) {{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12183 | return Ok{};{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12184 | }{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12185 | |||||
| 12186 | // Usually we only use QM_OR_ELSE_LOG_VERBOSE(_IF) with Remove and{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12187 | // NS_ERROR_FILE_NOT_FOUND check, but the file was found by a directory{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12188 | // traversal and ToInteger on the name succeeded, so it should be our{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12189 | // file and if the file disappears, the use of QM_OR_ELSE_WARN_IF is ok{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12190 | // here.{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12191 | QM_TRY_INSPECT(const auto& thisUsage,{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12192 | QM_OR_ELSE_WARN_IF({auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12193 | // Expression.{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12194 | MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize){auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12195 | .map([](const int64_t fileSize) {{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12196 | return FileUsageType(Some(uint64_t(fileSize)));{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12197 | }),{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12198 | // Predicate.{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12199 | ([](const nsresult rv) {{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12200 | return rv == NS_ERROR_FILE_NOT_FOUND;{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12201 | }),{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12202 | // Fallback. If the file does no longer exist, treat{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12203 | // it as 0-sized.{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12204 | ErrToDefaultOk<FileUsageType>));{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12205 | |||||
| 12206 | usage += thisUsage;{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12207 | |||||
| 12208 | return Ok{};{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12209 | },{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12210 | // UnknownDirEntryOp{auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }} | ||||
| 12211 | [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })){auto tryResult1060 = (TraverseFiles( *aDirectory, [&usage ](nsIFile& file, const bool isDirectory) -> Result< Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember ( (file), &::mozilla::detail::DerefedType<decltype(file )>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto & firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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" , 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla ::dom::quota::Severity::Error); return res; }, ErrToDefaultOk <FileUsageType>)); if ((__builtin_expect(!!(tryResult1059 .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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)" , tryResult1059.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12204, mozilla::dom::quota::Severity::Error); return tryResult1059 .propagateErr(); } const auto& thisUsage = tryResult1059. inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile& , const bool) -> Result<Ok, nsresult> { return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1060 )::ok_type>); if ((__builtin_expect(!!(tryResult1060.isErr ()), 0))) { mozilla::dom::quota::HandleError("TraverseFiles( *aDirectory, [&usage](nsIFile& file, const bool isDirectory) -> Result<Ok, nsresult> { if (isDirectory) { return Ok{}; } auto tryResult1059 = (mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize ) .map([](const int64_t fileSize) { return FileUsageType(Some(uint64_t(fileSize))); })), [&](const auto& firstRes) { bool res = ([](const nsresult rv) { return rv == NS_ERROR_FILE_NOT_FOUND; })(firstRes); mozilla::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\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)); if ((__builtin_expect(!!(tryResult1059.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\\\", 12204, res ? mozilla::dom::quota::Severity::Warning : mozilla::dom::quota::Severity::Error); return res; }, ErrToDefaultOk<FileUsageType>)\", tryResult1059.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12204, mozilla::dom::quota::Severity::Error); return tryResult1059.propagateErr(); } const auto& thisUsage = tryResult1059.inspect();; usage += thisUsage; return Ok{}; }, [](nsIFile&, const bool) -> Result<Ok, nsresult> { return Ok{}; })" , tryResult1060.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12211, mozilla::dom::quota::Severity::Error); return tryResult1060 .propagateErr(); }}; | ||||
| 12212 | |||||
| 12213 | return usage; | ||||
| 12214 | } | ||||
| 12215 | |||||
| 12216 | nsresult DatabaseFileManager::SyncDeleteFile(const int64_t aId) { | ||||
| 12217 | 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", 12217 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!ContainsFileInfo(aId)" ")"); do { MOZ_CrashSequence(__null, 12217); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12218 | |||||
| 12219 | if (!this->AssertValid()) { | ||||
| 12220 | return NS_ERROR_UNEXPECTED; | ||||
| 12221 | } | ||||
| 12222 | |||||
| 12223 | const auto directory = GetDirectory(); | ||||
| 12224 | QM_TRY(OkIf(directory), NS_ERROR_FAILURE){auto tryResult1061 = (OkIf(directory)); static_assert(std::is_empty_v <typename decltype(tryResult1061)::ok_type>); if ((__builtin_expect (!!(tryResult1061.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1061.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(directory)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12224, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(directory)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12225 | |||||
| 12226 | const auto journalDirectory = GetJournalDirectory(); | ||||
| 12227 | QM_TRY(OkIf(journalDirectory), NS_ERROR_FAILURE){auto tryResult1062 = (OkIf(journalDirectory)); static_assert (std::is_empty_v<typename decltype(tryResult1062)::ok_type >); if ((__builtin_expect(!!(tryResult1062.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1062.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(journalDirectory)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12227, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalDirectory)" , tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 12228 | |||||
| 12229 | const nsCOMPtr<nsIFile> file = GetFileForId(directory, aId); | ||||
| 12230 | QM_TRY(OkIf(file), NS_ERROR_FAILURE){auto tryResult1063 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult1063)::ok_type>); if ((__builtin_expect (!!(tryResult1063.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1063.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(file)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12230, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(file)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12231 | |||||
| 12232 | const nsCOMPtr<nsIFile> journalFile = GetFileForId(journalDirectory, aId); | ||||
| 12233 | QM_TRY(OkIf(journalFile), NS_ERROR_FAILURE){auto tryResult1064 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult1064)::ok_type>); if ((__builtin_expect(!!(tryResult1064.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1064.unwrapErr(); mozilla::dom ::quota::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12233, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(journalFile)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 12234 | |||||
| 12235 | return SyncDeleteFile(*file, *journalFile); | ||||
| 12236 | } | ||||
| 12237 | |||||
| 12238 | nsresult DatabaseFileManager::SyncDeleteFile(nsIFile& aFile, | ||||
| 12239 | nsIFile& aJournalFile) const { | ||||
| 12240 | QuotaManager* const quotaManager = | ||||
| 12241 | EnforcingQuota() ? QuotaManager::Get() : nullptr; | ||||
| 12242 | 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" , 12242); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 12242); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 12243 | |||||
| 12244 | QM_TRY(MOZ_TO_RESULT(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(),{auto tryResult1065 = (ToResult(DeleteFile(aFile, quotaManager , Type(), OriginMetadata(), Idempotency::No))); static_assert (std::is_empty_v<typename decltype(tryResult1065)::ok_type >); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); }} | ||||
| 12245 | Idempotency::No))){auto tryResult1065 = (ToResult(DeleteFile(aFile, quotaManager , Type(), OriginMetadata(), Idempotency::No))); static_assert (std::is_empty_v<typename decltype(tryResult1065)::ok_type >); if ((__builtin_expect(!!(tryResult1065.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteFile(aFile, quotaManager, Type(), OriginMetadata(), Idempotency::No))" , tryResult1065.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12245, mozilla::dom::quota::Severity::Error); return tryResult1065 .propagateErr(); }}; | ||||
| 12246 | |||||
| 12247 | QM_TRY(MOZ_TO_RESULT(aJournalFile.Remove(false))){auto tryResult1066 = (ToResult(aJournalFile.Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1066 )::ok_type>); if ((__builtin_expect(!!(tryResult1066.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(aJournalFile.Remove(false))" , tryResult1066.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12247, mozilla::dom::quota::Severity::Error); return tryResult1066 .propagateErr(); }}; | ||||
| 12248 | |||||
| 12249 | return NS_OK; | ||||
| 12250 | } | ||||
| 12251 | |||||
| 12252 | nsresult DatabaseFileManager::Invalidate() { | ||||
| 12253 | if (mCipherKeyManager) { | ||||
| 12254 | mCipherKeyManager->Invalidate(); | ||||
| 12255 | } | ||||
| 12256 | |||||
| 12257 | QM_TRY(MOZ_TO_RESULT(FileInfoManager::Invalidate())){auto tryResult1067 = (ToResult(FileInfoManager::Invalidate() )); static_assert(std::is_empty_v<typename decltype(tryResult1067 )::ok_type>); if ((__builtin_expect(!!(tryResult1067.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(FileInfoManager::Invalidate())" , tryResult1067.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12257, mozilla::dom::quota::Severity::Error); return tryResult1067 .propagateErr(); }}; | ||||
| 12258 | |||||
| 12259 | return NS_OK; | ||||
| 12260 | } | ||||
| 12261 | |||||
| 12262 | /******************************************************************************* | ||||
| 12263 | * QuotaClient | ||||
| 12264 | ******************************************************************************/ | ||||
| 12265 | |||||
| 12266 | QuotaClient* QuotaClient::sInstance = nullptr; | ||||
| 12267 | |||||
| 12268 | QuotaClient::QuotaClient() : mDeleteTimer(NS_NewTimer()) { | ||||
| 12269 | AssertIsOnBackgroundThread(); | ||||
| 12270 | 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", 12270 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!sInstance" ") (" "We expect this to be a singleton!" ")"); do { MOZ_CrashSequence (__null, 12270); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); | ||||
| 12271 | 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", 12271 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gTelemetryIdMutex" ")"); do { MOZ_CrashSequence(__null, 12271); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12272 | |||||
| 12273 | // Always create this so that later access to gTelemetryIdHashtable can be | ||||
| 12274 | // properly synchronized. | ||||
| 12275 | gTelemetryIdMutex = new Mutex("IndexedDB gTelemetryIdMutex"); | ||||
| 12276 | |||||
| 12277 | gStorageDatabaseNameMutex = new Mutex("IndexedDB gStorageDatabaseNameMutex"); | ||||
| 12278 | |||||
| 12279 | sInstance = this; | ||||
| 12280 | } | ||||
| 12281 | |||||
| 12282 | QuotaClient::~QuotaClient() { | ||||
| 12283 | AssertIsOnBackgroundThread(); | ||||
| 12284 | 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" , 12284); AnnotateMozCrashReason("MOZ_ASSERT" "(" "sInstance == this" ") (" "We expect this to be a singleton!" ")"); do { MOZ_CrashSequence (__null, 12284); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); | ||||
| 12285 | 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", 12285 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "gTelemetryIdMutex" ")"); do { MOZ_CrashSequence(__null, 12285); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12286 | 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", 12286 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mMaintenanceThreadPool" ")"); do { MOZ_CrashSequence(__null, 12286); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12287 | |||||
| 12288 | // No one else should be able to touch gTelemetryIdHashtable now that the | ||||
| 12289 | // QuotaClient has gone away. | ||||
| 12290 | gTelemetryIdHashtable = nullptr; | ||||
| 12291 | gTelemetryIdMutex = nullptr; | ||||
| 12292 | |||||
| 12293 | gStorageDatabaseNameHashtable = nullptr; | ||||
| 12294 | gStorageDatabaseNameMutex = nullptr; | ||||
| 12295 | |||||
| 12296 | sInstance = nullptr; | ||||
| 12297 | } | ||||
| 12298 | |||||
| 12299 | nsresult QuotaClient::AsyncDeleteFile(DatabaseFileManager* aFileManager, | ||||
| 12300 | int64_t aFileId) { | ||||
| 12301 | AssertIsOnBackgroundThread(); | ||||
| 12302 | |||||
| 12303 | if (IsShuttingDownOnBackgroundThread()) { | ||||
| 12304 | // Whoops! We want to delete an IndexedDB disk-backed File but it's too late | ||||
| 12305 | // to actually delete the file! This means we're going to "leak" the file | ||||
| 12306 | // and leave it around when we shouldn't! (The file will stay around until | ||||
| 12307 | // next storage initialization is triggered when the app is started again). | ||||
| 12308 | // Fixing this is tracked by bug 1539377. | ||||
| 12309 | |||||
| 12310 | return NS_OK; | ||||
| 12311 | } | ||||
| 12312 | |||||
| 12313 | 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" , 12313); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteTimer" ")"); do { MOZ_CrashSequence(__null, 12313); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12314 | 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", 12314 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mDeleteTimer->Cancel())" ")"); do { MOZ_CrashSequence(__null, 12314); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12315 | |||||
| 12316 | QM_TRY(MOZ_TO_RESULT(mDeleteTimer->InitWithNamedFuncCallback({auto tryResult1068 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1068)::ok_type >); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12318, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }} | ||||
| 12317 | DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT,{auto tryResult1068 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1068)::ok_type >); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12318, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }} | ||||
| 12318 | "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))){auto tryResult1068 = (ToResult(mDeleteTimer->InitWithNamedFuncCallback ( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT , "dom::indexeddb::QuotaClient::AsyncDeleteFile"_ns))); static_assert (std::is_empty_v<typename decltype(tryResult1068)::ok_type >); if ((__builtin_expect(!!(tryResult1068.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->InitWithNamedFuncCallback( DeleteTimerCallback, this, kDeleteTimeoutMs, nsITimer::TYPE_ONE_SHOT, \"dom::indexeddb::QuotaClient::AsyncDeleteFile\"_ns))" , tryResult1068.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12318, mozilla::dom::quota::Severity::Error); return tryResult1068 .propagateErr(); }}; | ||||
| 12319 | |||||
| 12320 | mPendingDeleteInfos.GetOrInsertNew(aFileManager)->AppendElement(aFileId); | ||||
| 12321 | |||||
| 12322 | return NS_OK; | ||||
| 12323 | } | ||||
| 12324 | |||||
| 12325 | nsresult QuotaClient::FlushPendingFileDeletions() { | ||||
| 12326 | AssertIsOnBackgroundThread(); | ||||
| 12327 | |||||
| 12328 | QM_TRY(MOZ_TO_RESULT(mDeleteTimer->Cancel())){auto tryResult1069 = (ToResult(mDeleteTimer->Cancel())); static_assert (std::is_empty_v<typename decltype(tryResult1069)::ok_type >); if ((__builtin_expect(!!(tryResult1069.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(mDeleteTimer->Cancel())" , tryResult1069.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12328, mozilla::dom::quota::Severity::Error); return tryResult1069 .propagateErr(); }}; | ||||
| 12329 | |||||
| 12330 | DeleteTimerCallback(mDeleteTimer, this); | ||||
| 12331 | |||||
| 12332 | return NS_OK; | ||||
| 12333 | } | ||||
| 12334 | |||||
| 12335 | RefPtr<BoolPromise> QuotaClient::DoMaintenance() { | ||||
| 12336 | AssertIsOnBackgroundThread(); | ||||
| 12337 | 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" , 12337); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 12337); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12338 | |||||
| 12339 | if (!mBackgroundThread) { | ||||
| 12340 | mBackgroundThread = GetCurrentSerialEventTarget(); | ||||
| 12341 | } | ||||
| 12342 | |||||
| 12343 | auto maintenance = MakeRefPtr<Maintenance>(this); | ||||
| 12344 | |||||
| 12345 | mMaintenanceQueue.AppendElement(maintenance); | ||||
| 12346 | ProcessMaintenanceQueue(); | ||||
| 12347 | |||||
| 12348 | return maintenance->OnResults(); | ||||
| 12349 | } | ||||
| 12350 | |||||
| 12351 | nsThreadPool* QuotaClient::GetOrCreateThreadPool() { | ||||
| 12352 | AssertIsOnBackgroundThread(); | ||||
| 12353 | 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" , 12353); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsShuttingDownOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 12353); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12354 | |||||
| 12355 | if (!mMaintenanceThreadPool) { | ||||
| 12356 | RefPtr<nsThreadPool> threadPool = new nsThreadPool(); | ||||
| 12357 | |||||
| 12358 | // PR_GetNumberOfProcessors() can return -1 on error, so make sure we | ||||
| 12359 | // don't set some huge number here. We add 2 in case some threads block on | ||||
| 12360 | // the disk I/O. | ||||
| 12361 | const uint32_t threadCount = | ||||
| 12362 | std::max(int32_t(PR_GetNumberOfProcessors()), int32_t(1)) + 2; | ||||
| 12363 | |||||
| 12364 | 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", 12364 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetThreadLimit(threadCount))" ")"); do { MOZ_CrashSequence(__null, 12364); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12365 | |||||
| 12366 | // Don't keep more than one idle thread. | ||||
| 12367 | 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", 12367 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadLimit(1))" ")"); do { MOZ_CrashSequence(__null, 12367); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12368 | |||||
| 12369 | // Don't keep idle threads alive very long. | ||||
| 12370 | 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", 12371 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" ")"); do { MOZ_CrashSequence(__null, 12371); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 12371 | 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", 12371 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetIdleThreadMaximumTimeout(5 * 1000L))" ")"); do { MOZ_CrashSequence(__null, 12371); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12372 | |||||
| 12373 | 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", 12373 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(threadPool->SetName(\"IndexedDB Mnt\"_ns))" ")"); do { MOZ_CrashSequence(__null, 12373); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 12374 | |||||
| 12375 | mMaintenanceThreadPool = std::move(threadPool); | ||||
| 12376 | } | ||||
| 12377 | |||||
| 12378 | return mMaintenanceThreadPool; | ||||
| 12379 | } | ||||
| 12380 | |||||
| 12381 | mozilla::dom::quota::Client::Type QuotaClient::GetType() { | ||||
| 12382 | return QuotaClient::IDB; | ||||
| 12383 | } | ||||
| 12384 | |||||
| 12385 | nsresult QuotaClient::UpgradeStorageFrom1_0To2_0(nsIFile* aDirectory) { | ||||
| 12386 | AssertIsOnIOThread(); | ||||
| 12387 | 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" , 12387); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 12387); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12388 | |||||
| 12389 | QM_TRY_INSPECT(const auto& databaseFilenamesInfo,auto tryResult1070 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult1070.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12391, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); } const auto& databaseFilenamesInfo = tryResult1070 .inspect(); | ||||
| 12390 | GetDatabaseFilenames(*aDirectory,auto tryResult1070 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult1070.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12391, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); } const auto& databaseFilenamesInfo = tryResult1070 .inspect(); | ||||
| 12391 | /* aCanceled */ AtomicBool{false}))auto tryResult1070 = (GetDatabaseFilenames(*aDirectory, AtomicBool {false})); if ((__builtin_expect(!!(tryResult1070.isErr()), 0 ))) { mozilla::dom::quota::HandleError("GetDatabaseFilenames(*aDirectory, AtomicBool{false})" , tryResult1070.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12391, mozilla::dom::quota::Severity::Error); return tryResult1070 .propagateErr(); } const auto& databaseFilenamesInfo = tryResult1070 .inspect();; | ||||
| 12392 | // FIXME: use structural binding once we support c++20. | ||||
| 12393 | const auto& subdirsToProcess = databaseFilenamesInfo.subdirsToProcess; | ||||
| 12394 | const auto& databaseFilenames = databaseFilenamesInfo.databaseFilenames; | ||||
| 12395 | |||||
| 12396 | QM_TRY(CollectEachInRange({auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12397 | subdirsToProcess,{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12398 | [&databaseFilenames = databaseFilenames,{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12399 | aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12400 | // If the directory has the correct suffix then it should exist in{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12401 | // databaseFilenames.{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12402 | nsDependentSubstring subdirNameBase;{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12403 | if (GetFilenameBase(subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12404 | subdirNameBase)) {{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12405 | QM_WARNONLY_TRY(OkIf(databaseFilenames.Contains(subdirNameBase)));{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12406 | return Ok{};{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12407 | }{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12408 | |||||
| 12409 | // The directory didn't have the right suffix but we might need to{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12410 | // rename it. Check to see if we have a database that references this{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12411 | // directory.{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12412 | QM_TRY_INSPECT({auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12413 | const auto& subdirNameWithSuffix,{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12414 | ([&databaseFilenames,{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12415 | &subdirName]() -> Result<nsAutoString, NotOk> {{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12416 | if (databaseFilenames.Contains(subdirName)) {{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12417 | return nsAutoString{subdirName +{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12418 | kFileManagerDirectoryNameSuffix};{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12419 | }{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12420 | |||||
| 12421 | // Windows doesn't allow a directory to end with a dot ('.'), so{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12422 | // we have to check that possibility here too. We do this on all{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12423 | // platforms, because the origin directory may have been created{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12424 | // on Windows and now accessed on different OS.{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12425 | const nsAutoString subdirNameWithDot = subdirName + u"."_ns;{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12426 | QM_TRY(OkIf(databaseFilenames.Contains(subdirNameWithDot)),{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12427 | Err(NotOk{}));{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12428 | |||||
| 12429 | return nsAutoString{subdirNameWithDot +{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12430 | kFileManagerDirectoryNameSuffix};{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12431 | }()),{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12432 | Ok{});{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12433 | |||||
| 12434 | // We do have a database that uses this subdir so we should rename it{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12435 | // now.{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12436 | QM_TRY_INSPECT(const auto& subdir,{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12437 | CloneFileAndAppend(*aDirectory, subdirName));{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12438 | |||||
| 12439 | DebugOnly<bool> isDirectory;{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12440 | MOZ_ASSERT(NS_SUCCEEDED(subdir->IsDirectory(&isDirectory)));{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12441 | MOZ_ASSERT(isDirectory);{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12442 | |||||
| 12443 | // Check if the subdir with suffix already exists before renaming.{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12444 | QM_TRY_INSPECT(const auto& subdirWithSuffix,{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12445 | CloneFileAndAppend(*aDirectory, subdirNameWithSuffix));{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12446 | |||||
| 12447 | QM_TRY_INSPECT(const bool& exists,{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12448 | MOZ_TO_RESULT_INVOKE_MEMBER(subdirWithSuffix, Exists));{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12449 | |||||
| 12450 | if (exists) {{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12451 | IDB_WARNING("Deleting old %s files directory!",{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12452 | NS_ConvertUTF16toUTF8(subdirName).get());{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12453 | |||||
| 12454 | QM_TRY(MOZ_TO_RESULT(subdir->Remove(/* aRecursive */ true)));{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12455 | |||||
| 12456 | return Ok{};{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12457 | }{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12458 | |||||
| 12459 | // Finally, rename the subdir.{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12460 | QM_TRY(MOZ_TO_RESULT(subdir->RenameTo(nullptr, subdirNameWithSuffix)));{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12461 | |||||
| 12462 | return Ok{};{auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }} | ||||
| 12463 | })){auto tryResult1079 = (CollectEachInRange( subdirsToProcess, [ &databaseFilenames = databaseFilenames, aDirectory](const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; if (GetFilenameBase(subdirName , kFileManagerDirectoryNameSuffix, subdirNameBase)) { {auto tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert (std::is_empty_v<typename decltype(tryResult1071)::ok_type >); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameBase))" , tryResult1071.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; } auto tryResult1073 = (([&databaseFilenames, &subdirName ]() -> Result<nsAutoString, NotOk> { if (databaseFilenames .Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix }; } const nsAutoString subdirNameWithDot = subdirName + u"."_ns ; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot ))); static_assert(std::is_empty_v<typename decltype(tryResult1072 )::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(databaseFilenames.Contains(subdirNameWithDot))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12427, mozilla::dom::quota::Severity::Error); [[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 (!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError ("([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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" , 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend (*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirName)" , tryResult1074.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12437, mozilla::dom::quota::Severity::Error); return tryResult1074 .propagateErr(); } const auto& subdir = tryResult1074.inspect ();; DebugOnly<bool> isDirectory; do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory)) ), 1))))>::isValid, "invalid assertion condition"); if ((__builtin_expect (!!(!(!!(((bool)(__builtin_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", 12440 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 12440); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 12441); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 12441); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix )); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla ::dom::quota::HandleError("CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)" , tryResult1075.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12445, mozilla::dom::quota::Severity::Error); return tryResult1075 .propagateErr(); } const auto& subdirWithSuffix = tryResult1075 .inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember ( (subdirWithSuffix), &::mozilla::detail::DerefedType< decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect (!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )" , tryResult1076.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12448, mozilla::dom::quota::Severity::Error); return tryResult1076 .propagateErr(); } const bool& exists = tryResult1076.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" , 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12452 ); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove ( true))); static_assert(std::is_empty_v<typename decltype (tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->Remove( true))" , tryResult1077.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12454, mozilla::dom::quota::Severity::Error); return tryResult1077 .propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult (subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1078)::ok_type >); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))" , tryResult1078.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12460, mozilla::dom::quota::Severity::Error); return tryResult1078 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1079)::ok_type>); if ((__builtin_expect (!!(tryResult1079.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 tryResult1071 = (OkIf(databaseFilenames.Contains(subdirNameBase))); static_assert(std::is_empty_v<typename decltype(tryResult1071)::ok_type>); if ((__builtin_expect(!!(tryResult1071.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameBase))\", tryResult1071.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12405, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; } auto tryResult1073 = (([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\".\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12427, mozilla::dom::quota::Severity::Error); [[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(!!(tryResult1073.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1073.unwrapErr(); mozilla::dom::quota::HandleError(\"([&databaseFilenames, &subdirName]() -> Result<nsAutoString, NotOk> { if (databaseFilenames.Contains(subdirName)) { return nsAutoString{subdirName + kFileManagerDirectoryNameSuffix}; } const nsAutoString subdirNameWithDot = subdirName + u\\\".\\\"_ns; {auto tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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\", 12432, 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 tryResult1072 = (OkIf(databaseFilenames.Contains(subdirNameWithDot))); static_assert(std::is_empty_v<typename decltype(tryResult1072)::ok_type>); if ((__builtin_expect(!!(tryResult1072.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1072.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(databaseFilenames.Contains(subdirNameWithDot))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12427, mozilla::dom::quota::Severity::Error); [[maybe_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 = tryResult1073.inspect();; auto tryResult1074 = (CloneFileAndAppend(*aDirectory, subdirName)); if ((__builtin_expect(!!(tryResult1074.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirName)\", tryResult1074.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12437, mozilla::dom::quota::Severity::Error); return tryResult1074.propagateErr(); } const auto& subdir = tryResult1074.inspect();; DebugOnly<bool> isDirectory; do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_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\", 12440); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(subdir->IsDirectory(&isDirectory))), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 12440); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 12441); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"isDirectory\" \")\"); do { MOZ_CrashSequence(__null, 12441); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); auto tryResult1075 = (CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)); if ((__builtin_expect(!!(tryResult1075.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*aDirectory, subdirNameWithSuffix)\", tryResult1075.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12445, mozilla::dom::quota::Severity::Error); return tryResult1075.propagateErr(); } const auto& subdirWithSuffix = tryResult1075.inspect();; auto tryResult1076 = (::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )); if ((__builtin_expect(!!(tryResult1076.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (subdirWithSuffix), &::mozilla::detail::DerefedType<decltype(subdirWithSuffix)>::Exists )\", tryResult1076.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12448, mozilla::dom::quota::Severity::Error); return tryResult1076.propagateErr(); } const bool& exists = tryResult1076.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\", 12452, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12452); } while (0); {auto tryResult1077 = (ToResult(subdir->Remove( true))); static_assert(std::is_empty_v<typename decltype(tryResult1077)::ok_type>); if ((__builtin_expect(!!(tryResult1077.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->Remove( true))\", tryResult1077.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12454, mozilla::dom::quota::Severity::Error); return tryResult1077.propagateErr(); }}; return Ok{}; } {auto tryResult1078 = (ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1078)::ok_type>); if ((__builtin_expect(!!(tryResult1078.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(subdir->RenameTo(nullptr, subdirNameWithSuffix))\", tryResult1078.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12460, mozilla::dom::quota::Severity::Error); return tryResult1078.propagateErr(); }}; return Ok{}; })" , tryResult1079.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12463, mozilla::dom::quota::Severity::Error); return tryResult1079 .propagateErr(); }}; | ||||
| 12464 | |||||
| 12465 | return NS_OK; | ||||
| 12466 | } | ||||
| 12467 | |||||
| 12468 | nsresult QuotaClient::UpgradeStorageFrom2_1To2_2(nsIFile* aDirectory) { | ||||
| 12469 | AssertIsOnIOThread(); | ||||
| 12470 | 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" , 12470); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDirectory" ")"); do { MOZ_CrashSequence(__null, 12470); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12471 | |||||
| 12472 | QM_TRY(CollectEachFile({auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12473 | *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12474 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12475 | |||||
| 12476 | switch (dirEntryKind) {{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12477 | case nsIFileKind::ExistsAsDirectory:{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12478 | break;{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12479 | |||||
| 12480 | case nsIFileKind::ExistsAsFile: {{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12481 | QM_TRY_INSPECT({auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12482 | const auto& leafName,{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12483 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, file, GetLeafName));{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12484 | |||||
| 12485 | // It's reported that files ending with ".tmp" somehow live in the{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12486 | // indexedDB directories in Bug 1503883. Such files shouldn't exist{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12487 | // in the indexedDB directory so remove them in this upgrade.{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12488 | if (StringEndsWith(leafName, u".tmp"_ns)) {{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12489 | IDB_WARNING("Deleting unknown temporary file!");{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12490 | |||||
| 12491 | QM_TRY(MOZ_TO_RESULT(file->Remove(false)));{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12492 | }{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12493 | |||||
| 12494 | break;{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12495 | }{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12496 | |||||
| 12497 | case nsIFileKind::DoesNotExist:{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12498 | // Ignore files that got removed externally while iterating.{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12499 | break;{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12500 | }{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12501 | |||||
| 12502 | return Ok{};{auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }} | ||||
| 12503 | })){auto tryResult1083 = (CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult > { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1080.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12474, mozilla::dom::quota::Severity::Error); return tryResult1080 .propagateErr(); } const auto& dirEntryKind = tryResult1080 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(file)>:: GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1081.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12483, mozilla::dom::quota::Severity::Error); return tryResult1081 .propagateErr(); } const auto& leafName = tryResult1081.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" , 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12489 ); } while (0); {auto tryResult1082 = (ToResult(file->Remove (false))); static_assert(std::is_empty_v<typename decltype (tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(file->Remove(false))" , tryResult1082.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12491, mozilla::dom::quota::Severity::Error); return tryResult1082 .propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist : break; } return Ok{}; })); static_assert(std::is_empty_v< typename decltype(tryResult1083)::ok_type>); if ((__builtin_expect (!!(tryResult1083.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectEachFile( *aDirectory, [](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1080 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1080.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1080.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12474, mozilla::dom::quota::Severity::Error); return tryResult1080.propagateErr(); } const auto& dirEntryKind = tryResult1080.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: { auto tryResult1081 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1081.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1081.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12483, mozilla::dom::quota::Severity::Error); return tryResult1081.propagateErr(); } const auto& leafName = tryResult1081.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\", 12489, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12489); } while (0); {auto tryResult1082 = (ToResult(file->Remove(false))); static_assert(std::is_empty_v<typename decltype(tryResult1082)::ok_type>); if ((__builtin_expect(!!(tryResult1082.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(file->Remove(false))\", tryResult1082.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12491, mozilla::dom::quota::Severity::Error); return tryResult1082.propagateErr(); }}; } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1083.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12503, mozilla::dom::quota::Severity::Error); return tryResult1083 .propagateErr(); }}; | ||||
| 12504 | |||||
| 12505 | return NS_OK; | ||||
| 12506 | } | ||||
| 12507 | |||||
| 12508 | Result<UsageInfo, nsresult> QuotaClient::InitOrigin( | ||||
| 12509 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 12510 | const AtomicBool& aCanceled) { | ||||
| 12511 | AssertIsOnIOThread(); | ||||
| 12512 | |||||
| 12513 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1084 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, true)); if ((__builtin_expect(!!(tryResult1084.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult1084.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12516, mozilla::dom::quota::Severity::Error); } return tryResult1084 ;} | ||||
| 12514 | aPersistenceType, aOriginMetadata,{auto tryResult1084 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, true)); if ((__builtin_expect(!!(tryResult1084.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult1084.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12516, mozilla::dom::quota::Severity::Error); } return tryResult1084 ;} | ||||
| 12515 | aCanceled,{auto tryResult1084 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, true)); if ((__builtin_expect(!!(tryResult1084.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult1084.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12516, mozilla::dom::quota::Severity::Error); } return tryResult1084 ;} | ||||
| 12516 | /* aInitializing*/ true)){auto tryResult1084 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, true)); if ((__builtin_expect(!!(tryResult1084.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, true)" , tryResult1084.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12516, mozilla::dom::quota::Severity::Error); } return tryResult1084 ;}; | ||||
| 12517 | } | ||||
| 12518 | |||||
| 12519 | nsresult QuotaClient::InitOriginWithoutTracking( | ||||
| 12520 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 12521 | const AtomicBool& aCanceled) { | ||||
| 12522 | AssertIsOnIOThread(); | ||||
| 12523 | |||||
| 12524 | return GetUsageForOriginInternal(aPersistenceType, aOriginMetadata, aCanceled, | ||||
| 12525 | /* aInitializing*/ true, nullptr); | ||||
| 12526 | } | ||||
| 12527 | |||||
| 12528 | Result<UsageInfo, nsresult> QuotaClient::GetUsageForOrigin( | ||||
| 12529 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 12530 | const AtomicBool& aCanceled) { | ||||
| 12531 | AssertIsOnIOThread(); | ||||
| 12532 | |||||
| 12533 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(this, GetUsageForOriginInternal,{auto tryResult1085 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, false)); if ((__builtin_expect(!!(tryResult1085. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12536, mozilla::dom::quota::Severity::Error); } return tryResult1085 ;} | ||||
| 12534 | aPersistenceType, aOriginMetadata,{auto tryResult1085 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, false)); if ((__builtin_expect(!!(tryResult1085. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12536, mozilla::dom::quota::Severity::Error); } return tryResult1085 ;} | ||||
| 12535 | aCanceled,{auto tryResult1085 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, false)); if ((__builtin_expect(!!(tryResult1085. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12536, mozilla::dom::quota::Severity::Error); } return tryResult1085 ;} | ||||
| 12536 | /* aInitializing*/ false)){auto tryResult1085 = (::mozilla::ToResultInvokeMember( (this ), &::mozilla::detail::DerefedType<decltype(this)>:: GetUsageForOriginInternal , aPersistenceType, aOriginMetadata , aCanceled, false)); if ((__builtin_expect(!!(tryResult1085. isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (this), &::mozilla::detail::DerefedType<decltype(this)>::GetUsageForOriginInternal , aPersistenceType, aOriginMetadata, aCanceled, false)" , tryResult1085.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12536, mozilla::dom::quota::Severity::Error); } return tryResult1085 ;}; | ||||
| 12537 | } | ||||
| 12538 | |||||
| 12539 | nsresult QuotaClient::GetUsageForOriginInternal( | ||||
| 12540 | PersistenceType aPersistenceType, const OriginMetadata& aOriginMetadata, | ||||
| 12541 | const AtomicBool& aCanceled, const bool aInitializing, | ||||
| 12542 | UsageInfo* aUsageInfo) { | ||||
| 12543 | GECKO_TRACE_SCOPE("dom::indexedDB", "QuotaClient::GetUsageForOriginInternal")auto GECKO_TRACE_SCOPE___COUNTER__ = mozilla::gecko_trace::TracerProvider ::GetTracer("dom::indexedDB") ->StartSpan("QuotaClient::GetUsageForOriginInternal" ) ->Enter();; | ||||
| 12544 | |||||
| 12545 | AssertIsOnIOThread(); | ||||
| 12546 | 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" , 12546); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOriginMetadata.mPersistenceType == aPersistenceType" ")"); do { MOZ_CrashSequence(__null, 12546); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12547 | |||||
| 12548 | QM_TRY_INSPECT(const nsCOMPtr<nsIFile>& directory,auto tryResult1086 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect (!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirectory(aOriginMetadata)", tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12549, mozilla::dom::quota::Severity::Error); return tryResult1086. propagateErr(); } const nsCOMPtr<nsIFile>& directory = tryResult1086.inspect(); | ||||
| 12549 | GetDirectory(aOriginMetadata))auto tryResult1086 = (GetDirectory(aOriginMetadata)); if ((__builtin_expect (!!(tryResult1086.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirectory(aOriginMetadata)", tryResult1086.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12549, mozilla::dom::quota::Severity::Error); return tryResult1086. propagateErr(); } const nsCOMPtr<nsIFile>& directory = tryResult1086.inspect();; | ||||
| 12550 | |||||
| 12551 | // We need to see if there are any files in the directory already. If they | ||||
| 12552 | // are database files then we need to cleanup stored files (if it's needed) | ||||
| 12553 | // and also get the usage. | ||||
| 12554 | |||||
| 12555 | // XXX Can we avoid unwrapping into non-const variables here? (Only | ||||
| 12556 | // databaseFilenames is currently modified below) | ||||
| 12557 | QM_TRY_UNWRAP((auto [subdirsToProcess, databaseFilenames, obsoleteFilenames]),auto tryResult1087 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12559, mozilla::dom::quota::Severity::Error); return tryResult1087 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult1087.unwrap(); | ||||
| 12558 | GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>(auto tryResult1087 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12559, mozilla::dom::quota::Severity::Error); return tryResult1087 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult1087.unwrap(); | ||||
| 12559 | *directory, aCanceled))auto tryResult1087 = (GetDatabaseFilenames<ObsoleteFilenamesHandling ::Include>( *directory, aCanceled)); if ((__builtin_expect (!!(tryResult1087.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDatabaseFilenames<ObsoleteFilenamesHandling::Include>( *directory, aCanceled)" , tryResult1087.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12559, mozilla::dom::quota::Severity::Error); return tryResult1087 .propagateErr(); } auto [subdirsToProcess, databaseFilenames, obsoleteFilenames] = tryResult1087.unwrap();; | ||||
| 12560 | |||||
| 12561 | // Databases whose removal failed. Their remaining files still count towards | ||||
| 12562 | // quota, so that the removal retried later subtracts only what was added. | ||||
| 12563 | nsTHashSet<nsString> leftoverFilenames; | ||||
| 12564 | |||||
| 12565 | if (aInitializing) { | ||||
| 12566 | QM_TRY(CollectEachInRange({auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12567 | subdirsToProcess,{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12568 | [&directory, &obsoleteFilenames = obsoleteFilenames,{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12569 | &databaseFilenames = databaseFilenames, &leftoverFilenames,{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12570 | aPersistenceType, &aOriginMetadata]({auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12571 | const nsAString& subdirName) -> Result<Ok, nsresult> {{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12572 | // The directory must have the correct suffix.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12573 | nsDependentSubstring subdirNameBase;{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12574 | QM_TRY(QM_OR_ELSE_WARN({auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12575 | // Expression.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12576 | ([&subdirName, &subdirNameBase] {{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12577 | QM_TRY_RETURN(OkIf(GetFilenameBase({auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12578 | subdirName, kFileManagerDirectoryNameSuffix,{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12579 | subdirNameBase)));{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12580 | }()),{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12581 | // Fallback.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12582 | ([&directory,{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12583 | &subdirName](const NotOk) -> Result<Ok, nsresult> {{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12584 | // If there is an unexpected directory in the idb{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12585 | // directory, trying to delete at first instead of{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12586 | // breaking the whole initialization.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12587 | QM_TRY(MOZ_TO_RESULT({auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12588 | DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12589 | Err(NS_ERROR_UNEXPECTED));{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12590 | |||||
| 12591 | return Ok{};{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12592 | })),{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12593 | Ok{});{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12594 | |||||
| 12595 | if (obsoleteFilenames.Contains(subdirNameBase)) {{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12596 | QM_WARNONLY_TRY({auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12597 | MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12598 | *directory, subdirNameBase, /* aQuotaManager */ nullptr,{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12599 | aPersistenceType, aOriginMetadata,{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12600 | /* aDatabaseName */ u""_ns)),{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12601 | ([&leftoverFilenames, &subdirNameBase](const auto&) {{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12602 | leftoverFilenames.Insert(subdirNameBase);{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12603 | }));{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12604 | |||||
| 12605 | databaseFilenames.Remove(subdirNameBase);{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12606 | return Ok{};{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12607 | }{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12608 | |||||
| 12609 | // The directory base must exist in databaseFilenames.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12610 | // If there is an unexpected directory in the idb directory, trying to{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12611 | // delete at first instead of breaking the whole initialization.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12612 | |||||
| 12613 | // XXX This is still somewhat quirky. It would be nice to make it{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12614 | // clear that the warning handler is infallible, which would also{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12615 | // remove the need for the error type conversion.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12616 | QM_WARNONLY_TRY(QM_OR_ELSE_WARN({auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12617 | // Expression.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12618 | OkIf(databaseFilenames.Contains(subdirNameBase)){auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12619 | .mapErr([](const NotOk) { return NS_ERROR_FAILURE; }),{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12620 | // Fallback.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12621 | ([&directory,{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12622 | &subdirName](const nsresult) -> Result<Ok, nsresult> {{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12623 | // XXX It seems if we really got here, we can fail the{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12624 | // MOZ_ASSERT(!quotaManager->IsTemporaryStorageInitializedInternal());{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12625 | // assertion in DeleteFilesNoQuota.{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12626 | QM_TRY(MOZ_TO_RESULT(DeleteFilesNoQuota(directory, subdirName)),{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12627 | Err(NS_ERROR_UNEXPECTED));{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12628 | |||||
| 12629 | return Ok{};{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12630 | })));{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12631 | |||||
| 12632 | return Ok{};{auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }} | ||||
| 12633 | })){auto tryResult1094 = (CollectEachInRange( subdirsToProcess, [ &directory, &obsoleteFilenames = obsoleteFilenames, & databaseFilenames = databaseFilenames, &leftoverFilenames , aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, & subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase ( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase ))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla ::dom::quota::HandleError("OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))" , tryResult1088.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088 ;}; }())).orElse([&](const auto& firstRes) { mozilla:: dom::quota::HandleError("\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12592, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const NotOk) -> Result<Ok, nsresult > { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory , subdirName))); static_assert(std::is_empty_v<typename decltype (tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090 .unwrapErr(); mozilla::dom::quota::HandleError("(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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" , 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory ( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata , u""_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091 .isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames , &subdirNameBase](const auto&) { leftoverFilenames.Insert (subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove (subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf (databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto & firstRes) { mozilla::dom::quota::HandleError("\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); return ([& directory, &subdirName](const nsresult) -> Result<Ok , nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota (directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect (!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(DeleteFilesNoQuota(directory, subdirName))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 12627 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "ToResult(DeleteFilesNoQuota(directory, subdirName))" , tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; } )(firstRes); })); static_assert(std::is_empty_v<typename decltype (tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093 .isErr()), 0))) { mozilla::dom::quota::HandleError("(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })" , tryResult1093.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok {}; })); static_assert(std::is_empty_v<typename decltype(tryResult1094 )::ok_type>); if ((__builtin_expect(!!(tryResult1094.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachInRange( subdirsToProcess, [&directory, &obsoleteFilenames = obsoleteFilenames, &databaseFilenames = databaseFilenames, &leftoverFilenames, aPersistenceType, &aOriginMetadata]( const nsAString& subdirName) -> Result<Ok, nsresult> { nsDependentSubstring subdirNameBase; {auto tryResult1090 = ((([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\", tryResult1088.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\", tryResult1088.inspectErr(), \\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1090)::ok_type>); if ((__builtin_expect(!!(tryResult1090.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1090.unwrapErr(); mozilla::dom::quota::HandleError(\"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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\", 12593, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"(([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\", tryResult1088.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"([&subdirName, &subdirNameBase] { {auto tryResult1088 = (OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))); if ((__builtin_expect(!!(tryResult1088.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\\\\\\\\\\\\\"OkIf(GetFilenameBase( subdirName, kFileManagerDirectoryNameSuffix, subdirNameBase))\\\\\\\\\\\\\\\", tryResult1088.inspectErr(), \\\\\\\\\\\\\\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\\\\\\\\\\\\\", 12579, mozilla::dom::quota::Severity::Error); } return tryResult1088;}; }())\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12592, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const NotOk) -> Result<Ok, nsresult> { {auto tryResult1089 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1089)::ok_type>); if ((__builtin_expect(!!(tryResult1089.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1089.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12589, mozilla::dom::quota::Severity::Error); [[maybe_unused]] 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 tryResult1091 = (ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\"\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1091)::ok_type>); if ((__builtin_expect(!!(tryResult1091.isErr()), 0))) { auto tryTempError = tryResult1091.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(RemoveDatabaseFilesAndDirectory( *directory, subdirNameBase, nullptr, aPersistenceType, aOriginMetadata, u\\\"\\\"_ns))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12603, mozilla::dom::quota::Severity::Warning); ([&leftoverFilenames, &subdirNameBase](const auto&) { leftoverFilenames.Insert(subdirNameBase); })(tryTempError); }}; databaseFilenames.Remove(subdirNameBase); return Ok{}; } {auto tryResult1093 = ((OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\"\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"ToResult(DeleteFilesNoQuota(directory, subdirName))\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })); static_assert(std::is_empty_v<typename decltype(tryResult1093)::ok_type>); if ((__builtin_expect(!!(tryResult1093.isErr()), 0))) { mozilla::dom::quota::HandleError(\"(OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })).orElse([&](const auto& firstRes) { mozilla::dom::quota::HandleError(\\\"\\\\\\\"OkIf(databaseFilenames.Contains(subdirNameBase)) .mapErr([](const NotOk) { return NS_ERROR_FAILURE; })\\\\\\\"\\\", firstRes, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12630, mozilla::dom::quota::Severity::Warning); return ([&directory, &subdirName](const nsresult) -> Result<Ok, nsresult> { {auto tryResult1092 = (ToResult(DeleteFilesNoQuota(directory, subdirName))); static_assert(std::is_empty_v<typename decltype(tryResult1092)::ok_type>); if ((__builtin_expect(!!(tryResult1092.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1092.unwrapErr(); mozilla::dom::quota::HandleError(\\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 12627, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"ToResult(DeleteFilesNoQuota(directory, subdirName))\\\", tryTempError, Err(NS_ERROR_UNEXPECTED)); }}; return Ok{}; })(firstRes); })\", tryResult1093.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12630, mozilla::dom::quota::Severity::Warning); }}; return Ok{}; })" , tryResult1094.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12633, mozilla::dom::quota::Severity::Error); return tryResult1094 .propagateErr(); }}; | ||||
| 12634 | } | ||||
| 12635 | |||||
| 12636 | for (const auto& databaseFilename : databaseFilenames) { | ||||
| 12637 | if (aCanceled) { | ||||
| 12638 | break; | ||||
| 12639 | } | ||||
| 12640 | |||||
| 12641 | QM_TRY_INSPECT(auto tryResult1095 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12644, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& fmDirectory = tryResult1095 .inspect(); | ||||
| 12642 | const auto& fmDirectory,auto tryResult1095 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12644, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& fmDirectory = tryResult1095 .inspect(); | ||||
| 12643 | CloneFileAndAppend(*directory,auto tryResult1095 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12644, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& fmDirectory = tryResult1095 .inspect(); | ||||
| 12644 | databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1095 = (CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1095.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*directory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1095.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12644, mozilla::dom::quota::Severity::Error); return tryResult1095 .propagateErr(); } const auto& fmDirectory = tryResult1095 .inspect();; | ||||
| 12645 | |||||
| 12646 | QM_TRY_INSPECT(auto tryResult1096 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12648, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& databaseFile = tryResult1096 .inspect(); | ||||
| 12647 | const auto& databaseFile,auto tryResult1096 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12648, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& databaseFile = tryResult1096 .inspect(); | ||||
| 12648 | CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix))auto tryResult1096 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1096.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteSuffix)" , tryResult1096.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12648, mozilla::dom::quota::Severity::Error); return tryResult1096 .propagateErr(); } const auto& databaseFile = tryResult1096 .inspect();; | ||||
| 12649 | |||||
| 12650 | if (aInitializing) { | ||||
| 12651 | QM_TRY(MOZ_TO_RESULT(DatabaseFileManager::InitDirectory({auto tryResult1097 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult1097)::ok_type>); if ((__builtin_expect(!!(tryResult1097 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12653, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12652 | *fmDirectory, *databaseFile, aOriginMetadata.mOrigin,{auto tryResult1097 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult1097)::ok_type>); if ((__builtin_expect(!!(tryResult1097 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12653, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }} | ||||
| 12653 | TelemetryIdForFile(databaseFile)))){auto tryResult1097 = (ToResult(DatabaseFileManager::InitDirectory ( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile (databaseFile)))); static_assert(std::is_empty_v<typename decltype (tryResult1097)::ok_type>); if ((__builtin_expect(!!(tryResult1097 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseFileManager::InitDirectory( *fmDirectory, *databaseFile, aOriginMetadata.mOrigin, TelemetryIdForFile(databaseFile)))" , tryResult1097.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12653, mozilla::dom::quota::Severity::Error); return tryResult1097 .propagateErr(); }}; | ||||
| 12654 | } | ||||
| 12655 | |||||
| 12656 | if (aUsageInfo) { | ||||
| 12657 | { | ||||
| 12658 | QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult1098 = (::mozilla::ToResultInvokeMember( (databaseFile ), &::mozilla::detail::DerefedType<decltype(databaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1098 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize )" , tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12659, mozilla::dom::quota::Severity::Error); return tryResult1098 .propagateErr(); } const int64_t& fileSize = tryResult1098 .inspect(); | ||||
| 12659 | MOZ_TO_RESULT_INVOKE_MEMBER(databaseFile, GetFileSize))auto tryResult1098 = (::mozilla::ToResultInvokeMember( (databaseFile ), &::mozilla::detail::DerefedType<decltype(databaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1098 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (databaseFile), &::mozilla::detail::DerefedType<decltype(databaseFile)>::GetFileSize )" , tryResult1098.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12659, mozilla::dom::quota::Severity::Error); return tryResult1098 .propagateErr(); } const int64_t& fileSize = tryResult1098 .inspect();; | ||||
| 12660 | |||||
| 12661 | 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", 12661 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0" ")"); do { MOZ_CrashSequence(__null, 12661); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12662 | |||||
| 12663 | *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize))); | ||||
| 12664 | } | ||||
| 12665 | |||||
| 12666 | { | ||||
| 12667 | QM_TRY_INSPECT(const auto& walFile,auto tryResult1099 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1099 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1099 .propagateErr(); } const auto& walFile = tryResult1099.inspect (); | ||||
| 12668 | CloneFileAndAppend(*directory,auto tryResult1099 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1099 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1099 .propagateErr(); } const auto& walFile = tryResult1099.inspect (); | ||||
| 12669 | databaseFilename + kSQLiteWALSuffix))auto tryResult1099 = (CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)); if ((__builtin_expect(!!(tryResult1099 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, databaseFilename + kSQLiteWALSuffix)" , tryResult1099.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12669, mozilla::dom::quota::Severity::Error); return tryResult1099 .propagateErr(); } const auto& walFile = tryResult1099.inspect ();; | ||||
| 12670 | |||||
| 12671 | // QM_OR_ELSE_WARN_IF is not used here since we just want to log | ||||
| 12672 | // NS_ERROR_FILE_NOT_FOUND result and not spam the reports (the -wal | ||||
| 12673 | // file doesn't have to exist). | ||||
| 12674 | QM_TRY_INSPECT(const int64_t& walFileSize,auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12675 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12676 | // Expression.auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12677 | MOZ_TO_RESULT_INVOKE_MEMBER(walFile, GetFileSize),auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12678 | // Predicate.auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12679 | ([](const nsresult rv) {auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12680 | return rv == NS_ERROR_FILE_NOT_FOUND;auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12681 | }),auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12682 | // Fallback.auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect(); | ||||
| 12683 | (ErrToOk<0, int64_t>)))auto tryResult1100 = (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" , 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1100.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\", 12683, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1100.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12683, mozilla::dom::quota::Severity::Error); return tryResult1100 .propagateErr(); } const int64_t& walFileSize = tryResult1100 .inspect();; | ||||
| 12684 | 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", 12684 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "walFileSize >= 0" ")"); do { MOZ_CrashSequence(__null, 12684); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12685 | *aUsageInfo += DatabaseUsageType(Some(uint64_t(walFileSize))); | ||||
| 12686 | } | ||||
| 12687 | |||||
| 12688 | { | ||||
| 12689 | QM_TRY_INSPECT(const auto& fileUsage,auto tryResult1101 = (DatabaseFileManager::GetUsage(fmDirectory )); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla ::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)" , tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12690, mozilla::dom::quota::Severity::Error); return tryResult1101 .propagateErr(); } const auto& fileUsage = tryResult1101. inspect(); | ||||
| 12690 | DatabaseFileManager::GetUsage(fmDirectory))auto tryResult1101 = (DatabaseFileManager::GetUsage(fmDirectory )); if ((__builtin_expect(!!(tryResult1101.isErr()), 0))) { mozilla ::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)" , tryResult1101.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12690, mozilla::dom::quota::Severity::Error); return tryResult1101 .propagateErr(); } const auto& fileUsage = tryResult1101. inspect();; | ||||
| 12691 | |||||
| 12692 | *aUsageInfo += fileUsage; | ||||
| 12693 | } | ||||
| 12694 | } | ||||
| 12695 | } | ||||
| 12696 | |||||
| 12697 | if (aUsageInfo) { | ||||
| 12698 | for (const auto& leftoverFilename : leftoverFilenames) { | ||||
| 12699 | if (aCanceled) { | ||||
| 12700 | break; | ||||
| 12701 | } | ||||
| 12702 | |||||
| 12703 | for (const auto& suffix : {kSQLiteSuffix, kSQLiteWALSuffix}) { | ||||
| 12704 | QM_TRY_INSPECT(auto tryResult1102 = (CloneFileAndAppend(*directory, leftoverFilename + suffix)); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, leftoverFilename + suffix)" , tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12706, mozilla::dom::quota::Severity::Error); return tryResult1102 .propagateErr(); } const auto& file = tryResult1102.inspect (); | ||||
| 12705 | const auto& file,auto tryResult1102 = (CloneFileAndAppend(*directory, leftoverFilename + suffix)); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, leftoverFilename + suffix)" , tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12706, mozilla::dom::quota::Severity::Error); return tryResult1102 .propagateErr(); } const auto& file = tryResult1102.inspect (); | ||||
| 12706 | CloneFileAndAppend(*directory, leftoverFilename + suffix))auto tryResult1102 = (CloneFileAndAppend(*directory, leftoverFilename + suffix)); if ((__builtin_expect(!!(tryResult1102.isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, leftoverFilename + suffix)" , tryResult1102.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12706, mozilla::dom::quota::Severity::Error); return tryResult1102 .propagateErr(); } const auto& file = tryResult1102.inspect ();; | ||||
| 12707 | |||||
| 12708 | QM_TRY_INSPECT(const int64_t& fileSize,auto tryResult1103 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType <decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1103.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, mozilla::dom::quota::Severity::Error); return tryResult1103 .propagateErr(); } const int64_t& fileSize = tryResult1103 .inspect(); | ||||
| 12709 | QM_OR_ELSE_LOG_VERBOSE_IF(auto tryResult1103 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType <decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1103.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, mozilla::dom::quota::Severity::Error); return tryResult1103 .propagateErr(); } const int64_t& fileSize = tryResult1103 .inspect(); | ||||
| 12710 | // Expression.auto tryResult1103 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType <decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1103.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, mozilla::dom::quota::Severity::Error); return tryResult1103 .propagateErr(); } const int64_t& fileSize = tryResult1103 .inspect(); | ||||
| 12711 | MOZ_TO_RESULT_INVOKE_MEMBER(file, GetFileSize),auto tryResult1103 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType <decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1103.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, mozilla::dom::quota::Severity::Error); return tryResult1103 .propagateErr(); } const int64_t& fileSize = tryResult1103 .inspect(); | ||||
| 12712 | // Predicate.auto tryResult1103 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType <decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1103.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, mozilla::dom::quota::Severity::Error); return tryResult1103 .propagateErr(); } const int64_t& fileSize = tryResult1103 .inspect(); | ||||
| 12713 | IsFileNotFoundError,auto tryResult1103 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType <decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1103.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, mozilla::dom::quota::Severity::Error); return tryResult1103 .propagateErr(); } const int64_t& fileSize = tryResult1103 .inspect(); | ||||
| 12714 | // Fallback.auto tryResult1103 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType <decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1103.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, mozilla::dom::quota::Severity::Error); return tryResult1103 .propagateErr(); } const int64_t& fileSize = tryResult1103 .inspect(); | ||||
| 12715 | (ErrToOk<0, int64_t>)))auto tryResult1103 = (mozilla::dom::quota::OrElseIf( (::mozilla ::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType <decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla ::dom::quota::HandleError("\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\"" , firstRes, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla ::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))); if ((__builtin_expect(!!(tryResult1103.isErr ()), 0))) { mozilla::dom::quota::HandleError("mozilla::dom::quota::OrElseIf( (::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )), [&](const auto& firstRes) { bool res = IsFileNotFoundError(firstRes); mozilla::dom::quota::HandleError(\"\\\"::mozilla::ToResultInvokeMember( (file), &::mozilla::detail::DerefedType<decltype(file)>::GetFileSize )\\\"\", firstRes, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12715, res ? mozilla::dom::quota::Severity::Verbose : mozilla::dom::quota::Severity::Error); return res; }, (ErrToOk<0, int64_t>))" , tryResult1103.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12715, mozilla::dom::quota::Severity::Error); return tryResult1103 .propagateErr(); } const int64_t& fileSize = tryResult1103 .inspect();; | ||||
| 12716 | 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", 12716 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileSize >= 0" ")"); do { MOZ_CrashSequence(__null, 12716); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 12717 | |||||
| 12718 | *aUsageInfo += DatabaseUsageType(Some(uint64_t(fileSize))); | ||||
| 12719 | } | ||||
| 12720 | |||||
| 12721 | QM_TRY_INSPECT(auto tryResult1104 = (CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)" , tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12724, mozilla::dom::quota::Severity::Error); return tryResult1104 .propagateErr(); } const auto& fmDirectory = tryResult1104 .inspect(); | ||||
| 12722 | const auto& fmDirectory,auto tryResult1104 = (CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)" , tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12724, mozilla::dom::quota::Severity::Error); return tryResult1104 .propagateErr(); } const auto& fmDirectory = tryResult1104 .inspect(); | ||||
| 12723 | CloneFileAndAppend(auto tryResult1104 = (CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)" , tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12724, mozilla::dom::quota::Severity::Error); return tryResult1104 .propagateErr(); } const auto& fmDirectory = tryResult1104 .inspect(); | ||||
| 12724 | *directory, leftoverFilename + kFileManagerDirectoryNameSuffix))auto tryResult1104 = (CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1104.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend( *directory, leftoverFilename + kFileManagerDirectoryNameSuffix)" , tryResult1104.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12724, mozilla::dom::quota::Severity::Error); return tryResult1104 .propagateErr(); } const auto& fmDirectory = tryResult1104 .inspect();; | ||||
| 12725 | |||||
| 12726 | QM_TRY_INSPECT(const auto& fileUsage,auto tryResult1105 = (DatabaseFileManager::GetUsage(fmDirectory )); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla ::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)" , tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12727, mozilla::dom::quota::Severity::Error); return tryResult1105 .propagateErr(); } const auto& fileUsage = tryResult1105. inspect(); | ||||
| 12727 | DatabaseFileManager::GetUsage(fmDirectory))auto tryResult1105 = (DatabaseFileManager::GetUsage(fmDirectory )); if ((__builtin_expect(!!(tryResult1105.isErr()), 0))) { mozilla ::dom::quota::HandleError("DatabaseFileManager::GetUsage(fmDirectory)" , tryResult1105.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12727, mozilla::dom::quota::Severity::Error); return tryResult1105 .propagateErr(); } const auto& fileUsage = tryResult1105. inspect();; | ||||
| 12728 | |||||
| 12729 | *aUsageInfo += fileUsage; | ||||
| 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 tryResult1106 = (quotaManager->GetOriginDirectory(aOriginMetadata )); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)" , tryResult1106.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12956, mozilla::dom::quota::Severity::Error); return tryResult1106 .propagateErr(); } const auto& directory = tryResult1106. inspect(); | ||||
| 12956 | quotaManager->GetOriginDirectory(aOriginMetadata))auto tryResult1106 = (quotaManager->GetOriginDirectory(aOriginMetadata )); if ((__builtin_expect(!!(tryResult1106.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(aOriginMetadata)" , tryResult1106.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12956, mozilla::dom::quota::Severity::Error); return tryResult1106 .propagateErr(); } const auto& directory = tryResult1106. 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 tryResult1107 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1107 )::ok_type>); if ((__builtin_expect(!!(tryResult1107.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12961, mozilla::dom::quota::Severity::Error); return tryResult1107 .propagateErr(); }} | ||||
| 12961 | directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1107 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1107 )::ok_type>); if ((__builtin_expect(!!(tryResult1107.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1107.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12961, mozilla::dom::quota::Severity::Error); return tryResult1107 .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 tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12975 | aDirectory, aCanceled,{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12976 | [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12977 | QM_TRY_INSPECT(const auto& leafName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12978 | nsString, file, GetLeafName));{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12979 | |||||
| 12980 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*file));{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12981 | |||||
| 12982 | switch (dirEntryKind) {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12983 | case nsIFileKind::ExistsAsDirectory:{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12984 | result.subdirsToProcess.AppendElement(leafName);{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12985 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12986 | |||||
| 12987 | case nsIFileKind::ExistsAsFile: {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12988 | if constexpr (ObsoleteFilenames =={auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12989 | ObsoleteFilenamesHandling::Include) {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12990 | if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12991 | result.obsoleteFilenames.Insert({auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12992 | Substring(leafName, kIdbDeletionMarkerFilePrefix.Length()));{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12993 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12994 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12995 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12996 | |||||
| 12997 | // Skip OS metadata files. These files are only used in different{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12998 | // platforms, but the profile can be shared across different{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 12999 | // operating systems, so we check it on all platforms.{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13000 | if (QuotaManager::IsOSMetadata(leafName)) {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13001 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13002 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13003 | |||||
| 13004 | // Skip files starting with ".".{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13005 | if (QuotaManager::IsDotFile(leafName)) {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13006 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13007 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13008 | |||||
| 13009 | // Skip SQLite temporary files. These files take up space on disk{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13010 | // but will be deleted as soon as the database is opened, so we{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13011 | // don't count them towards quota.{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13012 | if (StringEndsWith(leafName, kSQLiteJournalSuffix) ||{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13013 | StringEndsWith(leafName, kSQLiteSHMSuffix)) {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13014 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13015 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13016 | |||||
| 13017 | // The SQLite WAL file does count towards quota, but it is handled{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13018 | // below once we find the actual database file.{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13019 | if (StringEndsWith(leafName, kSQLiteWALSuffix)) {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13020 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13021 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13022 | |||||
| 13023 | nsDependentSubstring leafNameBase;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13024 | if (!GetFilenameBase(leafName, kSQLiteSuffix, leafNameBase)) {{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13025 | UNKNOWN_FILE_WARNING(leafName);{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13026 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13027 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13028 | |||||
| 13029 | result.databaseFilenames.Insert(leafNameBase);{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13030 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13031 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13032 | |||||
| 13033 | case nsIFileKind::DoesNotExist:{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13034 | // Ignore files that got removed externally while iterating.{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13035 | break;{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13036 | }{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13037 | |||||
| 13038 | return Ok{};{auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .propagateErr(); }} | ||||
| 13039 | })){auto tryResult1110 = (CollectEachFileAtomicCancelable( aDirectory , aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( & ::mozilla::detail::DerefedType<decltype(file)>::GetLeafName ), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()) , 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )" , tryResult1108.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12978, mozilla::dom::quota::Severity::Error); return tryResult1108 .propagateErr(); } const auto& leafName = tryResult1108.inspect ();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect (!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*file)", tryResult1109.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 12980, mozilla::dom::quota::Severity::Error); return tryResult1109 .propagateErr(); } const auto& dirEntryKind = tryResult1109 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith (leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames .Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length ())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break ; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith (leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix )) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase (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(tryResult1110 )::ok_type>); if ((__builtin_expect(!!(tryResult1110.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectEachFileAtomicCancelable( aDirectory, aCanceled, [&result](const nsCOMPtr<nsIFile>& file) -> Result<Ok, nsresult> { auto tryResult1108 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )); if ((__builtin_expect(!!(tryResult1108.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(file)>::GetLeafName), (file) )\", tryResult1108.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12978, mozilla::dom::quota::Severity::Error); return tryResult1108.propagateErr(); } const auto& leafName = tryResult1108.inspect();; auto tryResult1109 = (GetDirEntryKind(*file)); if ((__builtin_expect(!!(tryResult1109.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*file)\", tryResult1109.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 12980, mozilla::dom::quota::Severity::Error); return tryResult1109.propagateErr(); } const auto& dirEntryKind = tryResult1109.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: result.subdirsToProcess.AppendElement(leafName); break; case nsIFileKind::ExistsAsFile: { if constexpr (ObsoleteFilenames == ObsoleteFilenamesHandling::Include) { if (StringBeginsWith(leafName, kIdbDeletionMarkerFilePrefix)) { result.obsoleteFilenames.Insert( Substring(leafName, kIdbDeletionMarkerFilePrefix.Length())); break; } } if (QuotaManager::IsOSMetadata(leafName)) { break; } if (QuotaManager::IsDotFile(leafName)) { break; } if (StringEndsWith(leafName, kSQLiteJournalSuffix) || StringEndsWith(leafName, kSQLiteSHMSuffix)) { break; } if (StringEndsWith(leafName, kSQLiteWALSuffix)) { break; } nsDependentSubstring leafNameBase; if (!GetFilenameBase(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{}; })" , tryResult1110.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13039, mozilla::dom::quota::Severity::Error); return tryResult1110 .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 tryResult1111 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1111)::ok_type >); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { auto tryTempError = tryResult1111.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 tryResult1111 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1111)::ok_type >); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { auto tryTempError = tryResult1111.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 tryResult1111 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1111)::ok_type >); if ((__builtin_expect(!!(tryResult1111.isErr()), 0))) { auto tryTempError = tryResult1111.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 tryResult1112 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1112)::ok_type >); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1112.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 tryResult1112 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1112)::ok_type >); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1112.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 tryResult1112 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1112)::ok_type >); if ((__builtin_expect(!!(tryResult1112.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1112.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 tryResult1113 = (OkIf(storageDir)); static_assert(std:: is_empty_v<typename decltype(tryResult1113)::ok_type>); if ((__builtin_expect(!!(tryResult1113.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1113.unwrapErr(); mozilla::dom ::quota::HandleError("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 tryResult1114 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::Exists )); if ((__builtin_expect(!!(tryResult1114.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists )" , tryResult1114.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13446, mozilla::dom::quota::Severity::Error); return tryResult1114 .propagateErr(); } const bool& exists = tryResult1114.inspect (); | ||||
| 13446 | MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, Exists))auto tryResult1114 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::Exists )); if ((__builtin_expect(!!(tryResult1114.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::Exists )" , tryResult1114.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13446, mozilla::dom::quota::Severity::Error); return tryResult1114 .propagateErr(); } const bool& exists = tryResult1114.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 tryResult1115 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1115 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13456, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } const bool& isDirectory = tryResult1115 .inspect(); | ||||
| 13456 | MOZ_TO_RESULT_INVOKE_MEMBER(storageDir, IsDirectory))auto tryResult1115 = (::mozilla::ToResultInvokeMember( (storageDir ), &::mozilla::detail::DerefedType<decltype(storageDir )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1115 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (storageDir), &::mozilla::detail::DerefedType<decltype(storageDir)>::IsDirectory )" , tryResult1115.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13456, mozilla::dom::quota::Severity::Error); return tryResult1115 .propagateErr(); } const bool& isDirectory = tryResult1115 .inspect();; | ||||
| 13457 | |||||
| 13458 | QM_TRY(OkIf(isDirectory), NS_ERROR_FAILURE){auto tryResult1116 = (OkIf(isDirectory)); static_assert(std:: is_empty_v<typename decltype(tryResult1116)::ok_type>); if ((__builtin_expect(!!(tryResult1116.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1116.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 tryResult1117 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1117 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13509, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); } const auto& persistenceDir = tryResult1117 .inspect(); | ||||
| 13508 | CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16(auto tryResult1117 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1117 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13509, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); } const auto& persistenceDir = tryResult1117 .inspect(); | ||||
| 13509 | persistenceTypeString)))auto tryResult1117 = (CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16 ( persistenceTypeString))); if ((__builtin_expect(!!(tryResult1117 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*storageDir, NS_ConvertASCIItoUTF16( persistenceTypeString))" , tryResult1117.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13509, mozilla::dom::quota::Severity::Error); return tryResult1117 .propagateErr(); } const auto& persistenceDir = tryResult1117 .inspect();; | ||||
| 13510 | |||||
| 13511 | { | ||||
| 13512 | QM_TRY_INSPECT(const bool& exists,auto tryResult1118 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::Exists )); if ((__builtin_expect(!!(tryResult1118.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists )" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13513, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); } const bool& exists = tryResult1118.inspect (); | ||||
| 13513 | MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, Exists))auto tryResult1118 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::Exists )); if ((__builtin_expect(!!(tryResult1118.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::Exists )" , tryResult1118.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13513, mozilla::dom::quota::Severity::Error); return tryResult1118 .propagateErr(); } const bool& exists = tryResult1118.inspect ();; | ||||
| 13514 | |||||
| 13515 | if (!exists) { | ||||
| 13516 | continue; | ||||
| 13517 | } | ||||
| 13518 | |||||
| 13519 | QM_TRY_INSPECT(const bool& isDirectory,auto tryResult1119 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1119 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory )" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13520, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); } const bool& isDirectory = tryResult1119 .inspect(); | ||||
| 13520 | MOZ_TO_RESULT_INVOKE_MEMBER(persistenceDir, IsDirectory))auto tryResult1119 = (::mozilla::ToResultInvokeMember( (persistenceDir ), &::mozilla::detail::DerefedType<decltype(persistenceDir )>::IsDirectory )); if ((__builtin_expect(!!(tryResult1119 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (persistenceDir), &::mozilla::detail::DerefedType<decltype(persistenceDir)>::IsDirectory )" , tryResult1119.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13520, mozilla::dom::quota::Severity::Error); return tryResult1119 .propagateErr(); } const bool& isDirectory = tryResult1119 .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 tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13529 | *persistenceDir,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13530 | [this, "aManager, persistenceType, persistent, &idbDirName]({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13531 | const nsCOMPtr<nsIFile>& originDir) -> Result<Ok, nsresult> {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13532 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13533 | IsAborted()) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13534 | return Err(NS_ERROR_ABORT);{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13535 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13536 | |||||
| 13537 | QM_TRY_INSPECT(const auto& dirEntryKind, GetDirEntryKind(*originDir));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13538 | |||||
| 13539 | switch (dirEntryKind) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13540 | case nsIFileKind::ExistsAsFile:{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13541 | break;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13542 | |||||
| 13543 | case nsIFileKind::ExistsAsDirectory: {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13544 | // Get the necessary information about the origin{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13545 | // (GetOriginMetadata also checks if it's a valid origin).{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13546 | |||||
| 13547 | QM_TRY_UNWRAP(auto metadata,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13548 | quotaManager->GetOriginMetadata(originDir),{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13549 | // Not much we can do here...{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13550 | Ok{});{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13551 | |||||
| 13552 | if (!persistent &&{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13553 | !quotaManager->IsTemporaryOriginInitializedInternal({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13554 | metadata)) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13555 | glean::idb_maintenance::fallback_fullrestore_metadata.Add();{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13556 | |||||
| 13557 | // XXX GetOriginMetadata, which skips loading the metadata file{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13558 | // and instead relies on parsing the origin directory name and{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13559 | // reconstructing the principal, may produce a different origin{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13560 | // string than the one originally used to create the origin{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13561 | // directory.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13562 | //{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13563 | // For now, if this mismatch occurs, we fall back to the slower{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13564 | // LoadFullOriginMetadataWithRestore.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13565 | //{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13566 | // In the future, it would be useful to report anonymized{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13567 | // origin strings via telemetry to help investigate and{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13568 | // eventually fix this mismatch.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13569 | |||||
| 13570 | QM_TRY_INSPECT({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13571 | const auto& fullmetadataAndStatus,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13572 | quotaManager->LoadFullOriginMetadataWithRestoreAndStatus({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13573 | originDir),{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13574 | Ok{});{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13575 | |||||
| 13576 | metadata = fullmetadataAndStatus.first;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13577 | if (fullmetadataAndStatus.second) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13578 | /* metadata was restored */{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13579 | glean::idb_maintenance::metadata_restored.Add();{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13580 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13581 | |||||
| 13582 | QM_TRY(OkIf(quotaManager->IsTemporaryOriginInitializedInternal({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13583 | metadata)),{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13584 | /* unexpected but still fine to just skip it */ Ok{},{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13585 | /* increment telemetry in case of failure */{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13586 | [](const auto&) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13587 | glean::idb_maintenance::unknown_metadata.Add();{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13588 | });{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13589 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13590 | |||||
| 13591 | // We now use a dedicated repository for private browsing{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13592 | // databases, but there could be some forgotten private browsing{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13593 | // databases in other repositories, so it's better to check for{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13594 | // that and don't do any maintenance for such databases.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13595 | if (metadata.mIsPrivate) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13596 | return Ok{};{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13597 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13598 | |||||
| 13599 | QM_TRY_INSPECT(const auto& idbDir,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13600 | CloneFileAndAppend(*originDir, idbDirName));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13601 | |||||
| 13602 | QM_TRY_INSPECT(const bool& exists,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13603 | MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, Exists));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13604 | |||||
| 13605 | if (!exists) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13606 | return Ok{};{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13607 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13608 | |||||
| 13609 | QM_TRY_INSPECT(const bool& isDirectory,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13610 | MOZ_TO_RESULT_INVOKE_MEMBER(idbDir, IsDirectory));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13611 | |||||
| 13612 | QM_TRY(OkIf(isDirectory), Ok{});{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13613 | |||||
| 13614 | nsTArray<nsString> databasePaths;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13615 | |||||
| 13616 | // Loop over files in the "idb" directory.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13617 | QM_TRY(CollectEachFile({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13618 | *idbDir,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13619 | [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile){auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13620 | -> Result<Ok, nsresult> {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13621 | if (NS_WARN_IF(QuotaClient::{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13622 | IsShuttingDownOnNonBackgroundThread()) ||{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13623 | IsAborted()) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13624 | return Err(NS_ERROR_ABORT);{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13625 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13626 | |||||
| 13627 | QM_TRY_UNWRAP(auto idbFilePath,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13628 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13629 | nsString, idbDirFile, GetPath));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13630 | |||||
| 13631 | if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13632 | return Ok{};{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13633 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13634 | |||||
| 13635 | QM_TRY_INSPECT(const auto& dirEntryKind,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13636 | GetDirEntryKind(*idbDirFile));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13637 | |||||
| 13638 | switch (dirEntryKind) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13639 | case nsIFileKind::ExistsAsDirectory:{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13640 | break;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13641 | |||||
| 13642 | case nsIFileKind::ExistsAsFile:{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13643 | // Found a database.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13644 | |||||
| 13645 | MOZ_ASSERT(!databasePaths.Contains(idbFilePath));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13646 | |||||
| 13647 | databasePaths.AppendElement(std::move(idbFilePath));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13648 | break;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13649 | |||||
| 13650 | case nsIFileKind::DoesNotExist:{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13651 | // Ignore files that got removed externally while{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13652 | // iterating.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13653 | break;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13654 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13655 | |||||
| 13656 | return Ok{};{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13657 | }));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13658 | |||||
| 13659 | if (!databasePaths.IsEmpty()) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13660 | if (!persistent) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13661 | auto maybeFullOriginMetadata ={auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13662 | quotaManager->GetFullOriginMetadata(metadata);{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13663 | auto fullOriginMetadata = maybeFullOriginMetadata.extract();{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13664 | |||||
| 13665 | // Skip origin maintenance if the origin hasn't been accessed{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13666 | // since its last recorded maintenance. This avoids{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13667 | // unnecessary I/O and prevents updating the accessed flag in{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13668 | // metadata, which helps preserve the effectiveness of the L2{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13669 | // quota info cache.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13670 | //{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13671 | // This early-out is safe because maintenance is only needed{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13672 | // when something has changed (e.g., new access or activity).{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13673 | const Date accessDate ={auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13674 | Date::FromTimestamp(fullOriginMetadata.mLastAccessTime);{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13675 | const Date maintenanceDate ={auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13676 | Date::FromDays(fullOriginMetadata.mLastMaintenanceDate);{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13677 | |||||
| 13678 | if (accessDate <= maintenanceDate) {{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13679 | return Ok{};{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13680 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13681 | |||||
| 13682 | fullOriginMetadata.mLastMaintenanceDate ={auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13683 | Date::Today().ToDays();{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13684 | fullOriginMetadata.mAccessed = true;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13685 | |||||
| 13686 | QM_TRY(MOZ_TO_RESULT(quotaManager->CreateDirectoryMetadata2({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13687 | *originDir, fullOriginMetadata)));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13688 | |||||
| 13689 | quotaManager->UpdateOriginMaintenanceDate({auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13690 | metadata, fullOriginMetadata.mLastMaintenanceDate);{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13691 | quotaManager->UpdateOriginAccessed(metadata);{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13692 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13693 | |||||
| 13694 | mDirectoryInfos.EmplaceBack(persistenceType, metadata,{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13695 | std::move(databasePaths));{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13696 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13697 | |||||
| 13698 | break;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13699 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13700 | |||||
| 13701 | case nsIFileKind::DoesNotExist:{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13702 | // Ignore files that got removed externally while iterating.{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13703 | break;{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13704 | }{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13705 | |||||
| 13706 | return Ok{};{auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .propagateErr(); }} | ||||
| 13707 | })){auto tryResult1132 = (CollectEachFile( *persistenceDir, [this , "aManager, persistenceType, persistent, &idbDirName ]( const nsCOMPtr<nsIFile>& originDir) -> Result <Ok, nsresult> { if (NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13532) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect (!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetDirEntryKind(*originDir)", tryResult1120.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13537, mozilla::dom::quota::Severity::Error); return tryResult1120 .propagateErr(); } const auto& dirEntryKind = tryResult1120 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile : break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect (!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError ("quotaManager->GetOriginMetadata(originDir)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13550 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "quotaManager->GetOriginMetadata(originDir)" , tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap ();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal ( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata .Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus ( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr() ), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122. unwrapErr(); mozilla::dom::quota::HandleError("quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)" , tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus .first; if (fullmetadataAndStatus.second) { glean::idb_maintenance ::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager ->IsTemporaryOriginInitializedInternal( metadata))); 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("OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13588, mozilla::dom::quota::Severity::Error); [](const auto &) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))" , tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr() ), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*originDir, idbDirName)" , tryResult1124.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13600, mozilla::dom::quota::Severity::Error); return tryResult1124 .propagateErr(); } const auto& idbDir = tryResult1124.inspect ();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( ( idbDir), &::mozilla::detail::DerefedType<decltype(idbDir )>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )" , tryResult1125.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13603, mozilla::dom::quota::Severity::Error); return tryResult1125 .propagateErr(); } const bool& exists = tryResult1125.inspect ();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla ::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType <decltype(idbDir)>::IsDirectory )); if ((__builtin_expect (!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )" , tryResult1126.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13610, mozilla::dom::quota::Severity::Error); return tryResult1126 .propagateErr(); } const bool& isDirectory = tryResult1126 .inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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("OkIf(isDirectory)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 13612 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(isDirectory)", tryTempError, Ok {}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread (), "QuotaClient:: IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect (!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )" , tryResult1128.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13629, mozilla::dom::quota::Severity::Error); return tryResult1128 .propagateErr(); } auto idbFilePath = tryResult1128.unwrap(); ; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok {}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla ::dom::quota::HandleError("GetDirEntryKind(*idbDirFile)", tryResult1129 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13636, mozilla::dom::quota::Severity::Error); return tryResult1129 .propagateErr(); } const auto& dirEntryKind = tryResult1129 .inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory : break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla ::detail::AssertionConditionType<decltype(!databasePaths.Contains (idbFilePath))>::isValid, "invalid assertion condition"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath )))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("!databasePaths.Contains(idbFilePath)", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13645); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!databasePaths.Contains(idbFilePath)" ")"); do { MOZ_CrashSequence(__null, 13645); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); databasePaths .AppendElement(std::move(idbFilePath)); break; case nsIFileKind ::DoesNotExist: break; } return Ok{}; })); static_assert(std:: is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla ::dom::quota::HandleError("CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1130.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13657, mozilla::dom::quota::Severity::Error); return tryResult1130 .propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent ) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata (metadata); auto fullOriginMetadata = maybeFullOriginMetadata .extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata .mLastAccessTime); const Date maintenanceDate = Date::FromDays (fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true ; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2 ( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect (!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))" , tryResult1131.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13687, mozilla::dom::quota::Severity::Error); return tryResult1131 .propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate ( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager ->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack (persistenceType, metadata, std::move(databasePaths)); } break ; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })) ; static_assert(std::is_empty_v<typename decltype(tryResult1132 )::ok_type>); if ((__builtin_expect(!!(tryResult1132.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 tryResult1120 = (GetDirEntryKind(*originDir)); if ((__builtin_expect(!!(tryResult1120.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*originDir)\", tryResult1120.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13537, mozilla::dom::quota::Severity::Error); return tryResult1120.propagateErr(); } const auto& dirEntryKind = tryResult1120.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsFile: break; case nsIFileKind::ExistsAsDirectory: { auto tryResult1121 = (quotaManager->GetOriginMetadata(originDir)); if ((__builtin_expect(!!(tryResult1121.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1121.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->GetOriginMetadata(originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13550, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->GetOriginMetadata(originDir)\", tryTempError, Ok{}); } auto metadata = tryResult1121.unwrap();; if (!persistent && !quotaManager->IsTemporaryOriginInitializedInternal( metadata)) { glean::idb_maintenance::fallback_fullrestore_metadata.Add(); auto tryResult1122 = (quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)); if ((__builtin_expect(!!(tryResult1122.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1122.unwrapErr(); mozilla::dom::quota::HandleError(\"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13574, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"quotaManager->LoadFullOriginMetadataWithRestoreAndStatus( originDir)\", tryTempError, Ok{}); } const auto& fullmetadataAndStatus = tryResult1122.inspect();; metadata = fullmetadataAndStatus.first; if (fullmetadataAndStatus.second) { glean::idb_maintenance::metadata_restored.Add(); } {auto tryResult1123 = (OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))); 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(\"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13588, mozilla::dom::quota::Severity::Error); [](const auto&) { glean::idb_maintenance::unknown_metadata.Add(); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(quotaManager->IsTemporaryOriginInitializedInternal( metadata))\", tryTempError, Ok{}); }}; } if (metadata.mIsPrivate) { return Ok{}; } auto tryResult1124 = (CloneFileAndAppend(*originDir, idbDirName)); if ((__builtin_expect(!!(tryResult1124.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CloneFileAndAppend(*originDir, idbDirName)\", tryResult1124.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13600, mozilla::dom::quota::Severity::Error); return tryResult1124.propagateErr(); } const auto& idbDir = tryResult1124.inspect();; auto tryResult1125 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )); if ((__builtin_expect(!!(tryResult1125.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::Exists )\", tryResult1125.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13603, mozilla::dom::quota::Severity::Error); return tryResult1125.propagateErr(); } const bool& exists = tryResult1125.inspect();; if (!exists) { return Ok{}; } auto tryResult1126 = (::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )); if ((__builtin_expect(!!(tryResult1126.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (idbDir), &::mozilla::detail::DerefedType<decltype(idbDir)>::IsDirectory )\", tryResult1126.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13610, mozilla::dom::quota::Severity::Error); return tryResult1126.propagateErr(); } const bool& isDirectory = tryResult1126.inspect();; {auto tryResult1127 = (OkIf(isDirectory)); 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(\"OkIf(isDirectory)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13612, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(isDirectory)\", tryTempError, Ok{}); }}; nsTArray<nsString> databasePaths; {auto tryResult1130 = (CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\", tryResult1128.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetDirEntryKind(*idbDirFile)\", tryResult1129.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"!databasePaths.Contains(idbFilePath)\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13645); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"!databasePaths.Contains(idbFilePath)\" \")\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1130)::ok_type>); if ((__builtin_expect(!!(tryResult1130.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectEachFile( *idbDir, [this, &databasePaths](const nsCOMPtr<nsIFile>& idbDirFile) -> Result<Ok, nsresult> { if (NS_warn_if_impl(QuotaClient:: IsShuttingDownOnNonBackgroundThread(), \\\"QuotaClient:: IsShuttingDownOnNonBackgroundThread()\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13622) || IsAborted()) { return Err(NS_ERROR_ABORT); } auto tryResult1128 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )); if ((__builtin_expect(!!(tryResult1128.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(idbDirFile)>::GetPath), (idbDirFile) )\\\", tryResult1128.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13629, mozilla::dom::quota::Severity::Error); return tryResult1128.propagateErr(); } auto idbFilePath = tryResult1128.unwrap();; if (!StringEndsWith(idbFilePath, kSQLiteSuffix)) { return Ok{}; } auto tryResult1129 = (GetDirEntryKind(*idbDirFile)); if ((__builtin_expect(!!(tryResult1129.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"GetDirEntryKind(*idbDirFile)\\\", tryResult1129.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13636, mozilla::dom::quota::Severity::Error); return tryResult1129.propagateErr(); } const auto& dirEntryKind = tryResult1129.inspect();; switch (dirEntryKind) { case nsIFileKind::ExistsAsDirectory: break; case nsIFileKind::ExistsAsFile: do { static_assert( mozilla::detail::AssertionConditionType<decltype(!databasePaths.Contains(idbFilePath))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(!databasePaths.Contains(idbFilePath)))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"!databasePaths.Contains(idbFilePath)\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 13645); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"!databasePaths.Contains(idbFilePath)\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 13645); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); databasePaths.AppendElement(std::move(idbFilePath)); break; case nsIFileKind::DoesNotExist: break; } return Ok{}; })\", tryResult1130.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13657, mozilla::dom::quota::Severity::Error); return tryResult1130.propagateErr(); }}; if (!databasePaths.IsEmpty()) { if (!persistent) { auto maybeFullOriginMetadata = quotaManager->GetFullOriginMetadata(metadata); auto fullOriginMetadata = maybeFullOriginMetadata.extract(); const Date accessDate = Date::FromTimestamp(fullOriginMetadata.mLastAccessTime); const Date maintenanceDate = Date::FromDays(fullOriginMetadata.mLastMaintenanceDate); if (accessDate <= maintenanceDate) { return Ok{}; } fullOriginMetadata.mLastMaintenanceDate = Date::Today().ToDays(); fullOriginMetadata.mAccessed = true; {auto tryResult1131 = (ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1131)::ok_type>); if ((__builtin_expect(!!(tryResult1131.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(quotaManager->CreateDirectoryMetadata2( *originDir, fullOriginMetadata))\", tryResult1131.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 13687, mozilla::dom::quota::Severity::Error); return tryResult1131.propagateErr(); }}; quotaManager->UpdateOriginMaintenanceDate( metadata, fullOriginMetadata.mLastMaintenanceDate); quotaManager->UpdateOriginAccessed(metadata); } mDirectoryInfos.EmplaceBack(persistenceType, metadata, std::move(databasePaths)); } break; } case nsIFileKind::DoesNotExist: break; } return Ok{}; })" , tryResult1132.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13707, mozilla::dom::quota::Severity::Error); return tryResult1132 .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 tryResult1133 = (ToResult(Start())); static_assert(std:: is_empty_v<typename decltype(tryResult1133)::ok_type>); if ((__builtin_expect(!!(tryResult1133.isErr()), 0))) { auto tryTempError = tryResult1133.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 tryResult1134 = (ToResult(CreateIndexedDatabaseManager( ))); static_assert(std::is_empty_v<typename decltype(tryResult1134 )::ok_type>); if ((__builtin_expect(!!(tryResult1134.isErr ()), 0))) { auto tryTempError = tryResult1134.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 tryResult1135 = (ToResult(OpenDirectory())); static_assert (std::is_empty_v<typename decltype(tryResult1135)::ok_type >); if ((__builtin_expect(!!(tryResult1135.isErr()), 0))) { auto tryTempError = tryResult1135.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 tryResult1136 = (ToResult(DirectoryWork())); static_assert (std::is_empty_v<typename decltype(tryResult1136)::ok_type >); if ((__builtin_expect(!!(tryResult1136.isErr()), 0))) { auto tryTempError = tryResult1136.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 tryResult1137 = (ToResult(BeginDatabaseMaintenance())); static_assert(std::is_empty_v<typename decltype(tryResult1137 )::ok_type>); if ((__builtin_expect(!!(tryResult1137.isErr ()), 0))) { auto tryTempError = tryResult1137.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 tryResult1138 = (ToResult(connection->Interrupt())); static_assert(std::is_empty_v<typename decltype(tryResult1138 )::ok_type>); if ((__builtin_expect(!!(tryResult1138.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(connection->Interrupt())" , tryResult1138.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 13963, mozilla::dom::quota::Severity::Error); return tryResult1138 .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 tryResult1139 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1139.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1139.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 = tryResult1139.unwrap(); | ||||
| 13988 | const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1139 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1139.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1139.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 = tryResult1139.unwrap(); | ||||
| 13989 | GetStorageConnection(*databaseFile, mDirectoryLockId,auto tryResult1139 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1139.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1139.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 = tryResult1139.unwrap(); | ||||
| 13990 | TelemetryIdForFile(databaseFile), mMaybeKey),auto tryResult1139 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1139.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1139.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 = tryResult1139.unwrap(); | ||||
| 13991 | QM_VOID)auto tryResult1139 = (GetStorageConnection(*databaseFile, mDirectoryLockId , TelemetryIdForFile(databaseFile), mMaybeKey)); if ((__builtin_expect (!!(tryResult1139.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1139.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 = tryResult1139.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 tryResult1140 = (ToResult(CheckIntegrity(*connection, & databaseIsOk))); static_assert(std::is_empty_v<typename decltype (tryResult1140)::ok_type>); if ((__builtin_expect(!!(tryResult1140 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1140 .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 tryResult1141 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1141)::ok_type> ); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { auto tryTempError = tryResult1141.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 tryResult1141 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1141)::ok_type> ); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { auto tryTempError = tryResult1141.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 tryResult1141 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1141)::ok_type> ); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { auto tryTempError = tryResult1141.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 tryResult1141 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1141)::ok_type> ); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { auto tryTempError = tryResult1141.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 tryResult1141 = (OkIf(databaseIsOk)); static_assert(std ::is_empty_v<typename decltype(tryResult1141)::ok_type> ); if ((__builtin_expect(!!(tryResult1141.isErr()), 0))) { auto tryTempError = tryResult1141.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 tryResult1142 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1142.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 tryResult1142 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1142.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 tryResult1142 = (ToResult(DetermineMaintenanceAction(*connection , databaseFile, &maintenanceAction))); static_assert(std:: is_empty_v<typename decltype(tryResult1142)::ok_type>); if ((__builtin_expect(!!(tryResult1142.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1142.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 tryResult1143 = (DatabasePassesIntegrityCheck( aConnection , IntegrityCheckMode::Full)); if ((__builtin_expect(!!(tryResult1143 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabasePassesIntegrityCheck( aConnection, IntegrityCheckMode::Full)" , tryResult1143.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14049, mozilla::dom::quota::Severity::Error); return tryResult1143 .propagateErr(); } const bool& ok = tryResult1143.inspect (); | ||||
| 14049 | aConnection, IntegrityCheckMode::Full))auto tryResult1143 = (DatabasePassesIntegrityCheck( aConnection , IntegrityCheckMode::Full)); if ((__builtin_expect(!!(tryResult1143 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabasePassesIntegrityCheck( aConnection, IntegrityCheckMode::Full)" , tryResult1143.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14049, mozilla::dom::quota::Severity::Error); return tryResult1143 .propagateErr(); } const bool& ok = tryResult1143.inspect ();; | ||||
| 14050 | |||||
| 14051 | QM_TRY(OkIf(ok), NS_OK, [&aOk](const auto) { *aOk = false; }){auto tryResult1144 = (OkIf(ok)); static_assert(std::is_empty_v <typename decltype(tryResult1144)::ok_type>); if ((__builtin_expect (!!(tryResult1144.isErr()), 0))) { auto tryTempError = tryResult1144 .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 tryResult1147 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const auto& stmt = tryResult1145.inspect ();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146 ;}; }())); if ((__builtin_expect(!!(tryResult1147.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& stmt = tryResult1145.inspect();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146;}; }())" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1147.inspect(); | ||||
| 14057 | const int32_t& foreignKeysWereEnabled,auto tryResult1147 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const auto& stmt = tryResult1145.inspect ();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146 ;}; }())); if ((__builtin_expect(!!(tryResult1147.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& stmt = tryResult1145.inspect();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146;}; }())" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1147.inspect(); | ||||
| 14058 | ([&aConnection]() -> Result<int32_t, nsresult> {auto tryResult1147 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const auto& stmt = tryResult1145.inspect ();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146 ;}; }())); if ((__builtin_expect(!!(tryResult1147.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& stmt = tryResult1145.inspect();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146;}; }())" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1147.inspect(); | ||||
| 14059 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1147 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const auto& stmt = tryResult1145.inspect ();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146 ;}; }())); if ((__builtin_expect(!!(tryResult1147.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& stmt = tryResult1145.inspect();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146;}; }())" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1147.inspect(); | ||||
| 14060 | CreateAndExecuteSingleStepStatement(auto tryResult1147 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const auto& stmt = tryResult1145.inspect ();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146 ;}; }())); if ((__builtin_expect(!!(tryResult1147.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& stmt = tryResult1145.inspect();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146;}; }())" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1147.inspect(); | ||||
| 14061 | aConnection, "PRAGMA foreign_keys;"_ns));auto tryResult1147 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const auto& stmt = tryResult1145.inspect ();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146 ;}; }())); if ((__builtin_expect(!!(tryResult1147.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& stmt = tryResult1145.inspect();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146;}; }())" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1147.inspect(); | ||||
| 14062 | |||||
| 14063 | QM_TRY_RETURN(MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0));auto tryResult1147 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const auto& stmt = tryResult1145.inspect ();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146 ;}; }())); if ((__builtin_expect(!!(tryResult1147.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& stmt = tryResult1145.inspect();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146;}; }())" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1147.inspect(); | ||||
| 14064 | }()))auto tryResult1147 = (([&aConnection]() -> Result<int32_t , nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement ( aConnection, "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect (!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)" , tryResult1145.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14061, mozilla::dom::quota::Severity::Error); return tryResult1145 .propagateErr(); } const auto& stmt = tryResult1145.inspect ();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( ( *stmt), &::mozilla::detail::DerefedType<decltype(*stmt )>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1146.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146 ;}; }())); if ((__builtin_expect(!!(tryResult1147.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([&aConnection]() -> Result<int32_t, nsresult> { auto tryResult1145 = (CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA foreign_keys;\"_ns)); if ((__builtin_expect(!!(tryResult1145.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CreateAndExecuteSingleStepStatement( aConnection, \\\"PRAGMA foreign_keys;\\\"_ns)\", tryResult1145.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14061, mozilla::dom::quota::Severity::Error); return tryResult1145.propagateErr(); } const auto& stmt = tryResult1145.inspect();; {auto tryResult1146 = (::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1146.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)\", tryResult1146.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14063, mozilla::dom::quota::Severity::Error); } return tryResult1146;}; }())" , tryResult1147.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14064, mozilla::dom::quota::Severity::Error); return tryResult1147 .propagateErr(); } const int32_t& foreignKeysWereEnabled = tryResult1147.inspect();; | ||||
| 14065 | |||||
| 14066 | if (!foreignKeysWereEnabled) { | ||||
| 14067 | QM_TRY(MOZ_TO_RESULT({auto tryResult1148 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect (!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))" , tryResult1148.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14068, mozilla::dom::quota::Severity::Error); return tryResult1148 .propagateErr(); }} | ||||
| 14068 | aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = ON;"_ns))){auto tryResult1148 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = ON;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1148)::ok_type>); if ((__builtin_expect (!!(tryResult1148.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = ON;\"_ns))" , tryResult1148.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14068, mozilla::dom::quota::Severity::Error); return tryResult1148 .propagateErr(); }}; | ||||
| 14069 | } | ||||
| 14070 | |||||
| 14071 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1149 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14074, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const bool& foreignKeyError = tryResult1149 .inspect(); | ||||
| 14072 | CreateAndExecuteSingleStepStatement<auto tryResult1149 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14074, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const bool& foreignKeyError = tryResult1149 .inspect(); | ||||
| 14073 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1149 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14074, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const bool& foreignKeyError = tryResult1149 .inspect(); | ||||
| 14074 | aConnection, "PRAGMA foreign_key_check;"_ns))auto tryResult1149 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "PRAGMA foreign_key_check;"_ns )); if ((__builtin_expect(!!(tryResult1149.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"PRAGMA foreign_key_check;\"_ns)" , tryResult1149.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14074, mozilla::dom::quota::Severity::Error); return tryResult1149 .propagateErr(); } const bool& foreignKeyError = tryResult1149 .inspect();; | ||||
| 14075 | |||||
| 14076 | if (!foreignKeysWereEnabled) { | ||||
| 14077 | QM_TRY(MOZ_TO_RESULT({auto tryResult1150 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect (!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , tryResult1150.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14078, mozilla::dom::quota::Severity::Error); return tryResult1150 .propagateErr(); }} | ||||
| 14078 | aConnection.ExecuteSimpleSQL("PRAGMA foreign_keys = OFF;"_ns))){auto tryResult1150 = (ToResult(aConnection.ExecuteSimpleSQL( "PRAGMA foreign_keys = OFF;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1150)::ok_type>); if ((__builtin_expect (!!(tryResult1150.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection.ExecuteSimpleSQL(\"PRAGMA foreign_keys = OFF;\"_ns))" , tryResult1150.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14078, mozilla::dom::quota::Severity::Error); return tryResult1150 .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 tryResult1151 = (::mozilla::ToResultInvokeMember( (aConnection ), &::mozilla::detail::DerefedType<decltype(aConnection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion )" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14104, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); } const int32_t& schemaVersion = tryResult1151 .inspect(); | ||||
| 14104 | MOZ_TO_RESULT_INVOKE_MEMBER(aConnection, GetSchemaVersion))auto tryResult1151 = (::mozilla::ToResultInvokeMember( (aConnection ), &::mozilla::detail::DerefedType<decltype(aConnection )>::GetSchemaVersion )); if ((__builtin_expect(!!(tryResult1151 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aConnection), &::mozilla::detail::DerefedType<decltype(aConnection)>::GetSchemaVersion )" , tryResult1151.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14104, mozilla::dom::quota::Severity::Error); return tryResult1151 .propagateErr(); } const int32_t& schemaVersion = tryResult1151 .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 tryResult1152 = (ToResult(transaction.Start())); static_assert (std::is_empty_v<typename decltype(tryResult1152)::ok_type >); if ((__builtin_expect(!!(tryResult1152.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(transaction.Start())" , tryResult1152.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14119, mozilla::dom::quota::Severity::Error); return tryResult1152 .propagateErr(); }} | ||||
| 14120 | |||||
| 14121 | // Check to see when we last vacuumed this database. | ||||
| 14122 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1153 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect (); | ||||
| 14123 | CreateAndExecuteSingleStepStatement(auto tryResult1153 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect (); | ||||
| 14124 | aConnection,auto tryResult1153 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect (); | ||||
| 14125 | "SELECT last_vacuum_time, last_vacuum_size "auto tryResult1153 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect (); | ||||
| 14126 | "FROM database;"_ns))auto tryResult1153 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT last_vacuum_time, last_vacuum_size " "FROM database;"_ns )); if ((__builtin_expect(!!(tryResult1153.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT last_vacuum_time, last_vacuum_size \" \"FROM database;\"_ns)" , tryResult1153.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14126, mozilla::dom::quota::Severity::Error); return tryResult1153 .propagateErr(); } const auto& stmt = tryResult1153.inspect ();; | ||||
| 14127 | |||||
| 14128 | QM_TRY_INSPECT(const PRTime& lastVacuumTime,auto tryResult1154 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1154.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 0)" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14129, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); } const PRTime& lastVacuumTime = tryResult1154 .inspect(); | ||||
| 14129 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 0))auto tryResult1154 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1154.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 0)" , tryResult1154.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14129, mozilla::dom::quota::Severity::Error); return tryResult1154 .propagateErr(); } const PRTime& lastVacuumTime = tryResult1154 .inspect();; | ||||
| 14130 | |||||
| 14131 | QM_TRY_INSPECT(const int64_t& lastVacuumSize,auto tryResult1155 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1155.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 1)" , tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14132, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); } const int64_t& lastVacuumSize = tryResult1155 .inspect(); | ||||
| 14132 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt64, 1))auto tryResult1155 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1155.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt64 , 1)" , tryResult1155.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14132, mozilla::dom::quota::Severity::Error); return tryResult1155 .propagateErr(); } const int64_t& lastVacuumSize = tryResult1155 .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 tryResult1156 = (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(tryResult1156 )::ok_type>); if ((__builtin_expect(!!(tryResult1156.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))" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14158, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }} | ||||
| 14157 | "CREATE VIRTUAL TABLE __stats__ USING dbstat;"{auto tryResult1156 = (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(tryResult1156 )::ok_type>); if ((__builtin_expect(!!(tryResult1156.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))" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14158, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }} | ||||
| 14158 | "CREATE TEMP TABLE __temp_stats__ AS SELECT * FROM __stats__;"_ns))){auto tryResult1156 = (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(tryResult1156 )::ok_type>); if ((__builtin_expect(!!(tryResult1156.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))" , tryResult1156.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14158, mozilla::dom::quota::Severity::Error); return tryResult1156 .propagateErr(); }}; | ||||
| 14159 | |||||
| 14160 | { // Calculate the percentage of the database pages that are not in | ||||
| 14161 | // contiguous order. | ||||
| 14162 | QM_TRY_INSPECT(auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect (); | ||||
| 14163 | const auto& stmt,auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect (); | ||||
| 14164 | CreateAndExecuteSingleStepStatement(auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect (); | ||||
| 14165 | aConnection,auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect (); | ||||
| 14166 | "SELECT SUM(__ts1__.pageno != __ts2__.pageno + 1) * 100.0 / "auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect (); | ||||
| 14167 | "COUNT(*) "auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect (); | ||||
| 14168 | "FROM __temp_stats__ AS __ts1__, __temp_stats__ AS __ts2__ "auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect (); | ||||
| 14169 | "WHERE __ts1__.name = __ts2__.name "auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect (); | ||||
| 14170 | "AND __ts1__.rowid = __ts2__.rowid + 1;"_ns))auto tryResult1157 = (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(!!(tryResult1157.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)" , tryResult1157.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14170, mozilla::dom::quota::Severity::Error); return tryResult1157 .propagateErr(); } const auto& stmt = tryResult1157.inspect ();; | ||||
| 14171 | |||||
| 14172 | QM_TRY_INSPECT(const int32_t& percentUnordered,auto tryResult1158 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1158.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14173, mozilla::dom::quota::Severity::Error); return tryResult1158 .propagateErr(); } const int32_t& percentUnordered = tryResult1158 .inspect(); | ||||
| 14173 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1158 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1158.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1158.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14173, mozilla::dom::quota::Severity::Error); return tryResult1158 .propagateErr(); } const int32_t& percentUnordered = tryResult1158 .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 tryResult1159 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1159 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14186, mozilla::dom::quota::Severity::Error); return tryResult1159 .propagateErr(); } const int64_t& currentFileSize = tryResult1159 .inspect(); | ||||
| 14186 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize))auto tryResult1159 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1159 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1159.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14186, mozilla::dom::quota::Severity::Error); return tryResult1159 .propagateErr(); } const int64_t& currentFileSize = tryResult1159 .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 tryResult1160 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1160 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14198, mozilla::dom::quota::Severity::Error); return tryResult1160 .propagateErr(); } const auto& stmt = tryResult1160.inspect (); | ||||
| 14197 | CreateAndExecuteSingleStepStatement(auto tryResult1160 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1160 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14198, mozilla::dom::quota::Severity::Error); return tryResult1160 .propagateErr(); } const auto& stmt = tryResult1160.inspect (); | ||||
| 14198 | aConnection, "PRAGMA freelist_count;"_ns))auto tryResult1160 = (CreateAndExecuteSingleStepStatement( aConnection , "PRAGMA freelist_count;"_ns)); if ((__builtin_expect(!!(tryResult1160 .isErr()), 0))) { mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"PRAGMA freelist_count;\"_ns)" , tryResult1160.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14198, mozilla::dom::quota::Severity::Error); return tryResult1160 .propagateErr(); } const auto& stmt = tryResult1160.inspect ();; | ||||
| 14199 | |||||
| 14200 | QM_TRY_INSPECT(const int32_t& freelistCount,auto tryResult1161 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1161.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14201, mozilla::dom::quota::Severity::Error); return tryResult1161 .propagateErr(); } const int32_t& freelistCount = tryResult1161 .inspect(); | ||||
| 14201 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1161 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1161.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1161.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14201, mozilla::dom::quota::Severity::Error); return tryResult1161 .propagateErr(); } const int32_t& freelistCount = tryResult1161 .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 tryResult1162 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1162 .propagateErr(); } const auto& stmt = tryResult1162.inspect (); | ||||
| 14216 | const auto& stmt,auto tryResult1162 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1162 .propagateErr(); } const auto& stmt = tryResult1162.inspect (); | ||||
| 14217 | CreateAndExecuteSingleStepStatement(auto tryResult1162 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1162 .propagateErr(); } const auto& stmt = tryResult1162.inspect (); | ||||
| 14218 | aConnection,auto tryResult1162 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1162 .propagateErr(); } const auto& stmt = tryResult1162.inspect (); | ||||
| 14219 | "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns))auto tryResult1162 = (CreateAndExecuteSingleStepStatement( aConnection , "SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;"_ns )); if ((__builtin_expect(!!(tryResult1162.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection, \"SELECT SUM(unused) * 100.0 / SUM(pgsize) FROM __temp_stats__;\"_ns)" , tryResult1162.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14219, mozilla::dom::quota::Severity::Error); return tryResult1162 .propagateErr(); } const auto& stmt = tryResult1162.inspect ();; | ||||
| 14220 | |||||
| 14221 | QM_TRY_INSPECT(const int32_t& percentUnused,auto tryResult1163 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1163.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1163.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14222, mozilla::dom::quota::Severity::Error); return tryResult1163 .propagateErr(); } const int32_t& percentUnused = tryResult1163 .inspect(); | ||||
| 14222 | MOZ_TO_RESULT_INVOKE_MEMBER(*stmt, GetInt32, 0))auto tryResult1163 = (::mozilla::ToResultInvokeMember( (*stmt ), &::mozilla::detail::DerefedType<decltype(*stmt)> ::GetInt32 , 0)); if ((__builtin_expect(!!(tryResult1163.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (*stmt), &::mozilla::detail::DerefedType<decltype(*stmt)>::GetInt32 , 0)" , tryResult1163.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14222, mozilla::dom::quota::Severity::Error); return tryResult1163 .propagateErr(); } const int32_t& percentUnused = tryResult1163 .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 tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.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 tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14262 | |||||
| 14263 | const PRTime vacuumTime = PR_Now();{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14264 | MOZ_ASSERT(vacuumTime > 0);{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14265 | |||||
| 14266 | QM_TRY_INSPECT(const int64_t& fileSize,{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14267 | MOZ_TO_RESULT_INVOKE_MEMBER(aDatabaseFile, GetFileSize));{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14268 | |||||
| 14269 | MOZ_ASSERT(fileSize > 0);{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.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 tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14272 | // locally in the same function.{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.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 tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14274 | nsCOMPtr<mozIStorageStatement>,{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14275 | aConnection, CreateStatement,{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14276 | "UPDATE database "{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14277 | "SET last_vacuum_time = :time"{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14278 | ", last_vacuum_size = :size;"_ns));{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.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 tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.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 tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14283 | |||||
| 14284 | QM_TRY(MOZ_TO_RESULT(stmt->Execute()));{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14285 | return Ok{};{auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14286, mozilla::dom::quota::Severity::Warning); }} | ||||
| 14286 | }())){auto tryResult1170 = (([&]() -> Result<Ok, nsresult > { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL ("VACUUM;"_ns))); static_assert(std::is_empty_v<typename decltype (tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))" , tryResult1164.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14261, mozilla::dom::quota::Severity::Error); return tryResult1164 .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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile ), &::mozilla::detail::DerefedType<decltype(aDatabaseFile )>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )" , tryResult1165.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14267, mozilla::dom::quota::Severity::Error); return tryResult1165 .propagateErr(); } const int64_t& fileSize = tryResult1165 .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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)" , tryResult1166.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14278, mozilla::dom::quota::Severity::Error); return tryResult1166 .propagateErr(); } const auto& stmt = tryResult1166.inspect ();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex (0, vacuumTime))); static_assert(std::is_empty_v<typename decltype (tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByIndex(0, vacuumTime))" , tryResult1167.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14280, mozilla::dom::quota::Severity::Error); return tryResult1167 .propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt-> BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v <typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect (!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByIndex(1, fileSize))", tryResult1168 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14282, mozilla::dom::quota::Severity::Error); return tryResult1168 .propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt-> Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1169.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14284, mozilla::dom::quota::Severity::Error); return tryResult1169 .propagateErr(); }}; return Ok{}; }())); static_assert(std::is_empty_v <typename decltype(tryResult1170)::ok_type>); if ((__builtin_expect (!!(tryResult1170.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&]() -> Result<Ok, nsresult> { {auto tryResult1164 = (ToResult(aConnection.ExecuteSimpleSQL(\"VACUUM;\"_ns))); static_assert(std::is_empty_v<typename decltype(tryResult1164)::ok_type>); if ((__builtin_expect(!!(tryResult1164.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aConnection.ExecuteSimpleSQL(\\\"VACUUM;\\\"_ns))\", tryResult1164.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14261, mozilla::dom::quota::Severity::Error); return tryResult1164.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 tryResult1165 = (::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )); if ((__builtin_expect(!!(tryResult1165.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (aDatabaseFile), &::mozilla::detail::DerefedType<decltype(aDatabaseFile)>::GetFileSize )\", tryResult1165.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14267, mozilla::dom::quota::Severity::Error); return tryResult1165.propagateErr(); } const int64_t& fileSize = tryResult1165.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 tryResult1166 = (::mozilla::ToResultInvoke< 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(!!(tryResult1166.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)\", tryResult1166.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14278, mozilla::dom::quota::Severity::Error); return tryResult1166.propagateErr(); } const auto& stmt = tryResult1166.inspect();; {auto tryResult1167 = (ToResult(stmt->BindInt64ByIndex(0, vacuumTime))); static_assert(std::is_empty_v<typename decltype(tryResult1167)::ok_type>); if ((__builtin_expect(!!(tryResult1167.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(0, vacuumTime))\", tryResult1167.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14280, mozilla::dom::quota::Severity::Error); return tryResult1167.propagateErr(); }}; {auto tryResult1168 = (ToResult(stmt->BindInt64ByIndex(1, fileSize))); static_assert(std::is_empty_v<typename decltype(tryResult1168)::ok_type>); if ((__builtin_expect(!!(tryResult1168.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->BindInt64ByIndex(1, fileSize))\", tryResult1168.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14282, mozilla::dom::quota::Severity::Error); return tryResult1168.propagateErr(); }}; {auto tryResult1169 = (ToResult(stmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1169)::ok_type>); if ((__builtin_expect(!!(tryResult1169.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt->Execute())\", tryResult1169.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14284, mozilla::dom::quota::Severity::Error); return tryResult1169.propagateErr(); }}; return Ok{}; }())" , tryResult1170.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 tryResult1171 = (ToResult(aKeyTransformation(aKey).BindToStatement ( aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect (!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))" , tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14401, mozilla::dom::quota::Severity::Error); return tryResult1171 .propagateErr(); }} | ||||
| 14401 | aStatement, aParameterName))){auto tryResult1171 = (ToResult(aKeyTransformation(aKey).BindToStatement ( aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult1171)::ok_type>); if ((__builtin_expect (!!(tryResult1171.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aKeyTransformation(aKey).BindToStatement( aStatement, aParameterName))" , tryResult1171.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14401, mozilla::dom::quota::Severity::Error); return tryResult1171 .propagateErr(); }}; | ||||
| 14402 | } else { | ||||
| 14403 | QM_TRY_INSPECT(const auto& transformedKey, aKeyTransformation(aKey))auto tryResult1172 = (aKeyTransformation(aKey)); if ((__builtin_expect (!!(tryResult1172.isErr()), 0))) { mozilla::dom::quota::HandleError ("aKeyTransformation(aKey)", tryResult1172.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14403, mozilla::dom::quota::Severity::Error); return tryResult1172 .propagateErr(); } const auto& transformedKey = tryResult1172 .inspect();; | ||||
| 14404 | QM_TRY(MOZ_TO_RESULT({auto tryResult1173 = (ToResult(transformedKey.BindToStatement (aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult1173)::ok_type>); if ((__builtin_expect (!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))" , tryResult1173.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14405, mozilla::dom::quota::Severity::Error); return tryResult1173 .propagateErr(); }} | ||||
| 14405 | transformedKey.BindToStatement(aStatement, aParameterName))){auto tryResult1173 = (ToResult(transformedKey.BindToStatement (aStatement, aParameterName))); static_assert(std::is_empty_v <typename decltype(tryResult1173)::ok_type>); if ((__builtin_expect (!!(tryResult1173.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(transformedKey.BindToStatement(aStatement, aParameterName))" , tryResult1173.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14405, mozilla::dom::quota::Severity::Error); return tryResult1173 .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 tryResult1174 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1174 )::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14422, mozilla::dom::quota::Severity::Error); return tryResult1174 .propagateErr(); }} | ||||
| 14421 | kStmtParamNameLowerKey,{auto tryResult1174 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1174 )::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14422, mozilla::dom::quota::Severity::Error); return tryResult1174 .propagateErr(); }} | ||||
| 14422 | aKeyTransformation))){auto tryResult1174 = (ToResult(MaybeBindKeyToStatement(aKeyRange .lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1174 )::ok_type>); if ((__builtin_expect(!!(tryResult1174.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.lower(), aStatement, kStmtParamNameLowerKey, aKeyTransformation))" , tryResult1174.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14422, mozilla::dom::quota::Severity::Error); return tryResult1174 .propagateErr(); }}; | ||||
| 14423 | |||||
| 14424 | if (aKeyRange.isOnly()) { | ||||
| 14425 | return NS_OK; | ||||
| 14426 | } | ||||
| 14427 | |||||
| 14428 | QM_TRY(MOZ_TO_RESULT(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement,{auto tryResult1175 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1175 )::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult1175.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14430, mozilla::dom::quota::Severity::Error); return tryResult1175 .propagateErr(); }} | ||||
| 14429 | kStmtParamNameUpperKey,{auto tryResult1175 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1175 )::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult1175.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14430, mozilla::dom::quota::Severity::Error); return tryResult1175 .propagateErr(); }} | ||||
| 14430 | aKeyTransformation))){auto tryResult1175 = (ToResult(MaybeBindKeyToStatement(aKeyRange .upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation ))); static_assert(std::is_empty_v<typename decltype(tryResult1175 )::ok_type>); if ((__builtin_expect(!!(tryResult1175.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(MaybeBindKeyToStatement(aKeyRange.upper(), aStatement, kStmtParamNameUpperKey, aKeyTransformation))" , tryResult1175.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14430, mozilla::dom::quota::Severity::Error); return tryResult1175 .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 tryResult1176 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult1176.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult1176.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14547, mozilla::dom::quota::Severity::Error); return tryResult1176 .propagateErr(); } const auto& borrowedStmt = tryResult1176 .inspect();; | ||||
| 14548 | |||||
| 14549 | QM_TRY(MOZ_TO_RESULT({auto tryResult1177 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, info.mIndexId))); static_assert(std:: is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14550, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }} | ||||
| 14550 | borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))){auto tryResult1177 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, info.mIndexId))); static_assert(std:: is_empty_v<typename decltype(tryResult1177)::ok_type>); if ((__builtin_expect(!!(tryResult1177.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, info.mIndexId))" , tryResult1177.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14550, mozilla::dom::quota::Severity::Error); return tryResult1177 .propagateErr(); }}; | ||||
| 14551 | QM_TRY(MOZ_TO_RESULT({auto tryResult1178 = (ToResult(info.mPosition.BindToStatement (&*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult1178)::ok_type> ); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14552, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); }} | ||||
| 14552 | info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))){auto tryResult1178 = (ToResult(info.mPosition.BindToStatement (&*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult1178)::ok_type> ); if ((__builtin_expect(!!(tryResult1178.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(info.mPosition.BindToStatement(&*borrowedStmt, kStmtParamNameValue))" , tryResult1178.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14552, mozilla::dom::quota::Severity::Error); return tryResult1178 .propagateErr(); }}; | ||||
| 14553 | QM_TRY(MOZ_TO_RESULT(info.mLocaleAwarePosition.BindToStatement({auto tryResult1179 = (ToResult(info.mLocaleAwarePosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert (std::is_empty_v<typename decltype(tryResult1179)::ok_type >); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14554, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }} | ||||
| 14554 | &*borrowedStmt, kStmtParamNameValueLocale))){auto tryResult1179 = (ToResult(info.mLocaleAwarePosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValueLocale))); static_assert (std::is_empty_v<typename decltype(tryResult1179)::ok_type >); if ((__builtin_expect(!!(tryResult1179.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(info.mLocaleAwarePosition.BindToStatement( &*borrowedStmt, kStmtParamNameValueLocale))" , tryResult1179.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14554, mozilla::dom::quota::Severity::Error); return tryResult1179 .propagateErr(); }}; | ||||
| 14555 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName({auto tryResult1180 = (ToResult(borrowedStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1180)::ok_type >); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14556, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); }} | ||||
| 14556 | kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1180 = (ToResult(borrowedStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1180)::ok_type >); if ((__builtin_expect(!!(tryResult1180.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1180.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14556, mozilla::dom::quota::Severity::Error); return tryResult1180 .propagateErr(); }}; | ||||
| 14557 | QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1181 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1181)::ok_type >); if ((__builtin_expect(!!(tryResult1181.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14558, mozilla::dom::quota::Severity::Error); return tryResult1181 .propagateErr(); }} | ||||
| 14558 | &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1181 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1181)::ok_type >); if ((__builtin_expect(!!(tryResult1181.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult1181.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14558, mozilla::dom::quota::Severity::Error); return tryResult1181 .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 tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14563 | // Expression.{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14564 | MOZ_TO_RESULT(borrowedStmt->Execute()),{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14565 | // Predicate.{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14566 | ([&info, index, &aIndexValues](nsresult rv) {{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14567 | if (rv == NS_ERROR_STORAGE_CONSTRAINT && info.mUnique) {{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14568 | // If we're inserting multiple entries for the same unique{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14569 | // index, then we might have failed to insert due to{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14570 | // colliding with another entry for the same index in which{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14571 | // case we should ignore it.{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14572 | for (int32_t index2 = int32_t(index) - 1;{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14573 | index2 >= 0 && aIndexValues[index2].mIndexId == info.mIndexId;{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14574 | --index2) {{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14575 | if (info.mPosition == aIndexValues[index2].mPosition) {{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14576 | // We found a key with the same value for the same{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14577 | // index. So we must have had a collision with a value{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14578 | // we just inserted.{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14579 | return true;{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14580 | }{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14581 | }{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14582 | }{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14583 | |||||
| 14584 | return false;{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14585 | }),{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14586 | // Fallback.{auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .propagateErr(); }} | ||||
| 14587 | ErrToDefaultOk<>)){auto tryResult1182 = (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 (tryResult1182)::ok_type>); if ((__builtin_expect(!!(tryResult1182 .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<>)" , tryResult1182.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14587, mozilla::dom::quota::Severity::Error); return tryResult1182 .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 tryResult1183 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult1183.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult1183.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14623, mozilla::dom::quota::Severity::Error); return tryResult1183 .propagateErr(); } const auto& borrowedStmt = tryResult1183 .inspect();; | ||||
| 14624 | |||||
| 14625 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1184 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, indexValue.mIndexId))); static_assert (std::is_empty_v<typename decltype(tryResult1184)::ok_type >); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14626, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }} | ||||
| 14626 | indexValue.mIndexId))){auto tryResult1184 = (ToResult(borrowedStmt->BindInt64ByName (kStmtParamNameIndexId, indexValue.mIndexId))); static_assert (std::is_empty_v<typename decltype(tryResult1184)::ok_type >); if ((__builtin_expect(!!(tryResult1184.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByName(kStmtParamNameIndexId, indexValue.mIndexId))" , tryResult1184.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14626, mozilla::dom::quota::Severity::Error); return tryResult1184 .propagateErr(); }}; | ||||
| 14627 | |||||
| 14628 | QM_TRY(MOZ_TO_RESULT(indexValue.mPosition.BindToStatement({auto tryResult1185 = (ToResult(indexValue.mPosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult1185)::ok_type> ); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14629, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }} | ||||
| 14629 | &*borrowedStmt, kStmtParamNameValue))){auto tryResult1185 = (ToResult(indexValue.mPosition.BindToStatement ( &*borrowedStmt, kStmtParamNameValue))); static_assert(std ::is_empty_v<typename decltype(tryResult1185)::ok_type> ); if ((__builtin_expect(!!(tryResult1185.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(indexValue.mPosition.BindToStatement( &*borrowedStmt, kStmtParamNameValue))" , tryResult1185.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14629, mozilla::dom::quota::Severity::Error); return tryResult1185 .propagateErr(); }}; | ||||
| 14630 | |||||
| 14631 | if (!indexValue.mUnique) { | ||||
| 14632 | QM_TRY(MOZ_TO_RESULT(aObjectStoreKey.BindToStatement({auto tryResult1186 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1186)::ok_type >); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14633, mozilla::dom::quota::Severity::Error); return tryResult1186 .propagateErr(); }} | ||||
| 14633 | &*borrowedStmt, kStmtParamNameObjectDataKey))){auto tryResult1186 = (ToResult(aObjectStoreKey.BindToStatement ( &*borrowedStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1186)::ok_type >); if ((__builtin_expect(!!(tryResult1186.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement( &*borrowedStmt, kStmtParamNameObjectDataKey))" , tryResult1186.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14633, mozilla::dom::quota::Severity::Error); return tryResult1186 .propagateErr(); }}; | ||||
| 14634 | } | ||||
| 14635 | |||||
| 14636 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1187 = (ToResult(borrowedStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1187 )::ok_type>); if ((__builtin_expect(!!(tryResult1187.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())" , tryResult1187.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14636, mozilla::dom::quota::Severity::Error); return tryResult1187 .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 tryResult1188 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { auto tryTempError = tryResult1188.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 = tryResult1188.inspect(); | ||||
| 14653 | ObjectStoreHasIndexes(*aConnection, aObjectStoreId),auto tryResult1188 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { auto tryTempError = tryResult1188.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 = tryResult1188.inspect(); | ||||
| 14654 | QM_PROPAGATE, [](const auto&) { MOZ_ASSERT(false); })auto tryResult1188 = (ObjectStoreHasIndexes(*aConnection, aObjectStoreId )); if ((__builtin_expect(!!(tryResult1188.isErr()), 0))) { auto tryTempError = tryResult1188.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 = tryResult1188.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 tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14670 | const auto& selectStmt,auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14671 | ([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange,auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14672 | &keyRangeClause]()auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14673 | -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> {auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14674 | if (singleRowOnly) {auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14675 | QM_TRY_UNWRAP(auto selectStmt,auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14676 | aConnection->BorrowCachedStatement(auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14677 | "SELECT index_data_values "auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14678 | "FROM object_data "auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14679 | "WHERE object_store_id = :"_ns +auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14680 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14681 | kStmtParamNameKey + ";"_ns));auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14682 | |||||
| 14683 | objectStoreKey = aKeyRange.ref().lower();auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14684 | |||||
| 14685 | QM_TRY(MOZ_TO_RESULT(auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14686 | objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey)));auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14687 | |||||
| 14688 | return selectStmt;auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14689 | }auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14690 | |||||
| 14691 | QM_TRY_UNWRAP(auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14692 | auto selectStmt,auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14693 | aConnection->BorrowCachedStatement(auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14694 | "SELECT index_data_values, "_ns + kColumnNameKey +auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14695 | " FROM object_data WHERE object_store_id = :"_ns +auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14696 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns));auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14697 | |||||
| 14698 | if (aKeyRange.isSome()) {auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14699 | QM_TRY(MOZ_TO_RESULT(auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14700 | BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt)));auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14701 | }auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14702 | |||||
| 14703 | return selectStmt;auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect(); | ||||
| 14704 | }()))auto tryResult1193 = (([singleRowOnly, &aConnection, & objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result <CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection-> BorrowCachedStatement( "SELECT index_data_values " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect (!!(tryResult1189.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)" , tryResult1189.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14681, mozilla::dom::quota::Severity::Error); return tryResult1189 .propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect (!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))" , tryResult1190.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14686, mozilla::dom::quota::Severity::Error); return tryResult1190 .propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( "SELECT index_data_values, "_ns + kColumnNameKey + " FROM object_data WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1191.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)" , tryResult1191.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14696, mozilla::dom::quota::Severity::Error); return tryResult1191 .propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement (aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect (!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))" , tryResult1192.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14700, mozilla::dom::quota::Severity::Error); return tryResult1192 .propagateErr(); }}; } return selectStmt; }())); if ((__builtin_expect (!!(tryResult1193.isErr()), 0))) { mozilla::dom::quota::HandleError ("([singleRowOnly, &aConnection, &objectStoreKey, &aKeyRange, &keyRangeClause]() -> Result<CachingDatabaseConnection::BorrowedStatement, nsresult> { if (singleRowOnly) { auto tryResult1189 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values \" \"FROM object_data \" \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + \" AND key = :\"_ns + kStmtParamNameKey + \";\"_ns)); if ((__builtin_expect(!!(tryResult1189.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)\", tryResult1189.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14681, mozilla::dom::quota::Severity::Error); return tryResult1189.propagateErr(); } auto selectStmt = tryResult1189.unwrap();; objectStoreKey = aKeyRange.ref().lower(); {auto tryResult1190 = (ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1190)::ok_type>); if ((__builtin_expect(!!(tryResult1190.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.BindToStatement(&*selectStmt, kStmtParamNameKey))\", tryResult1190.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14686, mozilla::dom::quota::Severity::Error); return tryResult1190.propagateErr(); }}; return selectStmt; } auto tryResult1191 = (aConnection->BorrowCachedStatement( \"SELECT index_data_values, \"_ns + kColumnNameKey + \" FROM object_data WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)); if ((__builtin_expect(!!(tryResult1191.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)\", tryResult1191.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14696, mozilla::dom::quota::Severity::Error); return tryResult1191.propagateErr(); } auto selectStmt = tryResult1191.unwrap();; if (aKeyRange.isSome()) { {auto tryResult1192 = (ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))); static_assert(std::is_empty_v<typename decltype(tryResult1192)::ok_type>); if ((__builtin_expect(!!(tryResult1192.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*selectStmt))\", tryResult1192.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14700, mozilla::dom::quota::Severity::Error); return tryResult1192.propagateErr(); }}; } return selectStmt; }())" , tryResult1193.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14704, mozilla::dom::quota::Severity::Error); return tryResult1193 .propagateErr(); } const auto& selectStmt = tryResult1193 .inspect();; | ||||
| 14705 | |||||
| 14706 | QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1194 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1194)::ok_type >); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14707, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }} | ||||
| 14707 | aObjectStoreId))){auto tryResult1194 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1194)::ok_type >); if ((__builtin_expect(!!(tryResult1194.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName(kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1194.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14707, mozilla::dom::quota::Severity::Error); return tryResult1194 .propagateErr(); }}; | ||||
| 14708 | |||||
| 14709 | DebugOnly<uint32_t> resultCountDEBUG = 0; | ||||
| 14710 | |||||
| 14711 | QM_TRY(CollectWhileHasResult({auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14712 | *selectStmt,{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14713 | [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG,{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14714 | indexValues = IndexDataValuesAutoArray{}]({auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14715 | auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14716 | if (!singleRowOnly) {{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14717 | QM_TRY({auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14718 | MOZ_TO_RESULT(objectStoreKey.SetFromStatement(&selectStmt, 1)));{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14719 | |||||
| 14720 | indexValues.ClearAndRetainStorage();{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14721 | }{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14722 | |||||
| 14723 | QM_TRY(MOZ_TO_RESULT({auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14724 | ReadCompressedIndexDataValues(selectStmt, 0, indexValues)));{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14725 | QM_TRY(MOZ_TO_RESULT(DeleteIndexDataTableRows({auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14726 | aConnection, objectStoreKey, indexValues)));{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14727 | |||||
| 14728 | resultCountDEBUG++;{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14729 | |||||
| 14730 | return Ok{};{auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .propagateErr(); }} | ||||
| 14731 | })){auto tryResult1198 = (CollectWhileHasResult( *selectStmt, [singleRowOnly , &objectStoreKey, &aConnection, &resultCountDEBUG , indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt ) mutable -> Result<Ok, nsresult> { if (!singleRowOnly ) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement (&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect (!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))" , tryResult1195.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14718, mozilla::dom::quota::Severity::Error); return tryResult1195 .propagateErr(); }}; indexValues.ClearAndRetainStorage(); } { auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues( selectStmt, 0, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect (!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))" , tryResult1196.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14724, mozilla::dom::quota::Severity::Error); return tryResult1196 .propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows ( aConnection, objectStoreKey, indexValues))); static_assert( std::is_empty_v<typename decltype(tryResult1197)::ok_type> ); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))" , tryResult1197.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14726, mozilla::dom::quota::Severity::Error); return tryResult1197 .propagateErr(); }}; resultCountDEBUG++; return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1198)::ok_type >); if ((__builtin_expect(!!(tryResult1198.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *selectStmt, [singleRowOnly, &objectStoreKey, &aConnection, &resultCountDEBUG, indexValues = IndexDataValuesAutoArray{}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { if (!singleRowOnly) { {auto tryResult1195 = (ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1195)::ok_type>); if ((__builtin_expect(!!(tryResult1195.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStoreKey.SetFromStatement(&selectStmt, 1))\", tryResult1195.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14718, mozilla::dom::quota::Severity::Error); return tryResult1195.propagateErr(); }}; indexValues.ClearAndRetainStorage(); } {auto tryResult1196 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1196)::ok_type>); if ((__builtin_expect(!!(tryResult1196.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 0, indexValues))\", tryResult1196.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14724, mozilla::dom::quota::Severity::Error); return tryResult1196.propagateErr(); }}; {auto tryResult1197 = (ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1197)::ok_type>); if ((__builtin_expect(!!(tryResult1197.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(DeleteIndexDataTableRows( aConnection, objectStoreKey, indexValues))\", tryResult1197.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14726, mozilla::dom::quota::Severity::Error); return tryResult1197.propagateErr(); }}; resultCountDEBUG++; return Ok{}; })" , tryResult1198.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14731, mozilla::dom::quota::Severity::Error); return tryResult1198 .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 tryResult1199 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1199 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); } auto deleteManyStmt = tryResult1199.unwrap (); | ||||
| 14736 | auto deleteManyStmt,auto tryResult1199 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1199 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); } auto deleteManyStmt = tryResult1199.unwrap (); | ||||
| 14737 | aConnection->BorrowCachedStatement(auto tryResult1199 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1199 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); } auto deleteManyStmt = tryResult1199.unwrap (); | ||||
| 14738 | "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns +auto tryResult1199 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1199 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); } auto deleteManyStmt = tryResult1199.unwrap (); | ||||
| 14739 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns))auto tryResult1199 = (aConnection->BorrowCachedStatement( "DELETE FROM object_data "_ns + "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns)); if ((__builtin_expect(!!(tryResult1199 .isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement( \"DELETE FROM object_data \"_ns + \"WHERE object_store_id = :\"_ns + kStmtParamNameObjectStoreId + keyRangeClause + \";\"_ns)" , tryResult1199.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14739, mozilla::dom::quota::Severity::Error); return tryResult1199 .propagateErr(); } auto deleteManyStmt = tryResult1199.unwrap ();; | ||||
| 14740 | |||||
| 14741 | QM_TRY(MOZ_TO_RESULT(deleteManyStmt->BindInt64ByName({auto tryResult1200 = (ToResult(deleteManyStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1200)::ok_type >); if ((__builtin_expect(!!(tryResult1200.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1200.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14742, mozilla::dom::quota::Severity::Error); return tryResult1200 .propagateErr(); }} | ||||
| 14742 | kStmtParamNameObjectStoreId, aObjectStoreId))){auto tryResult1200 = (ToResult(deleteManyStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1200)::ok_type >); if ((__builtin_expect(!!(tryResult1200.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1200.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14742, mozilla::dom::quota::Severity::Error); return tryResult1200 .propagateErr(); }}; | ||||
| 14743 | |||||
| 14744 | if (aKeyRange.isSome()) { | ||||
| 14745 | QM_TRY(MOZ_TO_RESULT({auto tryResult1201 = (ToResult(BindKeyRangeToStatement(aKeyRange .ref(), &*deleteManyStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1201)::ok_type>); if ((__builtin_expect (!!(tryResult1201.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))" , tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14746, mozilla::dom::quota::Severity::Error); return tryResult1201 .propagateErr(); }} | ||||
| 14746 | BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))){auto tryResult1201 = (ToResult(BindKeyRangeToStatement(aKeyRange .ref(), &*deleteManyStmt))); static_assert(std::is_empty_v <typename decltype(tryResult1201)::ok_type>); if ((__builtin_expect (!!(tryResult1201.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(aKeyRange.ref(), &*deleteManyStmt))" , tryResult1201.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14746, mozilla::dom::quota::Severity::Error); return tryResult1201 .propagateErr(); }}; | ||||
| 14747 | } | ||||
| 14748 | |||||
| 14749 | QM_TRY(MOZ_TO_RESULT(deleteManyStmt->Execute())){auto tryResult1202 = (ToResult(deleteManyStmt->Execute()) ); static_assert(std::is_empty_v<typename decltype(tryResult1202 )::ok_type>); if ((__builtin_expect(!!(tryResult1202.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(deleteManyStmt->Execute())" , tryResult1202.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14749, mozilla::dom::quota::Severity::Error); return tryResult1202 .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 tryResult1203 = (MakeCompressedIndexDataValues(aIndexValues )); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14765, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); } auto [indexDataValues, indexDataValuesLength ] = tryResult1203.unwrap(); | ||||
| 14765 | MakeCompressedIndexDataValues(aIndexValues))auto tryResult1203 = (MakeCompressedIndexDataValues(aIndexValues )); if ((__builtin_expect(!!(tryResult1203.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(aIndexValues)" , tryResult1203.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14765, mozilla::dom::quota::Severity::Error); return tryResult1203 .propagateErr(); } auto [indexDataValues, indexDataValuesLength ] = tryResult1203.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 tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14770 | "UPDATE object_data SET index_data_values = :"_ns +{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14771 | kStmtParamNameIndexDataValues + " WHERE object_store_id = :"_ns +{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14772 | kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey +{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14773 | ";"_ns,{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14774 | [&indexDataValues = indexDataValues,{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14775 | indexDataValuesLength = indexDataValuesLength, aObjectStoreId,{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14776 | &aObjectStoreKey]({auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14777 | mozIStorageStatement& updateStmt) -> Result<Ok, nsresult> {{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14778 | QM_TRY(MOZ_TO_RESULT({auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14779 | indexDataValues{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14780 | ? updateStmt.BindAdoptedBlobByName({auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14781 | kStmtParamNameIndexDataValues, indexDataValues.release(),{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14782 | indexDataValuesLength){auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14783 | : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)));{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14784 | |||||
| 14785 | QM_TRY(MOZ_TO_RESULT(updateStmt.BindInt64ByName({auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14786 | kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14787 | |||||
| 14788 | QM_TRY(MOZ_TO_RESULT({auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14789 | aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey)));{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14790 | |||||
| 14791 | return Ok{};{auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .propagateErr(); }} | ||||
| 14792 | }))){auto tryResult1207 = (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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName ( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength ) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues)) ); static_assert(std::is_empty_v<typename decltype(tryResult1204 )::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))" , tryResult1204.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14783, mozilla::dom::quota::Severity::Error); return tryResult1204 .propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt .BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1205 )::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1205.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14786, mozilla::dom::quota::Severity::Error); return tryResult1205 .propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey .BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1206)::ok_type >); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))" , tryResult1206.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14789, mozilla::dom::quota::Severity::Error); return tryResult1206 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1207)::ok_type>); if ((__builtin_expect (!!(tryResult1207.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 tryResult1204 = (ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))); static_assert(std::is_empty_v<typename decltype(tryResult1204)::ok_type>); if ((__builtin_expect(!!(tryResult1204.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexDataValues ? updateStmt.BindAdoptedBlobByName( kStmtParamNameIndexDataValues, indexDataValues.release(), indexDataValuesLength) : updateStmt.BindNullByName(kStmtParamNameIndexDataValues))\", tryResult1204.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14783, mozilla::dom::quota::Severity::Error); return tryResult1204.propagateErr(); }}; {auto tryResult1205 = (ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1205)::ok_type>); if ((__builtin_expect(!!(tryResult1205.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1205.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14786, mozilla::dom::quota::Severity::Error); return tryResult1205.propagateErr(); }}; {auto tryResult1206 = (ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1206)::ok_type>); if ((__builtin_expect(!!(tryResult1206.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(aObjectStoreKey.BindToStatement(&updateStmt, kStmtParamNameKey))\", tryResult1206.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14789, mozilla::dom::quota::Severity::Error); return tryResult1206.propagateErr(); }}; return Ok{}; }))" , tryResult1207.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14792, mozilla::dom::quota::Severity::Error); return tryResult1207 .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 tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14805 | .BorrowAndExecuteSingleStepStatement({auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14806 | "SELECT id "{auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14807 | "FROM object_store_index "{auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14808 | "WHERE object_store_id = :"_ns +{auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14809 | kStmtParamNameObjectStoreId + " LIMIT 1;"_ns,{auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14810 | [aObjectStoreId](auto& stmt) -> Result<Ok, nsresult> {{auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14811 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName({auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14812 | kStmtParamNameObjectStoreId, aObjectStoreId)));{auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14813 | return Ok{};{auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14814 | }){auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;} | ||||
| 14815 | .map(IsSome)){auto tryResult1209 = (aConnection .BorrowAndExecuteSingleStepStatement ( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " LIMIT 1;"_ns, [aObjectStoreId ](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect (!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))" , tryResult1208.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14812, mozilla::dom::quota::Severity::Error); return tryResult1208 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1209.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 tryResult1208 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1208)::ok_type>); if ((__builtin_expect(!!(tryResult1208.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, aObjectStoreId))\", tryResult1208.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14812, mozilla::dom::quota::Severity::Error); return tryResult1208.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryResult1209.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14815, mozilla::dom::quota::Severity::Error); } return tryResult1209 ;}; | ||||
| 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 tryResult1210 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1210 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1210 .unwrap(); | ||||
| 14858 | const DebugOnly oldProgressHandler,auto tryResult1210 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1210 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1210 .unwrap(); | ||||
| 14859 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1210 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1210 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1210 .unwrap(); | ||||
| 14860 | nsCOMPtr<mozIStorageProgressHandler>, aConnection, SetProgressHandler,auto tryResult1210 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1210 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1210 .unwrap(); | ||||
| 14861 | kStorageProgressGranularity, aDatabaseOp))auto tryResult1210 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageProgressHandler> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::SetProgressHandler ), (aConnection), kStorageProgressGranularity, aDatabaseOp)); if ((__builtin_expect(!!(tryResult1210.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageProgressHandler>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::SetProgressHandler), (aConnection), kStorageProgressGranularity, aDatabaseOp)" , tryResult1210.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14861, mozilla::dom::quota::Severity::Error); return tryResult1210 .propagateErr(); } const DebugOnly oldProgressHandler = tryResult1210 .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 tryResult1212 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1211 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1211)::ok_type >); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1211.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1212)::ok_type >); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1211 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1211.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1212 .propagateErr(); }} | ||||
| 14910 | [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable {{auto tryResult1212 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1211 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1211)::ok_type >); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1211.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1212)::ok_type >); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1211 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1211.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1212 .propagateErr(); }} | ||||
| 14911 | QM_WARNONLY_TRY(MOZ_TO_RESULT({auto tryResult1212 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1211 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1211)::ok_type >); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1211.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1212)::ok_type >); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1211 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1211.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1212 .propagateErr(); }} | ||||
| 14912 | eventTarget->Dispatch(self.forget(), NS_DISPATCH_NORMAL)));{auto tryResult1212 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1211 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1211)::ok_type >); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1211.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1212)::ok_type >); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1211 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1211.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1212 .propagateErr(); }} | ||||
| 14913 | }))){auto tryResult1212 = (ToResult(RunAfterProcessingCurrentEvent ( [eventTarget = std::move(aEventTarget), self = RefPtr(this) ]() mutable { {auto tryResult1211 = (ToResult(eventTarget-> Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1211)::ok_type >); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))" , tryResult1211.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14912, mozilla::dom::quota::Severity::Warning); }}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1212)::ok_type >); if ((__builtin_expect(!!(tryResult1212.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RunAfterProcessingCurrentEvent( [eventTarget = std::move(aEventTarget), self = RefPtr(this)]() mutable { {auto tryResult1211 = (ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))); static_assert(std::is_empty_v<typename decltype(tryResult1211)::ok_type>); if ((__builtin_expect(!!(tryResult1211.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(eventTarget->Dispatch(self.forget(), nsIEventTarget::DISPATCH_NORMAL))\", tryResult1211.unwrapErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 14912, mozilla::dom::quota::Severity::Warning); }}; }))" , tryResult1212.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 14913, mozilla::dom::quota::Severity::Error); return tryResult1212 .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 tryResult1213 = (QuotaManager::EnsureCreated()); static_assert (std::is_empty_v<typename decltype(tryResult1213)::ok_type >); if ((__builtin_expect(!!(tryResult1213.isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()" , tryResult1213.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15072, mozilla::dom::quota::Severity::Error); return tryResult1213 .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 tryResult1214 = (quota::GetInfoFromValidatedPrincipalInfo (*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1214 .isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)" , tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15079, mozilla::dom::quota::Severity::Error); return tryResult1214 .propagateErr(); } auto principalMetadata = tryResult1214.unwrap (); | ||||
| 15078 | auto principalMetadata,auto tryResult1214 = (quota::GetInfoFromValidatedPrincipalInfo (*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1214 .isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)" , tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15079, mozilla::dom::quota::Severity::Error); return tryResult1214 .propagateErr(); } auto principalMetadata = tryResult1214.unwrap (); | ||||
| 15079 | quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo))auto tryResult1214 = (quota::GetInfoFromValidatedPrincipalInfo (*quotaManager, mPrincipalInfo)); if ((__builtin_expect(!!(tryResult1214 .isErr()), 0))) { mozilla::dom::quota::HandleError("quota::GetInfoFromValidatedPrincipalInfo(*quotaManager, mPrincipalInfo)" , tryResult1214.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15079, mozilla::dom::quota::Severity::Error); return tryResult1214 .propagateErr(); } auto principalMetadata = tryResult1214.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 | mDatabaseFilenameBase = Some(GetDatabaseFilenameBase( | ||||
| 15118 | mDatabaseName.ref(), mOriginMetadata.mIsPrivate)); | ||||
| 15119 | nsCString databaseId; | ||||
| 15120 | |||||
| 15121 | QuotaManager::GetStorageId(mPersistenceType, mOriginMetadata.mOrigin, | ||||
| 15122 | Client::IDB, databaseId); | ||||
| 15123 | |||||
| 15124 | databaseId.Append('*'); | ||||
| 15125 | databaseId.Append(NS_ConvertUTF16toUTF8(*mDatabaseFilenameBase)); | ||||
| 15126 | |||||
| 15127 | mDatabaseId = Some(std::move(databaseId)); | ||||
| 15128 | |||||
| 15129 | // Need to get database file path before opening the directory. | ||||
| 15130 | // XXX: For what reason? | ||||
| 15131 | QM_TRY_UNWRAP(auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15132 | auto databaseFilePath,auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15133 | ([this, quotaManager]() -> mozilla::Result<nsString, nsresult> {auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15134 | QM_TRY_INSPECT(const auto& dbFile,auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15135 | quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15136 | |||||
| 15137 | QM_TRY(MOZ_TO_RESULT(dbFile->Append(auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15138 | NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME))));auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15139 | |||||
| 15140 | QM_TRY(MOZ_TO_RESULT(auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15141 | dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix)));auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15142 | |||||
| 15143 | QM_TRY_RETURN(auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15144 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath));auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.unwrap (); | ||||
| 15145 | }()))auto tryResult1219 = (([this, quotaManager]() -> mozilla:: Result<nsString, nsresult> { auto tryResult1215 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1215 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15135, mozilla::dom::quota::Severity::Error); return tryResult1215 .propagateErr(); } const auto& dbFile = tryResult1215.inspect ();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1216 )::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1216.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15138, mozilla::dom::quota::Severity::Error); return tryResult1216 .propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile-> Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert (std::is_empty_v<typename decltype(tryResult1217)::ok_type >); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))" , tryResult1217.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15141, mozilla::dom::quota::Severity::Error); return tryResult1217 .propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke < nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType <decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect (!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1218.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218 ;}; }())); if ((__builtin_expect(!!(tryResult1219.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([this, quotaManager]() -> mozilla::Result<nsString, nsresult> { auto tryResult1215 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1215.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1215.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15135, mozilla::dom::quota::Severity::Error); return tryResult1215.propagateErr(); } const auto& dbFile = tryResult1215.inspect();; {auto tryResult1216 = (ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))); static_assert(std::is_empty_v<typename decltype(tryResult1216)::ok_type>); if ((__builtin_expect(!!(tryResult1216.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append( static_cast<const nsLiteralString&>( nsLiteralString(u\\\"\\\" \\\"idb\\\"))))\", tryResult1216.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15138, mozilla::dom::quota::Severity::Error); return tryResult1216.propagateErr(); }}; {auto tryResult1217 = (ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))); static_assert(std::is_empty_v<typename decltype(tryResult1217)::ok_type>); if ((__builtin_expect(!!(tryResult1217.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(dbFile->Append(*mDatabaseFilenameBase + kSQLiteSuffix))\", tryResult1217.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15141, mozilla::dom::quota::Severity::Error); return tryResult1217.propagateErr(); }}; {auto tryResult1218 = (::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!!(tryResult1218.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )\", tryResult1218.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15144, mozilla::dom::quota::Severity::Error); } return tryResult1218;}; }())" , tryResult1219.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15145, mozilla::dom::quota::Severity::Error); return tryResult1219 .propagateErr(); } auto databaseFilePath = tryResult1219.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 tryResult1220 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1220)::ok_type >); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError = tryResult1220.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 tryResult1220 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1220)::ok_type >); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError = tryResult1220.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 tryResult1220 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1220)::ok_type >); if ((__builtin_expect(!!(tryResult1220.isErr()), 0))) { auto tryTempError = tryResult1220.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 tryResult1221 = (ToResult(DatabaseOpen())); static_assert (std::is_empty_v<typename decltype(tryResult1221)::ok_type >); if ((__builtin_expect(!!(tryResult1221.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOpen())", tryResult1221.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15252, mozilla::dom::quota::Severity::Error); return tryResult1221 .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 tryResult1222 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1222)::ok_type >); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError = tryResult1222.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 tryResult1222 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1222)::ok_type >); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError = tryResult1222.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 tryResult1222 = (ToResult(quotaManager->IOThread()-> Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))); static_assert (std::is_empty_v<typename decltype(tryResult1222)::ok_type >); if ((__builtin_expect(!!(tryResult1222.isErr()), 0))) { auto tryTempError = tryResult1222.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 | nsAutoString FactoryOp::GetDatabaseFilenameBase(const nsAString& aDatabaseName, | ||||
| 15368 | bool aIsPrivate) { | ||||
| 15369 | nsAutoString databaseFilenameBase; | ||||
| 15370 | |||||
| 15371 | if (aIsPrivate) { | ||||
| 15372 | 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", 15372 ); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "gStorageDatabaseNameMutex" ")"); do { MOZ_CrashSequence(__null, 15372); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15373 | |||||
| 15374 | MutexAutoLock lock(*gStorageDatabaseNameMutex); | ||||
| 15375 | |||||
| 15376 | if (!gStorageDatabaseNameHashtable) { | ||||
| 15377 | gStorageDatabaseNameHashtable = new StorageDatabaseNameHashtable(); | ||||
| 15378 | } | ||||
| 15379 | |||||
| 15380 | databaseFilenameBase.Append( | ||||
| 15381 | gStorageDatabaseNameHashtable->LookupOrInsertWith(aDatabaseName, []() { | ||||
| 15382 | return NSID_TrimBracketsUTF16(nsID::GenerateUUID()); | ||||
| 15383 | })); | ||||
| 15384 | |||||
| 15385 | return databaseFilenameBase; | ||||
| 15386 | } | ||||
| 15387 | |||||
| 15388 | // WARNING: do not change this hash function. See the comment in HashName() | ||||
| 15389 | // for details. | ||||
| 15390 | databaseFilenameBase.AppendInt(HashName(aDatabaseName)); | ||||
| 15391 | |||||
| 15392 | nsAutoCString escapedName; | ||||
| 15393 | if (!NS_Escape(NS_ConvertUTF16toUTF8(aDatabaseName), escapedName, | ||||
| 15394 | url_XPAlphas)) { | ||||
| 15395 | 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", 15395 ); AnnotateMozCrashReason("MOZ_CRASH(" "Can't escape database name!" ")"); do { MOZ_CrashSequence(__null, 15395); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 15396 | } | ||||
| 15397 | |||||
| 15398 | const char* forwardIter = escapedName.BeginReading(); | ||||
| 15399 | const char* backwardIter = escapedName.EndReading() - 1; | ||||
| 15400 | |||||
| 15401 | nsAutoCString substring; | ||||
| 15402 | while (forwardIter <= backwardIter && substring.Length() < 21) { | ||||
| 15403 | if (substring.Length() % 2) { | ||||
| 15404 | substring.Append(*backwardIter--); | ||||
| 15405 | } else { | ||||
| 15406 | substring.Append(*forwardIter++); | ||||
| 15407 | } | ||||
| 15408 | } | ||||
| 15409 | |||||
| 15410 | databaseFilenameBase.AppendASCII(substring.get(), substring.Length()); | ||||
| 15411 | |||||
| 15412 | return databaseFilenameBase; | ||||
| 15413 | } | ||||
| 15414 | |||||
| 15415 | bool FactoryOp::MustWaitFor(const FactoryOp& aExistingOp) { | ||||
| 15416 | AssertIsOnOwningThread(); | ||||
| 15417 | |||||
| 15418 | // If the persistence types don't overlap, the op can proceed. | ||||
| 15419 | if (aExistingOp.mPersistenceType != mPersistenceType) { | ||||
| 15420 | return false; | ||||
| 15421 | } | ||||
| 15422 | |||||
| 15423 | // If the origins don't overlap, the op can proceed. | ||||
| 15424 | if (aExistingOp.mOriginMetadata.mOrigin != mOriginMetadata.mOrigin) { | ||||
| 15425 | return false; | ||||
| 15426 | } | ||||
| 15427 | |||||
| 15428 | // If the database ids don't overlap, the op doesn't need to wait. | ||||
| 15429 | if (aExistingOp.mDatabaseId.isSome() && mDatabaseId.isSome() && | ||||
| 15430 | aExistingOp.mDatabaseId.ref() != mDatabaseId.ref()) { | ||||
| 15431 | return false; | ||||
| 15432 | } | ||||
| 15433 | |||||
| 15434 | // mDatabaseId being nothing means that this is GetDatabasesOp which | ||||
| 15435 | // must be serialized with other GetDatabaseOps. | ||||
| 15436 | return aExistingOp.mDatabaseId.isNothing() == mDatabaseId.isNothing(); | ||||
| 15437 | } | ||||
| 15438 | |||||
| 15439 | // Run() assumes that the caller holds a strong reference to the object that | ||||
| 15440 | // can't be cleared while Run() is being executed. | ||||
| 15441 | // So if you call Run() directly (as opposed to dispatching to an event queue) | ||||
| 15442 | // you need to make sure there's such a reference. | ||||
| 15443 | // See bug 1356824 for more details. | ||||
| 15444 | NS_IMETHODIMPnsresult | ||||
| 15445 | FactoryOp::Run() { | ||||
| 15446 | const auto handleError = [this](const nsresult rv) { | ||||
| 15447 | if (mState != State::SendingResults) { | ||||
| 15448 | SetFailureCodeIfUnset(rv); | ||||
| 15449 | |||||
| 15450 | // Must set mState before dispatching otherwise we will race with the | ||||
| 15451 | // owning thread. | ||||
| 15452 | mState = State::SendingResults; | ||||
| 15453 | |||||
| 15454 | if (IsOnOwningThread()) { | ||||
| 15455 | SendResults(); | ||||
| 15456 | } else { | ||||
| 15457 | 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", 15458 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" ")"); do { MOZ_CrashSequence(__null, 15458); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 15458 | 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", 15458 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" ")"); do { MOZ_CrashSequence(__null, 15458); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15459 | } | ||||
| 15460 | } | ||||
| 15461 | }; | ||||
| 15462 | |||||
| 15463 | switch (mState) { | ||||
| 15464 | case State::Initial: | ||||
| 15465 | QM_WARNONLY_TRY(MOZ_TO_RESULT(Open()), handleError){auto tryResult1223 = (ToResult(Open())); static_assert(std:: is_empty_v<typename decltype(tryResult1223)::ok_type>); if ((__builtin_expect(!!(tryResult1223.isErr()), 0))) { auto tryTempError = tryResult1223.unwrapErr(); mozilla::dom::quota ::HandleError("ToResult(Open())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15465, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | ||||
| 15466 | break; | ||||
| 15467 | |||||
| 15468 | case State::DirectoryWorkOpen: | ||||
| 15469 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDirectoryWork()), handleError){auto tryResult1224 = (ToResult(DoDirectoryWork())); static_assert (std::is_empty_v<typename decltype(tryResult1224)::ok_type >); if ((__builtin_expect(!!(tryResult1224.isErr()), 0))) { auto tryTempError = tryResult1224.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DoDirectoryWork())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15469 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15470 | break; | ||||
| 15471 | |||||
| 15472 | case State::DirectoryWorkDone: | ||||
| 15473 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryWorkDone()), handleError){auto tryResult1225 = (ToResult(DirectoryWorkDone())); static_assert (std::is_empty_v<typename decltype(tryResult1225)::ok_type >); if ((__builtin_expect(!!(tryResult1225.isErr()), 0))) { auto tryTempError = tryResult1225.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryWorkDone())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15473 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15474 | break; | ||||
| 15475 | |||||
| 15476 | case State::DatabaseOpenPending: | ||||
| 15477 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DatabaseOpen()), handleError){auto tryResult1226 = (ToResult(DatabaseOpen())); static_assert (std::is_empty_v<typename decltype(tryResult1226)::ok_type >); if ((__builtin_expect(!!(tryResult1226.isErr()), 0))) { auto tryTempError = tryResult1226.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DatabaseOpen())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15477, mozilla::dom::quota::Severity::Warning); handleError (tryTempError); }}; | ||||
| 15478 | break; | ||||
| 15479 | |||||
| 15480 | case State::DatabaseWorkOpen: | ||||
| 15481 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DoDatabaseWork()), handleError){auto tryResult1227 = (ToResult(DoDatabaseWork())); static_assert (std::is_empty_v<typename decltype(tryResult1227)::ok_type >); if ((__builtin_expect(!!(tryResult1227.isErr()), 0))) { auto tryTempError = tryResult1227.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DoDatabaseWork())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15481 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15482 | break; | ||||
| 15483 | |||||
| 15484 | case State::BeginVersionChange: | ||||
| 15485 | QM_WARNONLY_TRY(MOZ_TO_RESULT(BeginVersionChange()), handleError){auto tryResult1228 = (ToResult(BeginVersionChange())); static_assert (std::is_empty_v<typename decltype(tryResult1228)::ok_type >); if ((__builtin_expect(!!(tryResult1228.isErr()), 0))) { auto tryTempError = tryResult1228.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(BeginVersionChange())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15485 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15486 | break; | ||||
| 15487 | |||||
| 15488 | case State::WaitingForTransactionsToComplete: | ||||
| 15489 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DispatchToWorkThread()), handleError){auto tryResult1229 = (ToResult(DispatchToWorkThread())); static_assert (std::is_empty_v<typename decltype(tryResult1229)::ok_type >); if ((__builtin_expect(!!(tryResult1229.isErr()), 0))) { auto tryTempError = tryResult1229.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DispatchToWorkThread())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15489 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15490 | break; | ||||
| 15491 | |||||
| 15492 | case State::DatabaseWorkVersionUpdate: | ||||
| 15493 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DoVersionUpdate()), handleError){auto tryResult1230 = (ToResult(DoVersionUpdate())); static_assert (std::is_empty_v<typename decltype(tryResult1230)::ok_type >); if ((__builtin_expect(!!(tryResult1230.isErr()), 0))) { auto tryTempError = tryResult1230.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DoVersionUpdate())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15493 , mozilla::dom::quota::Severity::Warning); handleError(tryTempError ); }}; | ||||
| 15494 | break; | ||||
| 15495 | |||||
| 15496 | case State::SendingResults: | ||||
| 15497 | SendResults(); | ||||
| 15498 | break; | ||||
| 15499 | |||||
| 15500 | default: | ||||
| 15501 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15501); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { MOZ_CrashSequence(__null, 15501); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 15502 | } | ||||
| 15503 | |||||
| 15504 | return NS_OK; | ||||
| 15505 | } | ||||
| 15506 | |||||
| 15507 | void FactoryOp::DirectoryLockAcquired(ClientDirectoryLockHandle aLockHandle) { | ||||
| 15508 | AssertIsOnOwningThread(); | ||||
| 15509 | 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" , 15509); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aLockHandle" ")"); do { MOZ_CrashSequence(__null, 15509); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15510 | 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", 15510 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 15510); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15511 | 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", 15511 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 15511); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15512 | |||||
| 15513 | mDirectoryLockHandle = std::move(aLockHandle); | ||||
| 15514 | |||||
| 15515 | 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", 15515 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle->Id() >= 0" ")"); do { MOZ_CrashSequence(__null, 15515); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15516 | mDirectoryLockId = mDirectoryLockHandle->Id(); | ||||
| 15517 | |||||
| 15518 | auto cleanupAndReturn = [self = RefPtr(this)](const nsresult rv) { | ||||
| 15519 | self->SetFailureCodeIfUnset(rv); | ||||
| 15520 | |||||
| 15521 | // The caller holds a strong reference to us, no need for a self reference | ||||
| 15522 | // before calling Run(). | ||||
| 15523 | |||||
| 15524 | self->mState = State::SendingResults; | ||||
| 15525 | 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" , 15525); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(self->Run())" ")"); do { MOZ_CrashSequence(__null, 15525); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15526 | }; | ||||
| 15527 | |||||
| 15528 | if (mDirectoryLockHandle->Invalidated()) { | ||||
| 15529 | return cleanupAndReturn(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 15530 | } | ||||
| 15531 | |||||
| 15532 | QM_WARNONLY_TRY(MOZ_TO_RESULT(DirectoryOpen()), cleanupAndReturn){auto tryResult1231 = (ToResult(DirectoryOpen())); static_assert (std::is_empty_v<typename decltype(tryResult1231)::ok_type >); if ((__builtin_expect(!!(tryResult1231.isErr()), 0))) { auto tryTempError = tryResult1231.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(DirectoryOpen())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15532, mozilla::dom::quota::Severity::Warning); cleanupAndReturn(tryTempError ); }}; | ||||
| 15533 | } | ||||
| 15534 | |||||
| 15535 | void FactoryOp::DirectoryLockFailed() { | ||||
| 15536 | AssertIsOnOwningThread(); | ||||
| 15537 | 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", 15537 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryOpenPending" ")"); do { MOZ_CrashSequence(__null, 15537); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15538 | 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", 15538 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 15538); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15539 | |||||
| 15540 | if (!HasFailed()) { | ||||
| 15541 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15541, idbInternalErrMsg.get()); } while (0); | ||||
| 15542 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 15543 | } | ||||
| 15544 | |||||
| 15545 | // The caller holds a strong reference to us, no need for a self reference | ||||
| 15546 | // before calling Run(). | ||||
| 15547 | |||||
| 15548 | mState = State::SendingResults; | ||||
| 15549 | 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" , 15549); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(Run())" ")"); do { MOZ_CrashSequence(__null, 15549); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15550 | } | ||||
| 15551 | |||||
| 15552 | nsresult FactoryRequestOp::DoDirectoryWork() { | ||||
| 15553 | 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", 15553 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 15553); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 15554 | } | ||||
| 15555 | |||||
| 15556 | void FactoryRequestOp::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 15557 | AssertIsOnBackgroundThread(); | ||||
| 15558 | |||||
| 15559 | NoteActorDestroyed(); | ||||
| 15560 | } | ||||
| 15561 | |||||
| 15562 | OpenDatabaseOp::OpenDatabaseOp(SafeRefPtr<Factory> aFactory, | ||||
| 15563 | const Maybe<ContentParentId>& aContentParentId, | ||||
| 15564 | const CommonFactoryRequestParams& aParams) | ||||
| 15565 | : FactoryRequestOp(std::move(aFactory), aContentParentId, aParams, | ||||
| 15566 | /* aDeleting */ false), | ||||
| 15567 | mMetadata(MakeSafeRefPtr<FullDatabaseMetadata>(aParams.metadata())), | ||||
| 15568 | mRequestedVersion(aParams.metadata().version()), | ||||
| 15569 | mVersionChangeOp(nullptr), | ||||
| 15570 | mTelemetryId(0) {} | ||||
| 15571 | |||||
| 15572 | void OpenDatabaseOp::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 15573 | AssertIsOnOwningThread(); | ||||
| 15574 | |||||
| 15575 | FactoryRequestOp::ActorDestroy(aWhy); | ||||
| 15576 | |||||
| 15577 | if (mVersionChangeOp) { | ||||
| 15578 | mVersionChangeOp->NoteActorDestroyed(); | ||||
| 15579 | } | ||||
| 15580 | } | ||||
| 15581 | |||||
| 15582 | nsresult OpenDatabaseOp::DatabaseOpen() { | ||||
| 15583 | AssertIsOnOwningThread(); | ||||
| 15584 | 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" , 15584); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { MOZ_CrashSequence(__null, 15584); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15585 | |||||
| 15586 | nsresult rv = SendToIOThread(); | ||||
| 15587 | 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" , 15587)) { | ||||
| 15588 | return rv; | ||||
| 15589 | } | ||||
| 15590 | |||||
| 15591 | return NS_OK; | ||||
| 15592 | } | ||||
| 15593 | |||||
| 15594 | nsresult OpenDatabaseOp::DoDatabaseWork() { | ||||
| 15595 | AssertIsOnIOThread(); | ||||
| 15596 | 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" , 15596); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 15596); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15597 | |||||
| 15598 | AUTO_PROFILER_LABEL("OpenDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject15598( "OpenDatabaseOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 15599 | |||||
| 15600 | QM_TRY(OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread()),{auto tryResult1232 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult1232 )::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr ()), 0))) { auto tryTempError = tryResult1232.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15601, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15601, 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); }} | ||||
| 15601 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1232 = (OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread ())); static_assert(std::is_empty_v<typename decltype(tryResult1232 )::ok_type>); if ((__builtin_expect(!!(tryResult1232.isErr ()), 0))) { auto tryTempError = tryResult1232.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!QuotaClient::IsShuttingDownOnNonBackgroundThread())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15601, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15601, 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); }}; | ||||
| 15602 | |||||
| 15603 | if (!OperationMayProceed()) { | ||||
| 15604 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15604, idbInternalErrMsg.get()); } while (0); | ||||
| 15605 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 15606 | } | ||||
| 15607 | |||||
| 15608 | const nsAString& databaseName = mCommonParams.metadata().name(); | ||||
| 15609 | const PersistenceType persistenceType = | ||||
| 15610 | mCommonParams.metadata().persistenceType(); | ||||
| 15611 | |||||
| 15612 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 15613 | 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" , 15613); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 15613); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15614 | |||||
| 15615 | QM_TRY_INSPECT(auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15616 | const auto& dbDirectory,auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15617 | ([persistenceType, "aManager,auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15618 | this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15619 | if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15620 | QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15621 | }auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15622 | |||||
| 15623 | QM_TRY_RETURN(auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15624 | quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect(); | ||||
| 15625 | }()))auto tryResult1235 = (([persistenceType, "aManager, this ]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult > { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { { auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1233.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233 ;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1234.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234 ;}; }())); if ((__builtin_expect(!!(tryResult1235.isErr()), 0 ))) { mozilla::dom::quota::HandleError("([persistenceType, "aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (persistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1233 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1233.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1233.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15620, mozilla::dom::quota::Severity::Error); } return tryResult1233;}; } {auto tryResult1234 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1234.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1234.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15624, mozilla::dom::quota::Severity::Error); } return tryResult1234;}; }())" , tryResult1235.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15625, mozilla::dom::quota::Severity::Error); return tryResult1235 .propagateErr(); } const auto& dbDirectory = tryResult1235 .inspect();; | ||||
| 15626 | |||||
| 15627 | QM_TRY(MOZ_TO_RESULT({auto tryResult1236 = (ToResult(dbDirectory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1236 )::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult1236 .propagateErr(); }} | ||||
| 15628 | dbDirectory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1236 = (ToResult(dbDirectory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1236 )::ok_type>); if ((__builtin_expect(!!(tryResult1236.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(dbDirectory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1236.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15628, mozilla::dom::quota::Severity::Error); return tryResult1236 .propagateErr(); }}; | ||||
| 15629 | |||||
| 15630 | { | ||||
| 15631 | QM_TRY_INSPECT(const bool& exists,auto tryResult1237 = (::mozilla::ToResultInvokeMember( (dbDirectory ), &::mozilla::detail::DerefedType<decltype(dbDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1237.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists )" , tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15632, mozilla::dom::quota::Severity::Error); return tryResult1237 .propagateErr(); } const bool& exists = tryResult1237.inspect (); | ||||
| 15632 | MOZ_TO_RESULT_INVOKE_MEMBER(dbDirectory, Exists))auto tryResult1237 = (::mozilla::ToResultInvokeMember( (dbDirectory ), &::mozilla::detail::DerefedType<decltype(dbDirectory )>::Exists )); if ((__builtin_expect(!!(tryResult1237.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbDirectory), &::mozilla::detail::DerefedType<decltype(dbDirectory)>::Exists )" , tryResult1237.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15632, mozilla::dom::quota::Severity::Error); return tryResult1237 .propagateErr(); } const bool& exists = tryResult1237.inspect ();; | ||||
| 15633 | |||||
| 15634 | if (!exists) { | ||||
| 15635 | QM_TRY(MOZ_TO_RESULT(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))){auto tryResult1238 = (ToResult(dbDirectory->Create(nsIFile ::DIRECTORY_TYPE, 0755))); static_assert(std::is_empty_v<typename decltype(tryResult1238)::ok_type>); if ((__builtin_expect (!!(tryResult1238.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(dbDirectory->Create(nsIFile::DIRECTORY_TYPE, 0755))" , tryResult1238.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15635, mozilla::dom::quota::Severity::Error); return tryResult1238 .propagateErr(); }}; | ||||
| 15636 | } | ||||
| 15637 | #ifdef DEBUG1 | ||||
| 15638 | else { | ||||
| 15639 | bool isDirectory; | ||||
| 15640 | 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", 15640 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(dbDirectory->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 15640); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15641 | 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" , 15641); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 15641); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15642 | } | ||||
| 15643 | #endif | ||||
| 15644 | } | ||||
| 15645 | |||||
| 15646 | QM_TRY_INSPECT(const auto& markerFile,auto tryResult1239 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)); if ((__builtin_expect(!!(tryResult1239 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)" , tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult1239 .propagateErr(); } const auto& markerFile = tryResult1239 .inspect(); | ||||
| 15647 | CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix +auto tryResult1239 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)); if ((__builtin_expect(!!(tryResult1239 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)" , tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult1239 .propagateErr(); } const auto& markerFile = tryResult1239 .inspect(); | ||||
| 15648 | *mDatabaseFilenameBase))auto tryResult1239 = (CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)); if ((__builtin_expect(!!(tryResult1239 .isErr()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, kIdbDeletionMarkerFilePrefix + *mDatabaseFilenameBase)" , tryResult1239.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15648, mozilla::dom::quota::Severity::Error); return tryResult1239 .propagateErr(); } const auto& markerFile = tryResult1239 .inspect();; | ||||
| 15649 | |||||
| 15650 | QM_TRY_INSPECT(const bool& exists,auto tryResult1240 = (::mozilla::ToResultInvokeMember( (markerFile ), &::mozilla::detail::DerefedType<decltype(markerFile )>::Exists )); if ((__builtin_expect(!!(tryResult1240.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists )" , tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15651, mozilla::dom::quota::Severity::Error); return tryResult1240 .propagateErr(); } const bool& exists = tryResult1240.inspect (); | ||||
| 15651 | MOZ_TO_RESULT_INVOKE_MEMBER(markerFile, Exists))auto tryResult1240 = (::mozilla::ToResultInvokeMember( (markerFile ), &::mozilla::detail::DerefedType<decltype(markerFile )>::Exists )); if ((__builtin_expect(!!(tryResult1240.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (markerFile), &::mozilla::detail::DerefedType<decltype(markerFile)>::Exists )" , tryResult1240.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15651, mozilla::dom::quota::Severity::Error); return tryResult1240 .propagateErr(); } const bool& exists = tryResult1240.inspect ();; | ||||
| 15652 | |||||
| 15653 | if (exists) { | ||||
| 15654 | // Delete the database and directroy since they should be deleted in | ||||
| 15655 | // previous operation. | ||||
| 15656 | // Note: only update usage to the QuotaManager when mEnforcingQuota == true | ||||
| 15657 | QM_TRY(MOZ_TO_RESULT(RemoveDatabaseFilesAndDirectory({auto tryResult1241 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult1241 )::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult1241.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15660, mozilla::dom::quota::Severity::Error); return tryResult1241 .propagateErr(); }} | ||||
| 15658 | *dbDirectory, *mDatabaseFilenameBase,{auto tryResult1241 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult1241 )::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult1241.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15660, mozilla::dom::quota::Severity::Error); return tryResult1241 .propagateErr(); }} | ||||
| 15659 | mEnforcingQuota ? quotaManager : nullptr, persistenceType,{auto tryResult1241 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult1241 )::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult1241.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15660, mozilla::dom::quota::Severity::Error); return tryResult1241 .propagateErr(); }} | ||||
| 15660 | mOriginMetadata, databaseName))){auto tryResult1241 = (ToResult(RemoveDatabaseFilesAndDirectory ( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))) ; static_assert(std::is_empty_v<typename decltype(tryResult1241 )::ok_type>); if ((__builtin_expect(!!(tryResult1241.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveDatabaseFilesAndDirectory( *dbDirectory, *mDatabaseFilenameBase, mEnforcingQuota ? quotaManager : nullptr, persistenceType, mOriginMetadata, databaseName))" , tryResult1241.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15660, mozilla::dom::quota::Severity::Error); return tryResult1241 .propagateErr(); }}; | ||||
| 15661 | } | ||||
| 15662 | |||||
| 15663 | QM_TRY_INSPECT(auto tryResult1242 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1242.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15665, mozilla::dom::quota::Severity::Error); return tryResult1242 .propagateErr(); } const auto& dbFile = tryResult1242.inspect (); | ||||
| 15664 | const auto& dbFile,auto tryResult1242 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1242.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15665, mozilla::dom::quota::Severity::Error); return tryResult1242 .propagateErr(); } const auto& dbFile = tryResult1242.inspect (); | ||||
| 15665 | CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult1242 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1242.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1242.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15665, mozilla::dom::quota::Severity::Error); return tryResult1242 .propagateErr(); } const auto& dbFile = tryResult1242.inspect ();; | ||||
| 15666 | |||||
| 15667 | mTelemetryId = TelemetryIdForFile(dbFile); | ||||
| 15668 | |||||
| 15669 | #ifdef DEBUG1 | ||||
| 15670 | { | ||||
| 15671 | QM_TRY_INSPECT(auto tryResult1243 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1243.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15673, mozilla::dom::quota::Severity::Error); return tryResult1243 .propagateErr(); } const auto& databaseFilePath = tryResult1243 .inspect(); | ||||
| 15672 | const auto& databaseFilePath,auto tryResult1243 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1243.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15673, mozilla::dom::quota::Severity::Error); return tryResult1243 .propagateErr(); } const auto& databaseFilePath = tryResult1243 .inspect(); | ||||
| 15673 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1243 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1243.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1243.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15673, mozilla::dom::quota::Severity::Error); return tryResult1243 .propagateErr(); } const auto& databaseFilePath = tryResult1243 .inspect();; | ||||
| 15674 | |||||
| 15675 | 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", 15675 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()" ")"); do { MOZ_CrashSequence(__null, 15675); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15676 | } | ||||
| 15677 | #endif | ||||
| 15678 | |||||
| 15679 | QM_TRY_INSPECT(auto tryResult1244 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult1244.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15682, mozilla::dom::quota::Severity::Error); return tryResult1244 .propagateErr(); } const auto& fmDirectory = tryResult1244 .inspect(); | ||||
| 15680 | const auto& fmDirectory,auto tryResult1244 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult1244.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15682, mozilla::dom::quota::Severity::Error); return tryResult1244 .propagateErr(); } const auto& fmDirectory = tryResult1244 .inspect(); | ||||
| 15681 | CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase +auto tryResult1244 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult1244.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15682, mozilla::dom::quota::Severity::Error); return tryResult1244 .propagateErr(); } const auto& fmDirectory = tryResult1244 .inspect(); | ||||
| 15682 | kFileManagerDirectoryNameSuffix))auto tryResult1244 = (CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1244.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*dbDirectory, *mDatabaseFilenameBase + kFileManagerDirectoryNameSuffix)" , tryResult1244.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15682, mozilla::dom::quota::Severity::Error); return tryResult1244 .propagateErr(); } const auto& fmDirectory = tryResult1244 .inspect();; | ||||
| 15683 | |||||
| 15684 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | ||||
| 15685 | 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" , 15685); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { MOZ_CrashSequence(__null, 15685); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 15686 | |||||
| 15687 | SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager( | ||||
| 15688 | persistenceType, mOriginMetadata.mOrigin, databaseName); | ||||
| 15689 | |||||
| 15690 | if (!fileManager) { | ||||
| 15691 | fileManager = MakeSafeRefPtr<DatabaseFileManager>( | ||||
| 15692 | persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(), | ||||
| 15693 | mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing); | ||||
| 15694 | } | ||||
| 15695 | |||||
| 15696 | Maybe<const CipherKey> maybeKey = | ||||
| 15697 | mInPrivateBrowsing | ||||
| 15698 | ? Some(fileManager->MutableCipherKeyManagerRef().Ensure()) | ||||
| 15699 | : Nothing(); | ||||
| 15700 | |||||
| 15701 | 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", 15701 ); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { MOZ_CrashSequence(__null, 15701); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15702 | |||||
| 15703 | QM_TRY_UNWRAP(auto tryResult1245 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1245.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15707, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1245.unwrap(); | ||||
| 15704 | NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1245 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1245.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15707, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1245.unwrap(); | ||||
| 15705 | CreateStorageConnection(*dbFile, *fmDirectory, databaseName,auto tryResult1245 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1245.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15707, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1245.unwrap(); | ||||
| 15706 | mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1245 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1245.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15707, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1245.unwrap(); | ||||
| 15707 | mTelemetryId, maybeKey))auto tryResult1245 = (CreateStorageConnection(*dbFile, *fmDirectory , databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId , maybeKey)); if ((__builtin_expect(!!(tryResult1245.isErr()) , 0))) { mozilla::dom::quota::HandleError("CreateStorageConnection(*dbFile, *fmDirectory, databaseName, mOriginMetadata.mOrigin, mDirectoryLockId, mTelemetryId, maybeKey)" , tryResult1245.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15707, mozilla::dom::quota::Severity::Error); return tryResult1245 .propagateErr(); } NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1245.unwrap();; | ||||
| 15708 | |||||
| 15709 | AutoSetProgressHandler asph; | ||||
| 15710 | QM_TRY(MOZ_TO_RESULT(asph.Register(*connection, this))){auto tryResult1246 = (ToResult(asph.Register(*connection, this ))); static_assert(std::is_empty_v<typename decltype(tryResult1246 )::ok_type>); if ((__builtin_expect(!!(tryResult1246.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(asph.Register(*connection, this))" , tryResult1246.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15710, mozilla::dom::quota::Severity::Error); return tryResult1246 .propagateErr(); }}; | ||||
| 15711 | |||||
| 15712 | QM_TRY(MOZ_TO_RESULT(LoadDatabaseInformation(*connection))){auto tryResult1247 = (ToResult(LoadDatabaseInformation(*connection ))); static_assert(std::is_empty_v<typename decltype(tryResult1247 )::ok_type>); if ((__builtin_expect(!!(tryResult1247.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadDatabaseInformation(*connection))" , tryResult1247.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15712, mozilla::dom::quota::Severity::Error); return tryResult1247 .propagateErr(); }}; | ||||
| 15713 | |||||
| 15714 | 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", 15714 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextObjectStoreId > mMetadata->mObjectStores.Count()" ")"); do { MOZ_CrashSequence(__null, 15714); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15715 | 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" , 15715); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mNextIndexId > 0" ")"); do { MOZ_CrashSequence(__null, 15715); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15716 | |||||
| 15717 | // See if we need to do a versionchange transaction | ||||
| 15718 | |||||
| 15719 | // Optional version semantics. | ||||
| 15720 | if (!mRequestedVersion) { | ||||
| 15721 | // If the requested version was not specified and the database was created, | ||||
| 15722 | // treat it as if version 1 were requested. | ||||
| 15723 | // Otherwise, treat it as if the current version were requested. | ||||
| 15724 | mRequestedVersion = mMetadata->mCommonMetadata.version() == 0 | ||||
| 15725 | ? 1 | ||||
| 15726 | : mMetadata->mCommonMetadata.version(); | ||||
| 15727 | } | ||||
| 15728 | |||||
| 15729 | QM_TRY(OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion),{auto tryResult1248 = (OkIf(mMetadata->mCommonMetadata.version () <= mRequestedVersion)); static_assert(std::is_empty_v< typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect (!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , 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(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }} | ||||
| 15730 | NS_ERROR_DOM_INDEXEDDB_VERSION_ERR){auto tryResult1248 = (OkIf(mMetadata->mCommonMetadata.version () <= mRequestedVersion)); static_assert(std::is_empty_v< typename decltype(tryResult1248)::ok_type>); if ((__builtin_expect (!!(tryResult1248.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1248.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , 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(mMetadata->mCommonMetadata.version() <= mRequestedVersion)" , tryTempError, NS_ERROR_DOM_INDEXEDDB_VERSION_ERR); }}; | ||||
| 15731 | |||||
| 15732 | if (!fileManager->Initialized()) { | ||||
| 15733 | QM_TRY(MOZ_TO_RESULT(fileManager->Init({auto tryResult1249 = (ToResult(fileManager->Init( fmDirectory , mMetadata->mCommonMetadata.version(), *connection))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))" , tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15734, mozilla::dom::quota::Severity::Error); return tryResult1249 .propagateErr(); }} | ||||
| 15734 | fmDirectory, mMetadata->mCommonMetadata.version(), *connection))){auto tryResult1249 = (ToResult(fileManager->Init( fmDirectory , mMetadata->mCommonMetadata.version(), *connection))); static_assert (std::is_empty_v<typename decltype(tryResult1249)::ok_type >); if ((__builtin_expect(!!(tryResult1249.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(fileManager->Init( fmDirectory, mMetadata->mCommonMetadata.version(), *connection))" , tryResult1249.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15734, mozilla::dom::quota::Severity::Error); return tryResult1249 .propagateErr(); }}; | ||||
| 15735 | |||||
| 15736 | idm->AddFileManager(fileManager.clonePtr()); | ||||
| 15737 | } | ||||
| 15738 | |||||
| 15739 | mFileManager = std::move(fileManager); | ||||
| 15740 | |||||
| 15741 | // Must close connection before dispatching otherwise we might race with the | ||||
| 15742 | // connection thread which needs to open the same database. | ||||
| 15743 | asph.Unregister(); | ||||
| 15744 | |||||
| 15745 | 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", 15745 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(connection->Close())" ")"); do { MOZ_CrashSequence(__null, 15745); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 15746 | |||||
| 15747 | SleepIfEnabled( | ||||
| 15748 | StaticPrefs::dom_indexedDB_databaseInitialization_pauseOnIOThreadMs()); | ||||
| 15749 | |||||
| 15750 | // Must set mState before dispatching otherwise we will race with the owning | ||||
| 15751 | // thread. | ||||
| 15752 | mState = (mMetadata->mCommonMetadata.version() == mRequestedVersion) | ||||
| 15753 | ? State::SendingResults | ||||
| 15754 | : State::BeginVersionChange; | ||||
| 15755 | |||||
| 15756 | QM_TRY(MOZ_TO_RESULT({auto tryResult1250 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect (!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15757, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }} | ||||
| 15757 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1250 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1250)::ok_type>); if ((__builtin_expect (!!(tryResult1250.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1250.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15757, mozilla::dom::quota::Severity::Error); return tryResult1250 .propagateErr(); }}; | ||||
| 15758 | |||||
| 15759 | return NS_OK; | ||||
| 15760 | } | ||||
| 15761 | |||||
| 15762 | nsresult OpenDatabaseOp::LoadDatabaseInformation( | ||||
| 15763 | mozIStorageConnection& aConnection) { | ||||
| 15764 | AssertIsOnIOThread(); | ||||
| 15765 | 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" , 15765); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { MOZ_CrashSequence(__null, 15765); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 15766 | |||||
| 15767 | { | ||||
| 15768 | // Load version information. | ||||
| 15769 | QM_TRY_INSPECT(auto tryResult1251 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15773, mozilla::dom::quota::Severity::Error); return tryResult1251 .propagateErr(); } const auto& stmt = tryResult1251.inspect (); | ||||
| 15770 | const auto& stmt,auto tryResult1251 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15773, mozilla::dom::quota::Severity::Error); return tryResult1251 .propagateErr(); } const auto& stmt = tryResult1251.inspect (); | ||||
| 15771 | CreateAndExecuteSingleStepStatement<auto tryResult1251 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15773, mozilla::dom::quota::Severity::Error); return tryResult1251 .propagateErr(); } const auto& stmt = tryResult1251.inspect (); | ||||
| 15772 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1251 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15773, mozilla::dom::quota::Severity::Error); return tryResult1251 .propagateErr(); } const auto& stmt = tryResult1251.inspect (); | ||||
| 15773 | aConnection, "SELECT name, origin, version FROM database"_ns))auto tryResult1251 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, "SELECT name, origin, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1251.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection, \"SELECT name, origin, version FROM database\"_ns)" , tryResult1251.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15773, mozilla::dom::quota::Severity::Error); return tryResult1251 .propagateErr(); } const auto& stmt = tryResult1251.inspect ();; | ||||
| 15774 | |||||
| 15775 | QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1252 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult1252)::ok_type>); if ((__builtin_expect (!!(tryResult1252.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1252.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15775, 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); }}; | ||||
| 15776 | |||||
| 15777 | QM_TRY_INSPECT(const auto& databaseName, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1253 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15778, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const auto& databaseName = tryResult1253 .inspect(); | ||||
| 15778 | nsString, stmt, GetString, 0))auto tryResult1253 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1253.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1253.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15778, mozilla::dom::quota::Severity::Error); return tryResult1253 .propagateErr(); } const auto& databaseName = tryResult1253 .inspect();; | ||||
| 15779 | |||||
| 15780 | QM_TRY(OkIf(mCommonParams.metadata().name() == databaseName),{auto tryResult1254 = (OkIf(mCommonParams.metadata().name() == databaseName)); static_assert(std::is_empty_v<typename decltype (tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1254 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mCommonParams.metadata().name() == databaseName)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, 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); }} | ||||
| 15781 | NS_ERROR_FILE_CORRUPTED){auto tryResult1254 = (OkIf(mCommonParams.metadata().name() == databaseName)); static_assert(std::is_empty_v<typename decltype (tryResult1254)::ok_type>); if ((__builtin_expect(!!(tryResult1254 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1254 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mCommonParams.metadata().name() == databaseName)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15781, 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); }}; | ||||
| 15782 | |||||
| 15783 | QM_TRY_INSPECT(const auto& origin, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1255 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)" , tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15784, mozilla::dom::quota::Severity::Error); return tryResult1255 .propagateErr(); } const auto& origin = tryResult1255.inspect (); | ||||
| 15784 | nsCString, stmt, GetUTF8String, 1))auto tryResult1255 = (::mozilla::ToResultInvoke< nsCString >( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetUTF8String), (stmt), 1)); if ((__builtin_expect (!!(tryResult1255.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsCString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetUTF8String), (stmt), 1)" , tryResult1255.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15784, mozilla::dom::quota::Severity::Error); return tryResult1255 .propagateErr(); } const auto& origin = tryResult1255.inspect ();; | ||||
| 15785 | |||||
| 15786 | // We can't just compare these strings directly. See bug 1339081 comment 69. | ||||
| 15787 | QM_TRY(OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin,{auto tryResult1256 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect (!!(tryResult1256.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1256.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, 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); }} | ||||
| 15788 | origin)),{auto tryResult1256 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect (!!(tryResult1256.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1256.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, 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); }} | ||||
| 15789 | NS_ERROR_FILE_CORRUPTED){auto tryResult1256 = (OkIf(QuotaManager::AreOriginsEqualOnDisk (mOriginMetadata.mOrigin, origin))); static_assert(std::is_empty_v <typename decltype(tryResult1256)::ok_type>); if ((__builtin_expect (!!(tryResult1256.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1256.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(QuotaManager::AreOriginsEqualOnDisk(mOriginMetadata.mOrigin, origin))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15789, 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); }}; | ||||
| 15790 | |||||
| 15791 | QM_TRY_INSPECT(const int64_t& version,auto tryResult1257 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 2)); if ((__builtin_expect(!!(tryResult1257.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 2)" , tryResult1257.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15792, mozilla::dom::quota::Severity::Error); return tryResult1257 .propagateErr(); } const int64_t& version = tryResult1257 .inspect(); | ||||
| 15792 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 2))auto tryResult1257 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 2)); if ((__builtin_expect(!!(tryResult1257.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 2)" , tryResult1257.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15792, mozilla::dom::quota::Severity::Error); return tryResult1257 .propagateErr(); } const int64_t& version = tryResult1257 .inspect();; | ||||
| 15793 | |||||
| 15794 | mMetadata->mCommonMetadata.version() = uint64_t(version); | ||||
| 15795 | } | ||||
| 15796 | |||||
| 15797 | ObjectStoreTable& objectStores = mMetadata->mObjectStores; | ||||
| 15798 | |||||
| 15799 | QM_TRY_INSPECT(auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15800 | const auto& lastObjectStoreId,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15801 | ([&aConnection,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15802 | &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15803 | // Load object store names and ids.auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15804 | QM_TRY_INSPECT(auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15805 | const auto& stmt,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15806 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15807 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15808 | "SELECT id, auto_increment, name, key_path "auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15809 | "FROM object_store"_ns));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15810 | |||||
| 15811 | IndexOrObjectStoreId lastObjectStoreId = 0;auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15812 | |||||
| 15813 | QM_TRY(CollectWhileHasResult(auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15814 | *stmt,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15815 | [&lastObjectStoreId, &objectStores,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15816 | usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15817 | usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15818 | auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15819 | QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15820 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 0));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15821 | |||||
| 15822 | if (!usedIds) {auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15823 | usedIds.emplace();auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15824 | }auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15825 | |||||
| 15826 | QM_TRY(OkIf(objectStoreId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15827 | QM_TRY(OkIf(!usedIds.ref().Contains(objectStoreId)),auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15828 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15829 | |||||
| 15830 | QM_TRY(OkIf(usedIds.ref().Insert(objectStoreId, fallible)),auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15831 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15832 | |||||
| 15833 | nsString name;auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15834 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15835 | |||||
| 15836 | if (!usedNames) {auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15837 | usedNames.emplace();auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15838 | }auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15839 | |||||
| 15840 | QM_TRY(OkIf(!usedNames.ref().Contains(name)),auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15841 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15842 | |||||
| 15843 | QM_TRY(OkIf(usedNames.ref().Insert(name, fallible)),auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15844 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15845 | |||||
| 15846 | ObjectStoreMetadata commonMetadata;auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15847 | commonMetadata.id() = objectStoreId;auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15848 | commonMetadata.name() = std::move(name);auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15849 | |||||
| 15850 | QM_TRY_INSPECT(auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15851 | const int32_t& columnType,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15852 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetTypeOfIndex, 3));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15853 | |||||
| 15854 | if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) {auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15855 | commonMetadata.keyPath() = KeyPath(0);auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15856 | } else {auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15857 | MOZ_ASSERT(columnType == mozIStorageStatement::VALUE_TYPE_TEXT);auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15858 | |||||
| 15859 | nsString keyPathSerialization;auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15860 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15861 | |||||
| 15862 | commonMetadata.keyPath() =auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15863 | KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15864 | QM_TRY(OkIf(commonMetadata.keyPath().IsValid()),auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15865 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15866 | }auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15867 | |||||
| 15868 | QM_TRY_INSPECT(const int64_t& nextAutoIncrementId,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15869 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15870 | |||||
| 15871 | commonMetadata.autoIncrement() = !!nextAutoIncrementId;auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15872 | |||||
| 15873 | QM_TRY(OkIf(objectStores.InsertOrUpdate(auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15874 | objectStoreId,auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15875 | MakeSafeRefPtr<FullObjectStoreMetadata>(auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15876 | std::move(commonMetadata),auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15877 | FullObjectStoreMetadata::AutoIncrementIds{auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15878 | nextAutoIncrementId, nextAutoIncrementId}),auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15879 | fallible)),auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15880 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15881 | |||||
| 15882 | lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId);auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15883 | |||||
| 15884 | return Ok{};auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15885 | }));auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15886 | |||||
| 15887 | return lastObjectStoreId;auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect(); | ||||
| 15888 | }()))auto tryResult1272 = (([&aConnection, &objectStores]( ) -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT id, auto_increment, name, key_path " "FROM object_store"_ns)); if ((__builtin_expect(!!(tryResult1258 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)" , tryResult1258.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15809, mozilla::dom::quota::Severity::Error); return tryResult1258 .propagateErr(); } const auto& stmt = tryResult1258.inspect ();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, & objectStores, usedIds = Maybe<nsTHashSet<uint64_t>> {}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt ), &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)" , tryResult1259.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15820, mozilla::dom::quota::Severity::Error); return tryResult1259 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace( ); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert (std::is_empty_v<typename decltype(tryResult1260)::ok_type >); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(objectStoreId > 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreId > 0)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1261)::ok_type >); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(objectStoreId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1262)::ok_type >); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(objectStoreId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1263)::ok_type >); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1263.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15834, mozilla::dom::quota::Severity::Error); return tryResult1263 .propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name)) ); static_assert(std::is_empty_v<typename decltype(tryResult1264 )::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(name))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(name))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1265)::ok_type >); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(name, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata .name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)" , tryResult1266.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15852, mozilla::dom::quota::Severity::Error); return tryResult1266 .propagateErr(); } const int32_t& columnType = tryResult1266 .inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL ) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert ( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement ::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("columnType == mozIStorageStatement::VALUE_TYPE_TEXT", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15857); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType == mozIStorageStatement::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 15857); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString (3, keyPathSerialization))); static_assert(std::is_empty_v< typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect (!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetString(3, keyPathSerialization))", tryResult1267 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15860, mozilla::dom::quota::Severity::Error); return tryResult1267 .propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString (keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata .keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect (!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(commonMetadata.keyPath().IsValid())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(commonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla:: detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1269.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15869, mozilla::dom::quota::Severity::Error); return tryResult1269 .propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269 .inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId ; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId , MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata ), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId , nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v <typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect (!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; } )); static_assert(std::is_empty_v<typename decltype(tryResult1271 )::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })" , tryResult1271.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15885, mozilla::dom::quota::Severity::Error); return tryResult1271 .propagateErr(); }}; return lastObjectStoreId; }())); if ((__builtin_expect (!!(tryResult1272.isErr()), 0))) { mozilla::dom::quota::HandleError ("([&aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1258 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT id, auto_increment, name, key_path \" \"FROM object_store\"_ns)); if ((__builtin_expect(!!(tryResult1258.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT id, auto_increment, name, key_path \\\" \\\"FROM object_store\\\"_ns)\", tryResult1258.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15809, mozilla::dom::quota::Severity::Error); return tryResult1258.propagateErr(); } const auto& stmt = tryResult1258.inspect();; IndexOrObjectStoreId lastObjectStoreId = 0; {auto tryResult1271 = (CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\", tryResult1259.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(objectStoreId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1263.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(name))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(name))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(name, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\", tryResult1266.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15857); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\" \")\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1267.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(commonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1269.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1271)::ok_type>); if ((__builtin_expect(!!(tryResult1271.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [&lastObjectStoreId, &objectStores, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1259 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)); if ((__builtin_expect(!!(tryResult1259.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 0)\\\", tryResult1259.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15820, mozilla::dom::quota::Severity::Error); return tryResult1259.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1259.inspect();; if (!usedIds) { usedIds.emplace(); } {auto tryResult1260 = (OkIf(objectStoreId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1260)::ok_type>); if ((__builtin_expect(!!(tryResult1260.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1260.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStoreId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15826, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStoreId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1261 = (OkIf(!usedIds.ref().Contains(objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1261)::ok_type>); if ((__builtin_expect(!!(tryResult1261.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1261.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15828, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(objectStoreId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1262 = (OkIf(usedIds.ref().Insert(objectStoreId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1262)::ok_type>); if ((__builtin_expect(!!(tryResult1262.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1262.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15831, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(objectStoreId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1263 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1263)::ok_type>); if ((__builtin_expect(!!(tryResult1263.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1263.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15834, mozilla::dom::quota::Severity::Error); return tryResult1263.propagateErr(); }}; if (!usedNames) { usedNames.emplace(); } {auto tryResult1264 = (OkIf(!usedNames.ref().Contains(name))); static_assert(std::is_empty_v<typename decltype(tryResult1264)::ok_type>); if ((__builtin_expect(!!(tryResult1264.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1264.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15841, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(name))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1265 = (OkIf(usedNames.ref().Insert(name, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1265)::ok_type>); if ((__builtin_expect(!!(tryResult1265.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1265.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15844, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(name, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; ObjectStoreMetadata commonMetadata; commonMetadata.id() = objectStoreId; commonMetadata.name() = std::move(name); auto tryResult1266 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)); if ((__builtin_expect(!!(tryResult1266.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetTypeOfIndex , 3)\\\", tryResult1266.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15852, mozilla::dom::quota::Severity::Error); return tryResult1266.propagateErr(); } const int32_t& columnType = tryResult1266.inspect();; if (columnType == mozIStorageStatement::VALUE_TYPE_NULL) { commonMetadata.keyPath() = KeyPath(0); } else { do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType == mozIStorageStatement::VALUE_TYPE_TEXT)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType == mozIStorageStatement::VALUE_TYPE_TEXT))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15857); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType == mozIStorageStatement::VALUE_TYPE_TEXT\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15857); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); nsString keyPathSerialization; {auto tryResult1267 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1267)::ok_type>); if ((__builtin_expect(!!(tryResult1267.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1267.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15860, mozilla::dom::quota::Severity::Error); return tryResult1267.propagateErr(); }}; commonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1268 = (OkIf(commonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1268)::ok_type>); if ((__builtin_expect(!!(tryResult1268.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1268.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15865, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(commonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } auto tryResult1269 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1269.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1269.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15869, mozilla::dom::quota::Severity::Error); return tryResult1269.propagateErr(); } const int64_t& nextAutoIncrementId = tryResult1269.inspect();; commonMetadata.autoIncrement() = !!nextAutoIncrementId; {auto tryResult1270 = (OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1270)::ok_type>); if ((__builtin_expect(!!(tryResult1270.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1270.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15880, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(objectStores.InsertOrUpdate( objectStoreId, MakeSafeRefPtr<FullObjectStoreMetadata>( std::move(commonMetadata), FullObjectStoreMetadata::AutoIncrementIds{ nextAutoIncrementId, nextAutoIncrementId}), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastObjectStoreId = std::max(lastObjectStoreId, objectStoreId); return Ok{}; })\", tryResult1271.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15885, mozilla::dom::quota::Severity::Error); return tryResult1271.propagateErr(); }}; return lastObjectStoreId; }())" , tryResult1272.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15888, mozilla::dom::quota::Severity::Error); return tryResult1272 .propagateErr(); } const auto& lastObjectStoreId = tryResult1272 .inspect();; | ||||
| 15889 | |||||
| 15890 | QM_TRY_INSPECT(auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15891 | const auto& lastIndexId,auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15892 | ([this, &aConnection,auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15893 | &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> {auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15894 | // Load index informationauto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15895 | QM_TRY_INSPECT(auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15896 | const auto& stmt,auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15897 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15898 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15899 | "SELECT "auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15900 | "id, object_store_id, name, key_path, "auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15901 | "unique_index, multientry, "auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15902 | "locale, is_auto_locale "auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15903 | "FROM object_store_index"_ns));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15904 | |||||
| 15905 | IndexOrObjectStoreId lastIndexId = 0;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15906 | |||||
| 15907 | QM_TRY(CollectWhileHasResult(auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15908 | *stmt,auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15909 | [this, &lastIndexId, &objectStores, &aConnection,auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15910 | usedIds = Maybe<nsTHashSet<uint64_t>>{},auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15911 | usedNames = Maybe<nsTHashSet<nsString>>{}](auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15912 | auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15913 | QM_TRY_INSPECT(const IndexOrObjectStoreId& objectStoreId,auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15914 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15915 | |||||
| 15916 | auto objectStoreMetadata = objectStores.Lookup(objectStoreId);auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15917 | QM_TRY(OkIf(static_cast<bool>(objectStoreMetadata)),auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15918 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15919 | |||||
| 15920 | MOZ_ASSERT((*objectStoreMetadata)->mCommonMetadata.id() ==auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15921 | objectStoreId);auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15922 | |||||
| 15923 | IndexOrObjectStoreId indexId;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15924 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt64(0, &indexId)));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15925 | |||||
| 15926 | if (!usedIds) {auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15927 | usedIds.emplace();auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15928 | }auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15929 | |||||
| 15930 | QM_TRY(OkIf(indexId > 0), Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15931 | QM_TRY(OkIf(!usedIds.ref().Contains(indexId)),auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15932 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15933 | |||||
| 15934 | QM_TRY(OkIf(usedIds.ref().Insert(indexId, fallible)),auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15935 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15936 | |||||
| 15937 | nsString name;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15938 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(2, name)));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15939 | |||||
| 15940 | const nsAutoString hashName =auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15941 | IntToString(indexId) + u":"_ns + name;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15942 | |||||
| 15943 | if (!usedNames) {auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15944 | usedNames.emplace();auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15945 | }auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15946 | |||||
| 15947 | QM_TRY(OkIf(!usedNames.ref().Contains(hashName)),auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15948 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15949 | |||||
| 15950 | QM_TRY(OkIf(usedNames.ref().Insert(hashName, fallible)),auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15951 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15952 | |||||
| 15953 | auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>();auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15954 | indexMetadata->mCommonMetadata.id() = indexId;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15955 | indexMetadata->mCommonMetadata.name() = name;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15956 | |||||
| 15957 | #ifdef DEBUGauto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15958 | {auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15959 | int32_t columnType;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15960 | nsresult rv = stmt.GetTypeOfIndex(3, &columnType);auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15961 | MOZ_ASSERT(NS_SUCCEEDED(rv));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15962 | MOZ_ASSERT(columnType != mozIStorageStatement::VALUE_TYPE_NULL);auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15963 | }auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15964 | #endifauto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15965 | |||||
| 15966 | nsString keyPathSerialization;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15967 | QM_TRY(MOZ_TO_RESULT(stmt.GetString(3, keyPathSerialization)));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15968 | |||||
| 15969 | indexMetadata->mCommonMetadata.keyPath() =auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15970 | KeyPath::DeserializeFromString(keyPathSerialization);auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15971 | QM_TRY(OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid()),auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15972 | Err(NS_ERROR_FILE_CORRUPTED));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15973 | |||||
| 15974 | int32_t scratch;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15975 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(4, &scratch)));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15976 | |||||
| 15977 | indexMetadata->mCommonMetadata.unique() = !!scratch;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15978 | |||||
| 15979 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(5, &scratch)));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15980 | |||||
| 15981 | indexMetadata->mCommonMetadata.multiEntry() = !!scratch;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15982 | |||||
| 15983 | const bool localeAware = !stmt.IsNull(6);auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15984 | if (localeAware) {auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15985 | QM_TRY(MOZ_TO_RESULT(stmt.GetUTF8String(auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15986 | 6, indexMetadata->mCommonMetadata.locale())));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15987 | |||||
| 15988 | QM_TRY(MOZ_TO_RESULT(stmt.GetInt32(7, &scratch)));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15989 | |||||
| 15990 | indexMetadata->mCommonMetadata.autoLocale() = !!scratch;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15991 | |||||
| 15992 | // Update locale-aware indexes if necessaryauto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15993 | const nsCString& indexedLocale =auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15994 | indexMetadata->mCommonMetadata.locale();auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15995 | const bool& isAutoLocale =auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15996 | indexMetadata->mCommonMetadata.autoLocale();auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15997 | const nsCString& systemLocale = mFactory->GetSystemLocale();auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15998 | if (!systemLocale.IsEmpty() && isAutoLocale &&auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 15999 | !indexedLocale.Equals(systemLocale)) {auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16000 | QM_TRY(MOZ_TO_RESULT(UpdateLocaleAwareIndex(auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16001 | aConnection, indexMetadata->mCommonMetadata,auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16002 | systemLocale)));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16003 | }auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16004 | }auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16005 | |||||
| 16006 | QM_TRY(OkIf((*objectStoreMetadata)auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16007 | ->mIndexes.InsertOrUpdate(auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16008 | indexId, std::move(indexMetadata), fallible)),auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16009 | Err(NS_ERROR_OUT_OF_MEMORY));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16010 | |||||
| 16011 | lastIndexId = std::max(lastIndexId, indexId);auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16012 | |||||
| 16013 | return Ok{};auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16014 | }));auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16015 | |||||
| 16016 | return lastIndexId;auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect(); | ||||
| 16017 | }()))auto tryResult1292 = (([this, &aConnection, &objectStores ]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr <mozIStorageStatement> >( ::std::mem_fn( &::mozilla ::detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), "SELECT " "id, object_store_id, name, key_path, " "unique_index, multientry, " "locale, is_auto_locale " "FROM object_store_index"_ns )); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)" , tryResult1273.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15903, mozilla::dom::quota::Severity::Error); return tryResult1273 .propagateErr(); } const auto& stmt = tryResult1273.inspect ();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, & objectStores, &aConnection, usedIds = Maybe<nsTHashSet <uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString >>{}]( auto& stmt) mutable -> mozilla::Result< Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember ( (stmt), &::mozilla::detail::DerefedType<decltype(stmt )>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1274.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15914, mozilla::dom::quota::Severity::Error); return tryResult1274 .propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores .Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast <bool>(objectStoreMetadata))); static_assert(std::is_empty_v <typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect (!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(static_cast<bool>(objectStoreMetadata))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15918 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(static_cast<bool>(objectStoreMetadata))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert ( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata )->mCommonMetadata.id() == objectStoreId)>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata .id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15921 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId" ")"); do { MOZ_CrashSequence(__null, 15921); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, & indexId))); static_assert(std::is_empty_v<typename decltype (tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt64(0, &indexId))" , tryResult1276.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15924, mozilla::dom::quota::Severity::Error); return tryResult1276 .propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v <typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect (!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(indexId > 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexId > 0)", tryTempError , Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf (!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v <typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect (!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(!usedIds.ref().Contains(indexId))", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedIds.ref().Contains(indexId))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1279)::ok_type >); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedIds.ref().Insert(indexId, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name ; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert (std::is_empty_v<typename decltype(tryResult1280)::ok_type >); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetString(2, name))" , tryResult1280.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15938, mozilla::dom::quota::Severity::Error); return tryResult1280 .propagateErr(); }}; const nsAutoString hashName = IntToString (indexId) + u":"_ns + name; if (!usedNames) { usedNames.emplace (); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName ))); static_assert(std::is_empty_v<typename decltype(tryResult1281 )::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(!usedNames.ref().Contains(hashName))" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert (std::is_empty_v<typename decltype(tryResult1282)::ok_type >); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(usedNames.ref().Insert(hashName, fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata-> mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata .name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt .GetTypeOfIndex(3, &columnType); do { static_assert( mozilla ::detail::AssertionConditionType<decltype(((bool)(__builtin_expect (!!(!NS_FAILED_impl(rv)), 1))))>::isValid, "invalid assertion condition" ); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!( !NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure ("((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15961); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))" ")"); do { MOZ_CrashSequence(__null, 15961); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype (columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid , "invalid assertion condition"); if ((__builtin_expect(!!(!( !!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0) )) { do { } while (false); MOZ_ReportAssertionFailure("columnType != mozIStorageStatement::VALUE_TYPE_NULL" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15962 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "columnType != mozIStorageStatement::VALUE_TYPE_NULL" ")"); do { MOZ_CrashSequence(__null, 15962); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult (stmt.GetString(3, keyPathSerialization))); static_assert(std ::is_empty_v<typename decltype(tryResult1283)::ok_type> ); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.GetString(3, keyPathSerialization))" , tryResult1283.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15967, mozilla::dom::quota::Severity::Error); return tryResult1283 .propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath () = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath ().IsValid())); static_assert(std::is_empty_v<typename decltype (tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch ; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch ))); static_assert(std::is_empty_v<typename decltype(tryResult1285 )::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetInt32(4, &scratch))" , tryResult1285.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15975, mozilla::dom::quota::Severity::Error); return tryResult1285 .propagateErr(); }}; indexMetadata->mCommonMetadata.unique () = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32 (5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect (!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(5, &scratch))", tryResult1286.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15979 , mozilla::dom::quota::Severity::Error); return tryResult1286 .propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry () = !!scratch; const bool localeAware = !stmt.IsNull(6); if ( localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String ( 6, indexMetadata->mCommonMetadata.locale()))); static_assert (std::is_empty_v<typename decltype(tryResult1287)::ok_type >); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))" , tryResult1287.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 15986, mozilla::dom::quota::Severity::Error); return tryResult1287 .propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32 (7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect (!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.GetInt32(7, &scratch))", tryResult1288.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 15988 , mozilla::dom::quota::Severity::Error); return tryResult1288 .propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale () = !!scratch; const nsCString& indexedLocale = indexMetadata ->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString & systemLocale = mFactory->GetSystemLocale(); if (!systemLocale .IsEmpty() && isAutoLocale && !indexedLocale. Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex ( aConnection, indexMetadata->mCommonMetadata, systemLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1289 )::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))" , tryResult1289.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16002, mozilla::dom::quota::Severity::Error); return tryResult1289 .propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata ) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata ), fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))" , tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert (std::is_empty_v<typename decltype(tryResult1291)::ok_type >); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })" , tryResult1291.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16014, mozilla::dom::quota::Severity::Error); return tryResult1291 .propagateErr(); }}; return lastIndexId; }())); if ((__builtin_expect (!!(tryResult1292.isErr()), 0))) { mozilla::dom::quota::HandleError ("([this, &aConnection, &objectStores]() -> mozilla::Result<IndexOrObjectStoreId, nsresult> { auto tryResult1273 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"SELECT \" \"id, object_store_id, name, key_path, \" \"unique_index, multientry, \" \"locale, is_auto_locale \" \"FROM object_store_index\"_ns)); if ((__builtin_expect(!!(tryResult1273.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"SELECT \\\" \\\"id, object_store_id, name, key_path, \\\" \\\"unique_index, multientry, \\\" \\\"locale, is_auto_locale \\\" \\\"FROM object_store_index\\\"_ns)\", tryResult1273.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15903, mozilla::dom::quota::Severity::Error); return tryResult1273.propagateErr(); } const auto& stmt = tryResult1273.inspect();; IndexOrObjectStoreId lastIndexId = 0; {auto tryResult1291 = (CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\", tryResult1274.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(static_cast<bool>(objectStoreMetadata))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15921); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\" \")\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt64(0, &indexId))\", tryResult1276.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexId > 0)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexId > 0)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedIds.ref().Contains(indexId))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedIds.ref().Insert(indexId, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(2, name))\", tryResult1280.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\":\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!usedNames.ref().Contains(hashName))\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(usedNames.ref().Insert(hashName, fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15961); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\" \")\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \"invalid assertion condition\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\", \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15962); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"columnType != mozIStorageStatement::VALUE_TYPE_NULL\" \")\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetString(3, keyPathSerialization))\", tryResult1283.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(4, &scratch))\", tryResult1285.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(5, &scratch))\", tryResult1286.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\", tryResult1287.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.GetInt32(7, &scratch))\", tryResult1288.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\", tryResult1289.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })); static_assert(std::is_empty_v<typename decltype(tryResult1291)::ok_type>); if ((__builtin_expect(!!(tryResult1291.isErr()), 0))) { mozilla::dom::quota::HandleError(\"CollectWhileHasResult( *stmt, [this, &lastIndexId, &objectStores, &aConnection, usedIds = Maybe<nsTHashSet<uint64_t>>{}, usedNames = Maybe<nsTHashSet<nsString>>{}]( auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1274 = (::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1274.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)\\\", tryResult1274.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15914, mozilla::dom::quota::Severity::Error); return tryResult1274.propagateErr(); } const IndexOrObjectStoreId& objectStoreId = tryResult1274.inspect();; auto objectStoreMetadata = objectStores.Lookup(objectStoreId); {auto tryResult1275 = (OkIf(static_cast<bool>(objectStoreMetadata))); static_assert(std::is_empty_v<typename decltype(tryResult1275)::ok_type>); if ((__builtin_expect(!!(tryResult1275.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1275.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15918, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(static_cast<bool>(objectStoreMetadata))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; do { static_assert( mozilla::detail::AssertionConditionType<decltype((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!((*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15921); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"(*objectStoreMetadata)->mCommonMetadata.id() == objectStoreId\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15921); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); IndexOrObjectStoreId indexId; {auto tryResult1276 = (ToResult(stmt.GetInt64(0, &indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1276)::ok_type>); if ((__builtin_expect(!!(tryResult1276.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt64(0, &indexId))\\\", tryResult1276.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15924, mozilla::dom::quota::Severity::Error); return tryResult1276.propagateErr(); }}; if (!usedIds) { usedIds.emplace(); } {auto tryResult1277 = (OkIf(indexId > 0)); static_assert(std::is_empty_v<typename decltype(tryResult1277)::ok_type>); if ((__builtin_expect(!!(tryResult1277.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1277.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexId > 0)\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15930, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexId > 0)\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1278 = (OkIf(!usedIds.ref().Contains(indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1278)::ok_type>); if ((__builtin_expect(!!(tryResult1278.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1278.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15932, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedIds.ref().Contains(indexId))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1279 = (OkIf(usedIds.ref().Insert(indexId, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1279)::ok_type>); if ((__builtin_expect(!!(tryResult1279.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1279.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15935, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedIds.ref().Insert(indexId, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; nsString name; {auto tryResult1280 = (ToResult(stmt.GetString(2, name))); static_assert(std::is_empty_v<typename decltype(tryResult1280)::ok_type>); if ((__builtin_expect(!!(tryResult1280.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(2, name))\\\", tryResult1280.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15938, mozilla::dom::quota::Severity::Error); return tryResult1280.propagateErr(); }}; const nsAutoString hashName = IntToString(indexId) + u\\\":\\\"_ns + name; if (!usedNames) { usedNames.emplace(); } {auto tryResult1281 = (OkIf(!usedNames.ref().Contains(hashName))); static_assert(std::is_empty_v<typename decltype(tryResult1281)::ok_type>); if ((__builtin_expect(!!(tryResult1281.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1281.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15948, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(!usedNames.ref().Contains(hashName))\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; {auto tryResult1282 = (OkIf(usedNames.ref().Insert(hashName, fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1282)::ok_type>); if ((__builtin_expect(!!(tryResult1282.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1282.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15951, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(usedNames.ref().Insert(hashName, fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; auto indexMetadata = MakeSafeRefPtr<FullIndexMetadata>(); indexMetadata->mCommonMetadata.id() = indexId; indexMetadata->mCommonMetadata.name() = name;ifdef 1 { int32_t columnType; nsresult rv = stmt.GetTypeOfIndex(3, &columnType); do { static_assert( mozilla::detail::AssertionConditionType<decltype(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))))>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15961); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15961); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); do { static_assert( mozilla::detail::AssertionConditionType<decltype(columnType != mozIStorageStatement::VALUE_TYPE_NULL)>::isValid, \\\"invalid assertion condition\\\"); if ((__builtin_expect(!!(!(!!(columnType != mozIStorageStatement::VALUE_TYPE_NULL))), 0))) { do { } while (false); MOZ_ReportAssertionFailure(\\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\", \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15962); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"columnType != mozIStorageStatement::VALUE_TYPE_NULL\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 15962); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); }endif nsString keyPathSerialization; {auto tryResult1283 = (ToResult(stmt.GetString(3, keyPathSerialization))); static_assert(std::is_empty_v<typename decltype(tryResult1283)::ok_type>); if ((__builtin_expect(!!(tryResult1283.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetString(3, keyPathSerialization))\\\", tryResult1283.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15967, mozilla::dom::quota::Severity::Error); return tryResult1283.propagateErr(); }}; indexMetadata->mCommonMetadata.keyPath() = KeyPath::DeserializeFromString(keyPathSerialization); {auto tryResult1284 = (OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())); static_assert(std::is_empty_v<typename decltype(tryResult1284)::ok_type>); if ((__builtin_expect(!!(tryResult1284.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1284.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15972, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf(indexMetadata->mCommonMetadata.keyPath().IsValid())\\\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; int32_t scratch; {auto tryResult1285 = (ToResult(stmt.GetInt32(4, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1285)::ok_type>); if ((__builtin_expect(!!(tryResult1285.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(4, &scratch))\\\", tryResult1285.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15975, mozilla::dom::quota::Severity::Error); return tryResult1285.propagateErr(); }}; indexMetadata->mCommonMetadata.unique() = !!scratch; {auto tryResult1286 = (ToResult(stmt.GetInt32(5, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1286)::ok_type>); if ((__builtin_expect(!!(tryResult1286.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(5, &scratch))\\\", tryResult1286.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15979, mozilla::dom::quota::Severity::Error); return tryResult1286.propagateErr(); }}; indexMetadata->mCommonMetadata.multiEntry() = !!scratch; const bool localeAware = !stmt.IsNull(6); if (localeAware) { {auto tryResult1287 = (ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1287)::ok_type>); if ((__builtin_expect(!!(tryResult1287.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetUTF8String( 6, indexMetadata->mCommonMetadata.locale()))\\\", tryResult1287.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15986, mozilla::dom::quota::Severity::Error); return tryResult1287.propagateErr(); }}; {auto tryResult1288 = (ToResult(stmt.GetInt32(7, &scratch))); static_assert(std::is_empty_v<typename decltype(tryResult1288)::ok_type>); if ((__builtin_expect(!!(tryResult1288.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(stmt.GetInt32(7, &scratch))\\\", tryResult1288.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 15988, mozilla::dom::quota::Severity::Error); return tryResult1288.propagateErr(); }}; indexMetadata->mCommonMetadata.autoLocale() = !!scratch; const nsCString& indexedLocale = indexMetadata->mCommonMetadata.locale(); const bool& isAutoLocale = indexMetadata->mCommonMetadata.autoLocale(); const nsCString& systemLocale = mFactory->GetSystemLocale(); if (!systemLocale.IsEmpty() && isAutoLocale && !indexedLocale.Equals(systemLocale)) { {auto tryResult1289 = (ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1289)::ok_type>); if ((__builtin_expect(!!(tryResult1289.isErr()), 0))) { mozilla::dom::quota::HandleError(\\\"ToResult(UpdateLocaleAwareIndex( aConnection, indexMetadata->mCommonMetadata, systemLocale))\\\", tryResult1289.inspectErr(), \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16002, mozilla::dom::quota::Severity::Error); return tryResult1289.propagateErr(); }}; } } {auto tryResult1290 = (OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))); static_assert(std::is_empty_v<typename decltype(tryResult1290)::ok_type>); if ((__builtin_expect(!!(tryResult1290.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1290.unwrapErr(); mozilla::dom::quota::HandleError(\\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, \\\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\\\", 16009, mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \\\"OkIf((*objectStoreMetadata) ->mIndexes.InsertOrUpdate( indexId, std::move(indexMetadata), fallible))\\\", tryTempError, Err(NS_ERROR_OUT_OF_MEMORY)); }}; lastIndexId = std::max(lastIndexId, indexId); return Ok{}; })\", tryResult1291.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16014, mozilla::dom::quota::Severity::Error); return tryResult1291.propagateErr(); }}; return lastIndexId; }())" , tryResult1292.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16017, mozilla::dom::quota::Severity::Error); return tryResult1292 .propagateErr(); } const auto& lastIndexId = tryResult1292 .inspect();; | ||||
| 16018 | |||||
| 16019 | QM_TRY(OkIf(lastObjectStoreId != INT64_MAX),{auto tryResult1293 = (OkIf(lastObjectStoreId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult1293 )::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr ()), 0))) { auto tryTempError = tryResult1293.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16020, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16020, 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); }} | ||||
| 16020 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1293 = (OkIf(lastObjectStoreId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult1293 )::ok_type>); if ((__builtin_expect(!!(tryResult1293.isErr ()), 0))) { auto tryTempError = tryResult1293.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastObjectStoreId != (9223372036854775807L))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16020, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16020, 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); }}; | ||||
| 16021 | QM_TRY(OkIf(lastIndexId != INT64_MAX), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1294 = (OkIf(lastIndexId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult1294 )::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr ()), 0))) { auto tryTempError = tryResult1294.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16022, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16022, 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); }} | ||||
| 16022 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1294 = (OkIf(lastIndexId != (9223372036854775807L ))); static_assert(std::is_empty_v<typename decltype(tryResult1294 )::ok_type>); if ((__builtin_expect(!!(tryResult1294.isErr ()), 0))) { auto tryTempError = tryResult1294.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(lastIndexId != (9223372036854775807L))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16022, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16022, 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); }}; | ||||
| 16023 | |||||
| 16024 | mMetadata->mNextObjectStoreId = lastObjectStoreId + 1; | ||||
| 16025 | mMetadata->mNextIndexId = lastIndexId + 1; | ||||
| 16026 | |||||
| 16027 | return NS_OK; | ||||
| 16028 | } | ||||
| 16029 | |||||
| 16030 | /* static */ | ||||
| 16031 | nsresult OpenDatabaseOp::UpdateLocaleAwareIndex( | ||||
| 16032 | mozIStorageConnection& aConnection, const IndexMetadata& aIndexMetadata, | ||||
| 16033 | const nsCString& aLocale) { | ||||
| 16034 | const auto indexTable = | ||||
| 16035 | aIndexMetadata.unique() ? "unique_index_data"_ns : "index_data"_ns; | ||||
| 16036 | |||||
| 16037 | // The parameter names are not used, parameters are bound by index only | ||||
| 16038 | // locally in the same function. | ||||
| 16039 | const nsCString readQuery = "SELECT value, object_data_key FROM "_ns + | ||||
| 16040 | indexTable + " WHERE index_id = :index_id"_ns; | ||||
| 16041 | |||||
| 16042 | QM_TRY_INSPECT(const auto& readStmt,auto tryResult1295 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1295 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult1295 .propagateErr(); } const auto& readStmt = tryResult1295.inspect (); | ||||
| 16043 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1295 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1295 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult1295 .propagateErr(); } const auto& readStmt = tryResult1295.inspect (); | ||||
| 16044 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1295 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1295 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult1295 .propagateErr(); } const auto& readStmt = tryResult1295.inspect (); | ||||
| 16045 | CreateStatement, readQuery))auto tryResult1295 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), readQuery)); if ((__builtin_expect(!!(tryResult1295 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), readQuery)" , tryResult1295.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16045, mozilla::dom::quota::Severity::Error); return tryResult1295 .propagateErr(); } const auto& readStmt = tryResult1295.inspect ();; | ||||
| 16046 | |||||
| 16047 | QM_TRY(MOZ_TO_RESULT(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))){auto tryResult1296 = (ToResult(readStmt->BindInt64ByIndex (0, aIndexMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult1296)::ok_type>); if ((__builtin_expect (!!(tryResult1296.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(readStmt->BindInt64ByIndex(0, aIndexMetadata.id()))" , tryResult1296.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16047, mozilla::dom::quota::Severity::Error); return tryResult1296 .propagateErr(); }}; | ||||
| 16048 | |||||
| 16049 | QM_TRY(CollectWhileHasResult({auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16050 | *readStmt,{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16051 | [&aConnection, &indexTable, &aIndexMetadata, &aLocale,{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16052 | writeStmt = nsCOMPtr<mozIStorageStatement>{}]({auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16053 | auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16054 | if (!writeStmt) {{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16055 | QM_TRY_UNWRAP({auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16056 | writeStmt,{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16057 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED({auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16058 | nsCOMPtr<mozIStorageStatement>, aConnection, CreateStatement,{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16059 | "UPDATE "_ns + indexTable + "SET value_locale = :"_ns +{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16060 | kStmtParamNameValueLocale + " WHERE index_id = :"_ns +{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16061 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16062 | kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16063 | kStmtParamNameObjectDataKey));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16064 | }{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16065 | |||||
| 16066 | mozStorageStatementScoper scoper(writeStmt);{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16067 | QM_TRY(MOZ_TO_RESULT(writeStmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16068 | aIndexMetadata.id())));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16069 | |||||
| 16070 | Key oldKey, objectStorePosition;{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16071 | QM_TRY(MOZ_TO_RESULT(oldKey.SetFromStatement(&readStmt, 0)));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16072 | QM_TRY(MOZ_TO_RESULT({auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16073 | oldKey.BindToStatement(writeStmt, kStmtParamNameValue)));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16074 | |||||
| 16075 | QM_TRY_INSPECT(const auto& newSortKey,{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16076 | oldKey.ToLocaleAwareKey(aLocale));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16077 | |||||
| 16078 | QM_TRY(MOZ_TO_RESULT({auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16079 | newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale)));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16080 | QM_TRY({auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16081 | MOZ_TO_RESULT(objectStorePosition.SetFromStatement(&readStmt, 1)));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16082 | QM_TRY(MOZ_TO_RESULT(objectStorePosition.BindToStatement({auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16083 | writeStmt, kStmtParamNameObjectDataKey)));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16084 | |||||
| 16085 | QM_TRY(MOZ_TO_RESULT(writeStmt->Execute()));{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16086 | |||||
| 16087 | return Ok{};{auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }} | ||||
| 16088 | })){auto tryResult1306 = (CollectWhileHasResult( *readStmt, [& aConnection, &indexTable, &aIndexMetadata, &aLocale , writeStmt = nsCOMPtr<mozIStorageStatement>{}]( auto& readStmt) mutable -> mozilla::Result<Ok, nsresult> { if (!writeStmt) { auto tryResult1297 = (::mozilla::ToResultInvoke < nsCOMPtr<mozIStorageStatement> >( ::std::mem_fn ( &::mozilla::detail::DerefedType<decltype(aConnection )>::CreateStatement), (aConnection), "UPDATE "_ns + indexTable + "SET value_locale = :"_ns + kStmtParamNameValueLocale + " WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey )); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla ::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)" , tryResult1297.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16063, mozilla::dom::quota::Severity::Error); return tryResult1297 .propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt ->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id ()))); static_assert(std::is_empty_v<typename decltype(tryResult1298 )::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))" , tryResult1298.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16068, mozilla::dom::quota::Severity::Error); return tryResult1298 .propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1299)::ok_type >); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(oldKey.SetFromStatement(&readStmt, 0))" , tryResult1299.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16071, mozilla::dom::quota::Severity::Error); return tryResult1299 .propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement (writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v <typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect (!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))" , tryResult1300.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16073, mozilla::dom::quota::Severity::Error); return tryResult1300 .propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey (aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0 ))) { mozilla::dom::quota::HandleError("oldKey.ToLocaleAwareKey(aLocale)" , tryResult1301.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16076, mozilla::dom::quota::Severity::Error); return tryResult1301 .propagateErr(); } const auto& newSortKey = tryResult1301 .inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement (writeStmt, kStmtParamNameValueLocale))); static_assert(std:: is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))" , tryResult1302.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16079, mozilla::dom::quota::Severity::Error); return tryResult1302 .propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition .SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v <typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect (!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))" , tryResult1303.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16081, mozilla::dom::quota::Severity::Error); return tryResult1303 .propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition .BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert (std::is_empty_v<typename decltype(tryResult1304)::ok_type >); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))" , tryResult1304.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16083, mozilla::dom::quota::Severity::Error); return tryResult1304 .propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(writeStmt->Execute())" , tryResult1305.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16085, mozilla::dom::quota::Severity::Error); return tryResult1305 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1306)::ok_type>); if ((__builtin_expect (!!(tryResult1306.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 tryResult1297 = (::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \"UPDATE \"_ns + indexTable + \"SET value_locale = :\"_ns + kStmtParamNameValueLocale + \" WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey)); if ((__builtin_expect(!!(tryResult1297.isErr()), 0))) { mozilla::dom::quota::HandleError(\"::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), \\\"UPDATE \\\"_ns + indexTable + \\\"SET value_locale = :\\\"_ns + kStmtParamNameValueLocale + \\\" WHERE index_id = :\\\"_ns + kStmtParamNameIndexId + \\\" AND value = :\\\"_ns + kStmtParamNameValue + \\\" AND object_data_key = :\\\"_ns + kStmtParamNameObjectDataKey)\", tryResult1297.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16063, mozilla::dom::quota::Severity::Error); return tryResult1297.propagateErr(); } writeStmt = tryResult1297.unwrap();; } mozStorageStatementScoper scoper(writeStmt); {auto tryResult1298 = (ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1298)::ok_type>); if ((__builtin_expect(!!(tryResult1298.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->BindInt64ByName(kStmtParamNameIndexId, aIndexMetadata.id()))\", tryResult1298.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16068, mozilla::dom::quota::Severity::Error); return tryResult1298.propagateErr(); }}; Key oldKey, objectStorePosition; {auto tryResult1299 = (ToResult(oldKey.SetFromStatement(&readStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1299)::ok_type>); if ((__builtin_expect(!!(tryResult1299.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.SetFromStatement(&readStmt, 0))\", tryResult1299.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16071, mozilla::dom::quota::Severity::Error); return tryResult1299.propagateErr(); }}; {auto tryResult1300 = (ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1300)::ok_type>); if ((__builtin_expect(!!(tryResult1300.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(oldKey.BindToStatement(writeStmt, kStmtParamNameValue))\", tryResult1300.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16073, mozilla::dom::quota::Severity::Error); return tryResult1300.propagateErr(); }}; auto tryResult1301 = (oldKey.ToLocaleAwareKey(aLocale)); if ((__builtin_expect(!!(tryResult1301.isErr()), 0))) { mozilla::dom::quota::HandleError(\"oldKey.ToLocaleAwareKey(aLocale)\", tryResult1301.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16076, mozilla::dom::quota::Severity::Error); return tryResult1301.propagateErr(); } const auto& newSortKey = tryResult1301.inspect();; {auto tryResult1302 = (ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))); static_assert(std::is_empty_v<typename decltype(tryResult1302)::ok_type>); if ((__builtin_expect(!!(tryResult1302.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(newSortKey.BindToStatement(writeStmt, kStmtParamNameValueLocale))\", tryResult1302.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16079, mozilla::dom::quota::Severity::Error); return tryResult1302.propagateErr(); }}; {auto tryResult1303 = (ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1303)::ok_type>); if ((__builtin_expect(!!(tryResult1303.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.SetFromStatement(&readStmt, 1))\", tryResult1303.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16081, mozilla::dom::quota::Severity::Error); return tryResult1303.propagateErr(); }}; {auto tryResult1304 = (ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1304)::ok_type>); if ((__builtin_expect(!!(tryResult1304.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(objectStorePosition.BindToStatement( writeStmt, kStmtParamNameObjectDataKey))\", tryResult1304.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16083, mozilla::dom::quota::Severity::Error); return tryResult1304.propagateErr(); }}; {auto tryResult1305 = (ToResult(writeStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1305)::ok_type>); if ((__builtin_expect(!!(tryResult1305.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(writeStmt->Execute())\", tryResult1305.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16085, mozilla::dom::quota::Severity::Error); return tryResult1305.propagateErr(); }}; return Ok{}; })" , tryResult1306.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16088, mozilla::dom::quota::Severity::Error); return tryResult1306 .propagateErr(); }}; | ||||
| 16089 | |||||
| 16090 | // The parameter names are not used, parameters are bound by index only | ||||
| 16091 | // locally in the same function. | ||||
| 16092 | static constexpr auto metaQuery = | ||||
| 16093 | "UPDATE object_store_index SET " | ||||
| 16094 | "locale = :locale WHERE id = :id"_ns; | ||||
| 16095 | |||||
| 16096 | QM_TRY_INSPECT(const auto& metaStmt,auto tryResult1307 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1307 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16099, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); } const auto& metaStmt = tryResult1307.inspect (); | ||||
| 16097 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1307 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1307 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16099, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); } const auto& metaStmt = tryResult1307.inspect (); | ||||
| 16098 | nsCOMPtr<mozIStorageStatement>, aConnection,auto tryResult1307 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1307 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16099, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); } const auto& metaStmt = tryResult1307.inspect (); | ||||
| 16099 | CreateStatement, metaQuery))auto tryResult1307 = (::mozilla::ToResultInvoke< nsCOMPtr< mozIStorageStatement> >( ::std::mem_fn( &::mozilla:: detail::DerefedType<decltype(aConnection)>::CreateStatement ), (aConnection), metaQuery)); if ((__builtin_expect(!!(tryResult1307 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvoke< nsCOMPtr<mozIStorageStatement>>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(aConnection)>::CreateStatement), (aConnection), metaQuery)" , tryResult1307.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16099, mozilla::dom::quota::Severity::Error); return tryResult1307 .propagateErr(); } const auto& metaStmt = tryResult1307.inspect ();; | ||||
| 16100 | |||||
| 16101 | QM_TRY(MOZ_TO_RESULT({auto tryResult1308 = (ToResult(metaStmt->BindStringByIndex (0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v <typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect (!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))" , tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16102, mozilla::dom::quota::Severity::Error); return tryResult1308 .propagateErr(); }} | ||||
| 16102 | metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))){auto tryResult1308 = (ToResult(metaStmt->BindStringByIndex (0, NS_ConvertASCIItoUTF16(aLocale)))); static_assert(std::is_empty_v <typename decltype(tryResult1308)::ok_type>); if ((__builtin_expect (!!(tryResult1308.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindStringByIndex(0, NS_ConvertASCIItoUTF16(aLocale)))" , tryResult1308.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16102, mozilla::dom::quota::Severity::Error); return tryResult1308 .propagateErr(); }}; | ||||
| 16103 | |||||
| 16104 | QM_TRY(MOZ_TO_RESULT(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))){auto tryResult1309 = (ToResult(metaStmt->BindInt64ByIndex (1, aIndexMetadata.id()))); static_assert(std::is_empty_v< typename decltype(tryResult1309)::ok_type>); if ((__builtin_expect (!!(tryResult1309.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metaStmt->BindInt64ByIndex(1, aIndexMetadata.id()))" , tryResult1309.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16104, mozilla::dom::quota::Severity::Error); return tryResult1309 .propagateErr(); }}; | ||||
| 16105 | |||||
| 16106 | QM_TRY(MOZ_TO_RESULT(metaStmt->Execute())){auto tryResult1310 = (ToResult(metaStmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1310)::ok_type >); if ((__builtin_expect(!!(tryResult1310.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(metaStmt->Execute())" , tryResult1310.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16106, mozilla::dom::quota::Severity::Error); return tryResult1310 .propagateErr(); }}; | ||||
| 16107 | |||||
| 16108 | return NS_OK; | ||||
| 16109 | } | ||||
| 16110 | |||||
| 16111 | nsresult OpenDatabaseOp::BeginVersionChange() { | ||||
| 16112 | AssertIsOnOwningThread(); | ||||
| 16113 | 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" , 16113); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange" ")"); do { MOZ_CrashSequence(__null, 16113); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16114 | 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" , 16114); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16114); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16115 | 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", 16115 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mCommonMetadata.version() <= mRequestedVersion" ")"); do { MOZ_CrashSequence(__null, 16115); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16116 | 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" , 16116); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase" ")"); do { MOZ_CrashSequence(__null, 16116); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16117 | 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", 16117 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction" ")"); do { MOZ_CrashSequence(__null, 16117); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16118 | |||||
| 16119 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16119) || | ||||
| 16120 | IsActorDestroyed()) { | ||||
| 16121 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16121, idbInternalErrMsg.get()); } while (0); | ||||
| 16122 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1311 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult1311 )::ok_type>); if ((__builtin_expect(!!(tryResult1311.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult1311.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16122, mozilla::dom::quota::Severity::Error); return tryResult1311 .propagateErr(); }}; | ||||
| 16123 | } | ||||
| 16124 | |||||
| 16125 | EnsureDatabaseActor(); | ||||
| 16126 | |||||
| 16127 | if (mDatabase->IsInvalidated()) { | ||||
| 16128 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16128, idbInternalErrMsg.get()); } while (0); | ||||
| 16129 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1312 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult1312 )::ok_type>); if ((__builtin_expect(!!(tryResult1312.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult1312.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16129, mozilla::dom::quota::Severity::Error); return tryResult1312 .propagateErr(); }}; | ||||
| 16130 | } | ||||
| 16131 | |||||
| 16132 | 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", 16132 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabase->IsClosed()" ")"); do { MOZ_CrashSequence(__null, 16132); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16133 | |||||
| 16134 | DatabaseActorInfo* info; | ||||
| 16135 | 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", 16135 ); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")"); do { MOZ_CrashSequence(__null, 16135); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 16136 | |||||
| 16137 | 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", 16137 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())" ")"); do { MOZ_CrashSequence(__null, 16137); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16138 | 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", 16138 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16138); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16139 | 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" , 16139); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata" ")"); do { MOZ_CrashSequence(__null, 16139); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16140 | |||||
| 16141 | const Maybe<uint64_t> newVersion = Some(mRequestedVersion); | ||||
| 16142 | |||||
| 16143 | QM_TRY(MOZ_TO_RESULT(SendVersionChangeMessages({auto tryResult1313 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult1313.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16145, mozilla::dom::quota::Severity::Error); return tryResult1313 .propagateErr(); }} | ||||
| 16144 | info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(),{auto tryResult1313 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult1313.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16145, mozilla::dom::quota::Severity::Error); return tryResult1313 .propagateErr(); }} | ||||
| 16145 | newVersion))){auto tryResult1313 = (ToResult(SendVersionChangeMessages( info , mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version (), newVersion))); static_assert(std::is_empty_v<typename decltype (tryResult1313)::ok_type>); if ((__builtin_expect(!!(tryResult1313 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(SendVersionChangeMessages( info, mDatabase.maybeDeref(), mMetadata->mCommonMetadata.version(), newVersion))" , tryResult1313.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16145, mozilla::dom::quota::Severity::Error); return tryResult1313 .propagateErr(); }}; | ||||
| 16146 | |||||
| 16147 | if (mMaybeBlockedDatabases.IsEmpty()) { | ||||
| 16148 | // We don't need to wait on any databases, just jump to the transaction | ||||
| 16149 | // pool. | ||||
| 16150 | WaitForTransactions(); | ||||
| 16151 | return NS_OK; | ||||
| 16152 | } | ||||
| 16153 | |||||
| 16154 | // If the actor gets destroyed, mWaitingFactoryOp will hold the last strong | ||||
| 16155 | // reference to us. | ||||
| 16156 | info->mWaitingFactoryOp = this; | ||||
| 16157 | |||||
| 16158 | mState = State::WaitingForOtherDatabasesToClose; | ||||
| 16159 | return NS_OK; | ||||
| 16160 | } | ||||
| 16161 | |||||
| 16162 | bool OpenDatabaseOp::AreActorsAlive() { | ||||
| 16163 | AssertIsOnOwningThread(); | ||||
| 16164 | 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" , 16164); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 16164); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16165 | |||||
| 16166 | return !(IsActorDestroyed() || mDatabase->IsActorDestroyed()); | ||||
| 16167 | } | ||||
| 16168 | |||||
| 16169 | void OpenDatabaseOp::SendBlockedNotification() { | ||||
| 16170 | AssertIsOnOwningThread(); | ||||
| 16171 | 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", 16171 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { MOZ_CrashSequence(__null, 16171); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16172 | |||||
| 16173 | if (!IsActorDestroyed()) { | ||||
| 16174 | (void)SendBlocked(mMetadata->mCommonMetadata.version()); | ||||
| 16175 | } | ||||
| 16176 | } | ||||
| 16177 | |||||
| 16178 | nsresult OpenDatabaseOp::DispatchToWorkThread() { | ||||
| 16179 | AssertIsOnOwningThread(); | ||||
| 16180 | 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", 16180 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete" ")"); do { MOZ_CrashSequence(__null, 16180); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16181 | 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" , 16181); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16181); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16182 | // There's no other place which creates a version change transaction | ||||
| 16183 | // and sets mVersionChangeTransaction. | ||||
| 16184 | 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", 16184 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction" ")"); do { MOZ_CrashSequence(__null, 16184); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16185 | |||||
| 16186 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16186) || | ||||
| 16187 | IsActorDestroyed() || mDatabase->IsInvalidated()) { | ||||
| 16188 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16188, idbInternalErrMsg.get()); } while (0); | ||||
| 16189 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16190 | } | ||||
| 16191 | |||||
| 16192 | DatabaseActorInfo* info; | ||||
| 16193 | 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", 16193 ); AnnotateMozCrashReason("MOZ_CRASH(" "gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)" ")"); do { MOZ_CrashSequence(__null, 16193); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 16194 | |||||
| 16195 | 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", 16195 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mLiveDatabases.contains(mDatabase.unsafeGetRawPtr())" ")"); do { MOZ_CrashSequence(__null, 16195); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16196 | 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", 16196 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16196); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16197 | 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" , 16197); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata == mMetadata" ")"); do { MOZ_CrashSequence(__null, 16197); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16198 | |||||
| 16199 | auto transaction = MakeSafeRefPtr<VersionChangeTransaction>(this); | ||||
| 16200 | |||||
| 16201 | if (NS_WARN_IF(!transaction->CopyDatabaseMetadata())NS_warn_if_impl(!transaction->CopyDatabaseMetadata(), "!transaction->CopyDatabaseMetadata()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16201 )) { | ||||
| 16202 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 16203 | } | ||||
| 16204 | |||||
| 16205 | 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" , 16205); AnnotateMozCrashReason("MOZ_ASSERT" "(" "info->mMetadata != mMetadata" ")"); do { MOZ_CrashSequence(__null, 16205); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16206 | mMetadata = info->mMetadata.clonePtr(); | ||||
| 16207 | |||||
| 16208 | mVersionChangeTransaction = std::move(transaction); | ||||
| 16209 | |||||
| 16210 | 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", 16211 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 16211); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16211 | 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", 16211 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction->GetMode() == IDBTransaction::Mode::VersionChange" ")"); do { MOZ_CrashSequence(__null, 16211); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16212 | |||||
| 16213 | mState = State::DatabaseWorkVersionChange; | ||||
| 16214 | |||||
| 16215 | // Intentionally empty. | ||||
| 16216 | nsTArray<nsString> objectStoreNames; | ||||
| 16217 | |||||
| 16218 | const int64_t loggingSerialNumber = | ||||
| 16219 | mVersionChangeTransaction->LoggingSerialNumber(); | ||||
| 16220 | const nsID& backgroundChildLoggingId = | ||||
| 16221 | mVersionChangeTransaction->GetLoggingInfo()->Id(); | ||||
| 16222 | |||||
| 16223 | if (NS_WARN_IF(!mDatabase->RegisterTransaction(*mVersionChangeTransaction))NS_warn_if_impl(!mDatabase->RegisterTransaction(*mVersionChangeTransaction ), "!mDatabase->RegisterTransaction(*mVersionChangeTransaction)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 16223 )) { | ||||
| 16224 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 16225 | } | ||||
| 16226 | |||||
| 16227 | if (!gConnectionPool) { | ||||
| 16228 | gConnectionPool = new ConnectionPool(); | ||||
| 16229 | } | ||||
| 16230 | |||||
| 16231 | RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this); | ||||
| 16232 | |||||
| 16233 | uint64_t transactionId = versionChangeOp->StartOnConnectionPool( | ||||
| 16234 | backgroundChildLoggingId, mVersionChangeTransaction->DatabaseId(), | ||||
| 16235 | loggingSerialNumber, objectStoreNames, | ||||
| 16236 | /* aIsWriteTransaction */ true); | ||||
| 16237 | |||||
| 16238 | mVersionChangeOp = versionChangeOp; | ||||
| 16239 | |||||
| 16240 | versionChangeOp->NoteTransactionActiveRequest(); | ||||
| 16241 | mVersionChangeTransaction->Init(transactionId); | ||||
| 16242 | |||||
| 16243 | return NS_OK; | ||||
| 16244 | } | ||||
| 16245 | |||||
| 16246 | nsresult OpenDatabaseOp::SendUpgradeNeeded() { | ||||
| 16247 | AssertIsOnOwningThread(); | ||||
| 16248 | 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", 16248 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16248); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16249 | 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", 16249 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mVersionChangeTransaction" ")"); do { MOZ_CrashSequence(__null, 16249); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16250 | 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" , 16250); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16250); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16251 | 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" , 16251); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16251); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16252 | 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" , 16252); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 16252); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16253 | |||||
| 16254 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16254) || | ||||
| 16255 | IsActorDestroyed()) { | ||||
| 16256 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16256, idbInternalErrMsg.get()); } while (0); | ||||
| 16257 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16258 | } | ||||
| 16259 | |||||
| 16260 | const SafeRefPtr<VersionChangeTransaction> transaction = | ||||
| 16261 | std::move(mVersionChangeTransaction); | ||||
| 16262 | |||||
| 16263 | nsresult rv = EnsureDatabaseActorIsAlive(); | ||||
| 16264 | 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" , 16264)) { | ||||
| 16265 | return rv; | ||||
| 16266 | } | ||||
| 16267 | |||||
| 16268 | // Transfer ownership to IPDL. | ||||
| 16269 | transaction->SetActorAlive(); | ||||
| 16270 | |||||
| 16271 | if (!mDatabase->SendPBackgroundIDBVersionChangeTransactionConstructor( | ||||
| 16272 | transaction.unsafeGetRawPtr(), mMetadata->mCommonMetadata.version(), | ||||
| 16273 | mRequestedVersion, mMetadata->mNextObjectStoreId, | ||||
| 16274 | mMetadata->mNextIndexId)) { | ||||
| 16275 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16275, idbInternalErrMsg.get()); } while (0); | ||||
| 16276 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16277 | } | ||||
| 16278 | |||||
| 16279 | return NS_OK; | ||||
| 16280 | } | ||||
| 16281 | |||||
| 16282 | nsresult OpenDatabaseOp::DoVersionUpdate() { | ||||
| 16283 | AssertIsOnIOThread(); | ||||
| 16284 | 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", 16284 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionUpdate" ")"); do { MOZ_CrashSequence(__null, 16284); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16285 | 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" , 16285); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16285); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16286 | |||||
| 16287 | AUTO_PROFILER_LABEL("OpenDatabaseOp::DoVersionUpdate", DOM)mozilla::AutoProfilerLabel raiiObject16287( "OpenDatabaseOp::DoVersionUpdate" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16288 | |||||
| 16289 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16289) || | ||||
| 16290 | !OperationMayProceed()) { | ||||
| 16291 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16291, idbInternalErrMsg.get()); } while (0); | ||||
| 16292 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16293 | } | ||||
| 16294 | |||||
| 16295 | mFileManager->UpdateDatabaseVersion(mRequestedVersion); | ||||
| 16296 | |||||
| 16297 | mState = State::SendingResults; | ||||
| 16298 | |||||
| 16299 | QM_TRY(MOZ_TO_RESULT({auto tryResult1314 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect (!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16300, mozilla::dom::quota::Severity::Error); return tryResult1314 .propagateErr(); }} | ||||
| 16300 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1314 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1314)::ok_type>); if ((__builtin_expect (!!(tryResult1314.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1314.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16300, mozilla::dom::quota::Severity::Error); return tryResult1314 .propagateErr(); }}; | ||||
| 16301 | |||||
| 16302 | return NS_OK; | ||||
| 16303 | } | ||||
| 16304 | |||||
| 16305 | void OpenDatabaseOp::SendResults() { | ||||
| 16306 | AssertIsOnOwningThread(); | ||||
| 16307 | 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" , 16307); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16307); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16308 | 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" , 16308); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16308); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16309 | 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", 16309 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mVersionChangeTransaction" ")"); do { MOZ_CrashSequence(__null, 16309); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16310 | |||||
| 16311 | if (mCompleteCallback) { | ||||
| 16312 | auto completeCallback = std::move(mCompleteCallback); | ||||
| 16313 | completeCallback(); | ||||
| 16314 | } | ||||
| 16315 | |||||
| 16316 | DebugOnly<DatabaseActorInfo*> info = nullptr; | ||||
| 16317 | 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", 16319 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16319); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 16318 | 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", 16319 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16319); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 16319 | !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", 16319 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16319); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16320 | |||||
| 16321 | if (mVersionChangeTransaction) { | ||||
| 16322 | 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" , 16322); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16322); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16323 | |||||
| 16324 | mVersionChangeTransaction->Abort(ResultCode(), /* aForce */ true); | ||||
| 16325 | mVersionChangeTransaction = nullptr; | ||||
| 16326 | } | ||||
| 16327 | |||||
| 16328 | if (IsActorDestroyed()) { | ||||
| 16329 | SetFailureCodeIfUnset(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 16330 | } else { | ||||
| 16331 | FactoryRequestResponse response; | ||||
| 16332 | |||||
| 16333 | if (!HasFailed()) { | ||||
| 16334 | // If we just successfully completed a versionchange operation then we | ||||
| 16335 | // need to update the version in our metadata. | ||||
| 16336 | mMetadata->mCommonMetadata.version() = mRequestedVersion; | ||||
| 16337 | |||||
| 16338 | nsresult rv = EnsureDatabaseActorIsAlive(); | ||||
| 16339 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | ||||
| 16340 | // We successfully opened a database so use its actor as the success | ||||
| 16341 | // result for this request. | ||||
| 16342 | |||||
| 16343 | // XXX OpenDatabaseRequestResponse stores a raw pointer, can this be | ||||
| 16344 | // avoided? | ||||
| 16345 | response = OpenDatabaseRequestResponse{ | ||||
| 16346 | WrapNotNull(mDatabase.unsafeGetRawPtr())}; | ||||
| 16347 | } else { | ||||
| 16348 | response = ClampResultCode(rv); | ||||
| 16349 | #ifdef DEBUG1 | ||||
| 16350 | SetFailureCode(response.get_nsresult()); | ||||
| 16351 | #endif | ||||
| 16352 | } | ||||
| 16353 | } else { | ||||
| 16354 | #ifdef DEBUG1 | ||||
| 16355 | // If something failed then our metadata pointer is now bad. No one should | ||||
| 16356 | // ever touch it again though so just null it out in DEBUG builds to make | ||||
| 16357 | // sure we find such cases. | ||||
| 16358 | mMetadata = nullptr; | ||||
| 16359 | #endif | ||||
| 16360 | response = ClampResultCode(ResultCode()); | ||||
| 16361 | } | ||||
| 16362 | |||||
| 16363 | (void)PBackgroundIDBFactoryRequestParent::Send__delete__(this, response); | ||||
| 16364 | } | ||||
| 16365 | |||||
| 16366 | if (mDatabase) { | ||||
| 16367 | 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", 16367 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 16367); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16368 | |||||
| 16369 | if (HasFailed()) { | ||||
| 16370 | mDatabase->Invalidate(); | ||||
| 16371 | } | ||||
| 16372 | |||||
| 16373 | // Make sure to release the database on this thread. | ||||
| 16374 | mDatabase = nullptr; | ||||
| 16375 | |||||
| 16376 | CleanupMetadata(); | ||||
| 16377 | } else if (mDirectoryLockHandle) { | ||||
| 16378 | // ConnectionClosedCallback will call CleanupMetadata(). | ||||
| 16379 | nsCOMPtr<nsIRunnable> callback = NewRunnableMethod( | ||||
| 16380 | "dom::indexedDB::OpenDatabaseOp::ConnectionClosedCallback", this, | ||||
| 16381 | &OpenDatabaseOp::ConnectionClosedCallback); | ||||
| 16382 | |||||
| 16383 | RefPtr<WaitForTransactionsHelper> helper = | ||||
| 16384 | new WaitForTransactionsHelper(mDatabaseId.ref(), callback); | ||||
| 16385 | helper->WaitForTransactions(); | ||||
| 16386 | } else { | ||||
| 16387 | CleanupMetadata(); | ||||
| 16388 | } | ||||
| 16389 | |||||
| 16390 | FinishSendResults(); | ||||
| 16391 | } | ||||
| 16392 | |||||
| 16393 | void OpenDatabaseOp::ConnectionClosedCallback() { | ||||
| 16394 | AssertIsOnOwningThread(); | ||||
| 16395 | 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" , 16395); AnnotateMozCrashReason("MOZ_ASSERT" "(" "HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16395); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16396 | 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", 16396 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirectoryLockHandle" ")"); do { MOZ_CrashSequence(__null, 16396); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16397 | |||||
| 16398 | { | ||||
| 16399 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 16400 | } | ||||
| 16401 | |||||
| 16402 | CleanupMetadata(); | ||||
| 16403 | } | ||||
| 16404 | |||||
| 16405 | void OpenDatabaseOp::EnsureDatabaseActor() { | ||||
| 16406 | AssertIsOnOwningThread(); | ||||
| 16407 | 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", 16409 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16409); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16408 | 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", 16409 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16409); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16409 | 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", 16409 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange || mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16409); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16410 | 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" , 16410); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16410); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16411 | 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", 16411 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabaseFilePath.isSome()" ")"); do { MOZ_CrashSequence(__null, 16411); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16412 | 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", 16412 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 16412); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16413 | |||||
| 16414 | if (mDatabase) { | ||||
| 16415 | return; | ||||
| 16416 | } | ||||
| 16417 | |||||
| 16418 | 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" , 16418); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16418); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16419 | mMetadata->mDatabaseId = mDatabaseId.ref(); | ||||
| 16420 | |||||
| 16421 | 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" , 16421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata->mFilePath.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16421); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16422 | mMetadata->mFilePath = mDatabaseFilePath.ref(); | ||||
| 16423 | |||||
| 16424 | DatabaseActorInfo* info; | ||||
| 16425 | if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { | ||||
| 16426 | AssertMetadataConsistency(*info->mMetadata); | ||||
| 16427 | mMetadata = info->mMetadata.clonePtr(); | ||||
| 16428 | } | ||||
| 16429 | |||||
| 16430 | Maybe<const CipherKey> maybeKey = | ||||
| 16431 | mInPrivateBrowsing ? mFileManager->MutableCipherKeyManagerRef().Get() | ||||
| 16432 | : Nothing(); | ||||
| 16433 | |||||
| 16434 | 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", 16434 ); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { MOZ_CrashSequence(__null, 16434); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16435 | |||||
| 16436 | const bool directoryLockInvalidated = mDirectoryLockHandle->Invalidated(); | ||||
| 16437 | |||||
| 16438 | // XXX Shouldn't Manager() return already_AddRefed when | ||||
| 16439 | // PBackgroundIDBFactoryParent is declared refcounted? | ||||
| 16440 | mDatabase = MakeSafeRefPtr<Database>( | ||||
| 16441 | SafeRefPtr{static_cast<Factory*>(Manager()), | ||||
| 16442 | AcquireStrongRefFromRawPtr{}}, | ||||
| 16443 | mCommonParams.principalInfo(), mContentParentId, mOriginMetadata, | ||||
| 16444 | mTelemetryId, mMetadata.clonePtr(), mFileManager.clonePtr(), | ||||
| 16445 | std::move(mDirectoryLockHandle), mInPrivateBrowsing, maybeKey); | ||||
| 16446 | |||||
| 16447 | if (info) { | ||||
| 16448 | info->mLiveDatabases.insertBack(mDatabase.unsafeGetRawPtr()); | ||||
| 16449 | } else { | ||||
| 16450 | // XXX Maybe use LookupOrInsertWith above, to avoid a second lookup here? | ||||
| 16451 | info = gLiveDatabaseHashtable | ||||
| 16452 | ->InsertOrUpdate( | ||||
| 16453 | mDatabaseId.ref(), | ||||
| 16454 | MakeUnique<DatabaseActorInfo>( | ||||
| 16455 | mMetadata.clonePtr(), | ||||
| 16456 | WrapNotNullUnchecked(mDatabase.unsafeGetRawPtr()))) | ||||
| 16457 | .get(); | ||||
| 16458 | } | ||||
| 16459 | |||||
| 16460 | if (directoryLockInvalidated) { | ||||
| 16461 | mDatabase->Invalidate(); | ||||
| 16462 | } | ||||
| 16463 | |||||
| 16464 | // Balanced in Database::CleanupMetadata(). | ||||
| 16465 | IncreaseBusyCount(); | ||||
| 16466 | } | ||||
| 16467 | |||||
| 16468 | nsresult OpenDatabaseOp::EnsureDatabaseActorIsAlive() { | ||||
| 16469 | AssertIsOnOwningThread(); | ||||
| 16470 | 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", 16471 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16471); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16471 | 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", 16471 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkVersionChange || mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16471); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16472 | 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" , 16472); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 16472); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16473 | 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", 16473 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 16473); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16474 | |||||
| 16475 | EnsureDatabaseActor(); | ||||
| 16476 | |||||
| 16477 | if (mDatabase->IsActorAlive()) { | ||||
| 16478 | return NS_OK; | ||||
| 16479 | } | ||||
| 16480 | |||||
| 16481 | auto* const factory = static_cast<Factory*>(Manager()); | ||||
| 16482 | |||||
| 16483 | QM_TRY_INSPECT(const auto& spec, MetadataToSpec())auto tryResult1315 = (MetadataToSpec()); if ((__builtin_expect (!!(tryResult1315.isErr()), 0))) { mozilla::dom::quota::HandleError ("MetadataToSpec()", tryResult1315.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16483, mozilla::dom::quota::Severity::Error); return tryResult1315 .propagateErr(); } const auto& spec = tryResult1315.inspect ();; | ||||
| 16484 | |||||
| 16485 | mDatabase->SetActorAlive(); | ||||
| 16486 | |||||
| 16487 | if (!factory->SendPBackgroundIDBDatabaseConstructor( | ||||
| 16488 | mDatabase.unsafeGetRawPtr(), spec, WrapNotNull(this))) { | ||||
| 16489 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16489, idbInternalErrMsg.get()); } while (0); | ||||
| 16490 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16491 | } | ||||
| 16492 | |||||
| 16493 | if (mDatabase->IsInvalidated()) { | ||||
| 16494 | (void)mDatabase->SendInvalidate(); | ||||
| 16495 | } | ||||
| 16496 | |||||
| 16497 | return NS_OK; | ||||
| 16498 | } | ||||
| 16499 | |||||
| 16500 | Result<DatabaseSpec, nsresult> OpenDatabaseOp::MetadataToSpec() const { | ||||
| 16501 | AssertIsOnOwningThread(); | ||||
| 16502 | 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" , 16502); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { MOZ_CrashSequence(__null, 16502); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16503 | |||||
| 16504 | DatabaseSpec spec; | ||||
| 16505 | spec.metadata() = mMetadata->mCommonMetadata; | ||||
| 16506 | |||||
| 16507 | QM_TRY_UNWRAP(spec.objectStores(),auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16508 | TransformIntoNewArrayAbortOnErr(auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16509 | mMetadata->mObjectStores,auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16510 | [](const auto& objectStoreEntry)auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16511 | -> mozilla::Result<ObjectStoreSpec, nsresult> {auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16512 | FullObjectStoreMetadata* metadata =auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16513 | objectStoreEntry.GetWeak();auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16514 | MOZ_ASSERT(objectStoreEntry.GetKey());auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16515 | MOZ_ASSERT(metadata);auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16516 | |||||
| 16517 | ObjectStoreSpec objectStoreSpec;auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16518 | objectStoreSpec.metadata() = metadata->mCommonMetadata;auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16519 | |||||
| 16520 | QM_TRY_UNWRAP(auto indexes,auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16521 | TransformIntoNewArray(auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16522 | metadata->mIndexes,auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16523 | [](const auto& indexEntry) {auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16524 | FullIndexMetadata* indexMetadata =auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16525 | indexEntry.GetWeak();auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16526 | MOZ_ASSERT(indexEntry.GetKey());auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16527 | MOZ_ASSERT(indexMetadata);auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16528 | |||||
| 16529 | return indexMetadata->mCommonMetadata;auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16530 | },auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16531 | fallible));auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16532 | |||||
| 16533 | objectStoreSpec.indexes() = std::move(indexes);auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16534 | |||||
| 16535 | return objectStoreSpec;auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16536 | },auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap (); | ||||
| 16537 | fallible))auto tryResult1317 = (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", 16514 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16514); __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" , 16515); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata ; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes , [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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" , 16526); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexEntry.GetKey()" ")"); do { MOZ_CrashSequence(__null, 16526); __attribute__(( nomerge)) ::abort(); } while (false); } } while (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" , 16527); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 16527); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect (!!(tryResult1316.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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)" , tryResult1316.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16531, mozilla::dom::quota::Severity::Error); return tryResult1316 .propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec .indexes() = std::move(indexes); return objectStoreSpec; }, fallible )); if ((__builtin_expect(!!(tryResult1317.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\", 16514); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"objectStoreEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16514); __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\", 16515); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"metadata\" \")\"); do { MOZ_CrashSequence(__null, 16515); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); ObjectStoreSpec objectStoreSpec; objectStoreSpec.metadata() = metadata->mCommonMetadata; auto tryResult1316 = (TransformIntoNewArray( metadata->mIndexes, [](const auto& indexEntry) { FullIndexMetadata* indexMetadata = indexEntry.GetWeak(); do { static_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\", 16526); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexEntry.GetKey()\" \")\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\", 16527); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"indexMetadata\" \")\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)); if ((__builtin_expect(!!(tryResult1316.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\\\", 16526); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexEntry.GetKey()\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16526); __attribute__((nomerge)) ::abort(); } while (false); } } while (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\\\", 16527); AnnotateMozCrashReason(\\\"MOZ_ASSERT\\\" \\\"(\\\" \\\"indexMetadata\\\" \\\")\\\"); do { MOZ_CrashSequence(__null, 16527); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); return indexMetadata->mCommonMetadata; }, fallible)\", tryResult1316.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16531, mozilla::dom::quota::Severity::Error); return tryResult1316.propagateErr(); } auto indexes = tryResult1316.unwrap();; objectStoreSpec.indexes() = std::move(indexes); return objectStoreSpec; }, fallible)" , tryResult1317.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16537, mozilla::dom::quota::Severity::Error); return tryResult1317 .propagateErr(); } spec.objectStores() = tryResult1317.unwrap ();; | ||||
| 16538 | |||||
| 16539 | return spec; | ||||
| 16540 | } | ||||
| 16541 | |||||
| 16542 | #ifdef DEBUG1 | ||||
| 16543 | |||||
| 16544 | void OpenDatabaseOp::AssertMetadataConsistency( | ||||
| 16545 | const FullDatabaseMetadata& aMetadata) { | ||||
| 16546 | AssertIsOnBackgroundThread(); | ||||
| 16547 | |||||
| 16548 | const FullDatabaseMetadata& thisDB = *mMetadata; | ||||
| 16549 | const FullDatabaseMetadata& otherDB = aMetadata; | ||||
| 16550 | |||||
| 16551 | 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", 16551 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "&thisDB != &otherDB" ")"); do { MOZ_CrashSequence(__null, 16551); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16552 | |||||
| 16553 | 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", 16553 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.name() == otherDB.mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16553); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16554 | 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", 16555 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" ")"); do { MOZ_CrashSequence(__null, 16555); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16555 | 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", 16555 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.version() == otherDB.mCommonMetadata.version()" ")"); do { MOZ_CrashSequence(__null, 16555); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16556 | 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", 16557 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" ")"); do { MOZ_CrashSequence(__null, 16557); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16557 | 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", 16557 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mCommonMetadata.persistenceType() == otherDB.mCommonMetadata.persistenceType()" ")"); do { MOZ_CrashSequence(__null, 16557); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16558 | 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", 16558 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mDatabaseId == otherDB.mDatabaseId" ")"); do { MOZ_CrashSequence(__null, 16558); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16559 | 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", 16559 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mFilePath == otherDB.mFilePath" ")"); do { MOZ_CrashSequence(__null, 16559); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16560 | |||||
| 16561 | // |thisDB| reflects the latest objectStore and index ids that have committed | ||||
| 16562 | // to disk. The in-memory metadata |otherDB| keeps track of objectStores and | ||||
| 16563 | // indexes that were created and then removed as well, so the next ids for | ||||
| 16564 | // |otherDB| may be higher than for |thisDB|. | ||||
| 16565 | 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", 16565) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextObjectStoreId <= otherDB.mNextObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 16565); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16566 | 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", 16566 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mNextIndexId <= otherDB.mNextIndexId" ")"); do { MOZ_CrashSequence(__null, 16566); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16567 | |||||
| 16568 | 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", 16568 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisDB.mObjectStores.Count() == otherDB.mObjectStores.Count()" ")"); do { MOZ_CrashSequence(__null, 16568); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16569 | |||||
| 16570 | for (const auto& thisObjectStore : thisDB.mObjectStores.Values()) { | ||||
| 16571 | 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", 16571 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore" ")" ); do { MOZ_CrashSequence(__null, 16571); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16572 | 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" , 16572); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisObjectStore->mDeleted" ")"); do { MOZ_CrashSequence(__null, 16572); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16573 | |||||
| 16574 | auto otherObjectStore = MatchMetadataNameOrId( | ||||
| 16575 | otherDB.mObjectStores, thisObjectStore->mCommonMetadata.id()); | ||||
| 16576 | 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", 16576 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherObjectStore" ")"); do { MOZ_CrashSequence(__null, 16576); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16577 | |||||
| 16578 | 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", 16578 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore != &otherObjectStore.ref()" ")"); do { MOZ_CrashSequence(__null, 16578); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16579 | |||||
| 16580 | 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", 16581 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 16581); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16581 | 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", 16581 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.id() == otherObjectStore->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 16581); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16582 | 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", 16583 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16583); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16583 | 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", 16583 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.name() == otherObjectStore->mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16583); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16584 | 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", 16585 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" ")"); do { MOZ_CrashSequence(__null, 16585); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16585 | 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", 16585 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.autoIncrement() == otherObjectStore->mCommonMetadata.autoIncrement()" ")"); do { MOZ_CrashSequence(__null, 16585); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16586 | 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", 16587 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" ")"); do { MOZ_CrashSequence(__null, 16587); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16587 | 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", 16587 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mCommonMetadata.keyPath() == otherObjectStore->mCommonMetadata.keyPath()" ")"); do { MOZ_CrashSequence(__null, 16587); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16588 | // mNextAutoIncrementId and mCommittedAutoIncrementId may be modified | ||||
| 16589 | // concurrently with this OpenOp, so it is not possible to assert equality | ||||
| 16590 | // here. It's also possible that we've written the new ids to disk but not | ||||
| 16591 | // yet updated the in-memory count. | ||||
| 16592 | // TODO The first part of the comment should probably be rephrased. I think | ||||
| 16593 | // it still applies but it sounds as if this were thread-unsafe like it was | ||||
| 16594 | // before, which isn't true anymore. | ||||
| 16595 | { | ||||
| 16596 | const auto&& thisAutoIncrementIds = | ||||
| 16597 | thisObjectStore->mAutoIncrementIds.Lock(); | ||||
| 16598 | const auto&& otherAutoIncrementIds = | ||||
| 16599 | otherObjectStore->mAutoIncrementIds.Lock(); | ||||
| 16600 | |||||
| 16601 | 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", 16601 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->next <= otherAutoIncrementIds->next" ")"); do { MOZ_CrashSequence(__null, 16601); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16602 | 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", 16604 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { MOZ_CrashSequence(__null, 16604); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16603 | 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", 16604 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { MOZ_CrashSequence(__null, 16604); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16604 | 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", 16604 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisAutoIncrementIds->committed <= otherAutoIncrementIds->committed || thisAutoIncrementIds->committed == otherAutoIncrementIds->next" ")"); do { MOZ_CrashSequence(__null, 16604); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16605 | } | ||||
| 16606 | 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" , 16606); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherObjectStore->mDeleted" ")"); do { MOZ_CrashSequence(__null, 16606); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16607 | |||||
| 16608 | 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", 16609 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" ")"); do { MOZ_CrashSequence(__null, 16609); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16609 | 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", 16609 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisObjectStore->mIndexes.Count() == otherObjectStore->mIndexes.Count()" ")"); do { MOZ_CrashSequence(__null, 16609); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16610 | |||||
| 16611 | for (const auto& thisIndex : thisObjectStore->mIndexes.Values()) { | ||||
| 16612 | 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" , 16612); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex" ")"); do { MOZ_CrashSequence(__null, 16612); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16613 | 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", 16613 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!thisIndex->mDeleted" ")"); do { MOZ_CrashSequence(__null, 16613); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16614 | |||||
| 16615 | auto otherIndex = MatchMetadataNameOrId(otherObjectStore->mIndexes, | ||||
| 16616 | thisIndex->mCommonMetadata.id()); | ||||
| 16617 | 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" , 16617); AnnotateMozCrashReason("MOZ_ASSERT" "(" "otherIndex" ")"); do { MOZ_CrashSequence(__null, 16617); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16618 | |||||
| 16619 | 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" , 16619); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex != &otherIndex.ref()" ")"); do { MOZ_CrashSequence(__null, 16619); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16620 | |||||
| 16621 | 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", 16622 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 16622); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16622 | 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", 16622 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.id() == otherIndex->mCommonMetadata.id()" ")"); do { MOZ_CrashSequence(__null, 16622); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16623 | 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", 16624 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16624); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16624 | 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", 16624 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.name() == otherIndex->mCommonMetadata.name()" ")"); do { MOZ_CrashSequence(__null, 16624); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16625 | 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", 16626 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" ")"); do { MOZ_CrashSequence(__null, 16626); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16626 | 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", 16626 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.keyPath() == otherIndex->mCommonMetadata.keyPath()" ")"); do { MOZ_CrashSequence(__null, 16626); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16627 | 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", 16628 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" ")"); do { MOZ_CrashSequence(__null, 16628); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16628 | 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", 16628 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.unique() == otherIndex->mCommonMetadata.unique()" ")"); do { MOZ_CrashSequence(__null, 16628); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16629 | 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", 16630 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" ")"); do { MOZ_CrashSequence(__null, 16630); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16630 | 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", 16630 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "thisIndex->mCommonMetadata.multiEntry() == otherIndex->mCommonMetadata.multiEntry()" ")"); do { MOZ_CrashSequence(__null, 16630); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16631 | 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", 16631 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!otherIndex->mDeleted" ")"); do { MOZ_CrashSequence(__null, 16631); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16632 | } | ||||
| 16633 | } | ||||
| 16634 | } | ||||
| 16635 | |||||
| 16636 | #endif // DEBUG | ||||
| 16637 | |||||
| 16638 | nsresult OpenDatabaseOp::VersionChangeOp::DoDatabaseWork( | ||||
| 16639 | DatabaseConnection* aConnection) { | ||||
| 16640 | 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" , 16640); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 16640); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16641 | aConnection->AssertIsOnConnectionThread(); | ||||
| 16642 | 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", 16642 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 16642); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16643 | 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", 16643 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16643); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16644 | |||||
| 16645 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16645) || | ||||
| 16646 | !OperationMayProceed()) { | ||||
| 16647 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16647, idbInternalErrMsg.get()); } while (0); | ||||
| 16648 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16649 | } | ||||
| 16650 | |||||
| 16651 | AUTO_PROFILER_LABEL("OpenDatabaseOp::VersionChangeOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16651( "OpenDatabaseOp::VersionChangeOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16652 | |||||
| 16653 | 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) | ||||
| 16654 | 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) | ||||
| 16655 | 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); | ||||
| 16656 | |||||
| 16657 | Transaction().SetActiveOnConnectionThread(); | ||||
| 16658 | |||||
| 16659 | QM_TRY(MOZ_TO_RESULT({auto tryResult1318 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect (!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16660, mozilla::dom::quota::Severity::Error); return tryResult1318 .propagateErr(); }} | ||||
| 16660 | aConnection->BeginWriteTransaction(Transaction().GetDurability()))){auto tryResult1318 = (ToResult(aConnection->BeginWriteTransaction (Transaction().GetDurability()))); static_assert(std::is_empty_v <typename decltype(tryResult1318)::ok_type>); if ((__builtin_expect (!!(tryResult1318.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->BeginWriteTransaction(Transaction().GetDurability()))" , tryResult1318.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16660, mozilla::dom::quota::Severity::Error); return tryResult1318 .propagateErr(); }}; | ||||
| 16661 | |||||
| 16662 | // The parameter names are not used, parameters are bound by index only | ||||
| 16663 | // locally in the same function. | ||||
| 16664 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1320 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1319 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1319 )::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16669, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1319 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1319.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16669, mozilla::dom::quota::Severity::Error); return tryResult1319.propagateErr(); }}; return Ok{}; })))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16672, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }} | ||||
| 16665 | "UPDATE database SET version = :version;"_ns,{auto tryResult1320 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1319 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1319 )::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16669, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1319 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1319.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16669, mozilla::dom::quota::Severity::Error); return tryResult1319.propagateErr(); }}; return Ok{}; })))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16672, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }} | ||||
| 16666 | ([&self = *this]({auto tryResult1320 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1319 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1319 )::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16669, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1319 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1319.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16669, mozilla::dom::quota::Severity::Error); return tryResult1319.propagateErr(); }}; return Ok{}; })))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16672, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }} | ||||
| 16667 | mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1320 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1319 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1319 )::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16669, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1319 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1319.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16669, mozilla::dom::quota::Severity::Error); return tryResult1319.propagateErr(); }}; return Ok{}; })))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16672, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }} | ||||
| 16668 | QM_TRY(MOZ_TO_RESULT({auto tryResult1320 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1319 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1319 )::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16669, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1319 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1319.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16669, mozilla::dom::quota::Severity::Error); return tryResult1319.propagateErr(); }}; return Ok{}; })))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16672, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }} | ||||
| 16669 | updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion))));{auto tryResult1320 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1319 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1319 )::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16669, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1319 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1319.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16669, mozilla::dom::quota::Severity::Error); return tryResult1319.propagateErr(); }}; return Ok{}; })))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16672, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }} | ||||
| 16670 | |||||
| 16671 | return Ok{};{auto tryResult1320 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1319 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1319 )::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16669, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1319 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1319.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16669, mozilla::dom::quota::Severity::Error); return tryResult1319.propagateErr(); }}; return Ok{}; })))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16672, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }} | ||||
| 16672 | })))){auto tryResult1320 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE database SET version = :version;"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla:: Result<Ok, nsresult> { {auto tryResult1319 = (ToResult( updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion )))); static_assert(std::is_empty_v<typename decltype(tryResult1319 )::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))" , tryResult1319.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16669, mozilla::dom::quota::Severity::Error); return tryResult1319 .propagateErr(); }}; return Ok{}; })))); static_assert(std::is_empty_v <typename decltype(tryResult1320)::ok_type>); if ((__builtin_expect (!!(tryResult1320.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"UPDATE database SET version = :version;\"_ns, ([&self = *this]( mozIStorageStatement& updateStmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1319 = (ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))); static_assert(std::is_empty_v<typename decltype(tryResult1319)::ok_type>); if ((__builtin_expect(!!(tryResult1319.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(updateStmt.BindInt64ByIndex(0, int64_t(self.mRequestedVersion)))\", tryResult1319.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 16669, mozilla::dom::quota::Severity::Error); return tryResult1319.propagateErr(); }}; return Ok{}; })))" , tryResult1320.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16672, mozilla::dom::quota::Severity::Error); return tryResult1320 .propagateErr(); }}; | ||||
| 16673 | |||||
| 16674 | return NS_OK; | ||||
| 16675 | } | ||||
| 16676 | |||||
| 16677 | TransactionOpResult OpenDatabaseOp::VersionChangeOp::SendSuccessResult() { | ||||
| 16678 | AssertIsOnOwningThread(); | ||||
| 16679 | 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", 16679 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 16679); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16680 | 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", 16680 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16680); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16681 | 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", 16681 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { MOZ_CrashSequence(__null, 16681); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16682 | |||||
| 16683 | nsresult rv = mOpenDatabaseOp->SendUpgradeNeeded(); | ||||
| 16684 | 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" , 16684)) { | ||||
| 16685 | return rv; | ||||
| 16686 | } | ||||
| 16687 | |||||
| 16688 | return NS_OK; | ||||
| 16689 | } | ||||
| 16690 | |||||
| 16691 | bool OpenDatabaseOp::VersionChangeOp::SendFailureResult( | ||||
| 16692 | const TransactionOpResult& aResult) { | ||||
| 16693 | AssertIsOnOwningThread(); | ||||
| 16694 | 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", 16694 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 16694); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16695 | 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", 16695 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16695); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16696 | 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", 16696 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { MOZ_CrashSequence(__null, 16696); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16697 | |||||
| 16698 | mOpenDatabaseOp->SetFailureCode(aResult.mCode); | ||||
| 16699 | mOpenDatabaseOp->mState = State::SendingResults; | ||||
| 16700 | |||||
| 16701 | 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", 16701 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOpenDatabaseOp->Run())" ")"); do { MOZ_CrashSequence(__null, 16701); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 16702 | |||||
| 16703 | return false; | ||||
| 16704 | } | ||||
| 16705 | |||||
| 16706 | void OpenDatabaseOp::VersionChangeOp::Cleanup() { | ||||
| 16707 | AssertIsOnOwningThread(); | ||||
| 16708 | 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", 16708 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp" ")" ); do { MOZ_CrashSequence(__null, 16708); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16709 | 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", 16709 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOpenDatabaseOp->mVersionChangeOp == this" ")"); do { MOZ_CrashSequence(__null, 16709); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16710 | |||||
| 16711 | mOpenDatabaseOp->mVersionChangeOp = nullptr; | ||||
| 16712 | mOpenDatabaseOp = nullptr; | ||||
| 16713 | |||||
| 16714 | #ifdef DEBUG1 | ||||
| 16715 | // A bit hacky but the VersionChangeOp is not generated in response to a | ||||
| 16716 | // child request like most other database operations. Do this to make our | ||||
| 16717 | // assertions happy. | ||||
| 16718 | // | ||||
| 16719 | // XXX: Depending on timing, in most cases, NoteActorDestroyed will not have | ||||
| 16720 | // been destroyed before, but in some cases it has. This should be reworked in | ||||
| 16721 | // a way this hack is not necessary. There are also several similar cases in | ||||
| 16722 | // other *Op classes. | ||||
| 16723 | if (!IsActorDestroyed()) { | ||||
| 16724 | NoteActorDestroyed(); | ||||
| 16725 | } | ||||
| 16726 | #endif | ||||
| 16727 | |||||
| 16728 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 16729 | } | ||||
| 16730 | |||||
| 16731 | nsresult DeleteDatabaseOp::LoadPreviousVersion(nsIFile& aDatabaseFile) { | ||||
| 16732 | AssertIsOnIOThread(); | ||||
| 16733 | 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" , 16733); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 16733); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16734 | 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", 16734 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mPreviousVersion" ")"); do { MOZ_CrashSequence(__null, 16734); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16735 | |||||
| 16736 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::LoadPreviousVersion", DOM)mozilla::AutoProfilerLabel raiiObject16736( "DeleteDatabaseOp::LoadPreviousVersion" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16737 | |||||
| 16738 | nsresult rv; | ||||
| 16739 | |||||
| 16740 | nsCOMPtr<mozIStorageService> ss = | ||||
| 16741 | do_GetService(MOZ_STORAGE_SERVICE_CONTRACTID"@mozilla.org/storage/service;1", &rv); | ||||
| 16742 | 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" , 16742)) { | ||||
| 16743 | return NS_OK; | ||||
| 16744 | } | ||||
| 16745 | |||||
| 16746 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | ||||
| 16747 | 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" , 16747); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { MOZ_CrashSequence(__null, 16747); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 16748 | |||||
| 16749 | const PersistenceType persistenceType = | ||||
| 16750 | mCommonParams.metadata().persistenceType(); | ||||
| 16751 | const nsAString& databaseName = mCommonParams.metadata().name(); | ||||
| 16752 | |||||
| 16753 | SafeRefPtr<DatabaseFileManager> fileManager = idm->GetFileManager( | ||||
| 16754 | persistenceType, mOriginMetadata.mOrigin, databaseName); | ||||
| 16755 | |||||
| 16756 | if (!fileManager) { | ||||
| 16757 | fileManager = MakeSafeRefPtr<DatabaseFileManager>( | ||||
| 16758 | persistenceType, mOriginMetadata, databaseName, mDatabaseId.ref(), | ||||
| 16759 | mDatabaseFilePath.ref(), mEnforcingQuota, mInPrivateBrowsing); | ||||
| 16760 | } | ||||
| 16761 | |||||
| 16762 | const auto maybeKey = | ||||
| 16763 | mInPrivateBrowsing | ||||
| 16764 | ? Some(fileManager->MutableCipherKeyManagerRef().Ensure()) | ||||
| 16765 | : Nothing(); | ||||
| 16766 | |||||
| 16767 | 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", 16767 ); AnnotateMozCrashReason("MOZ_RELEASE_ASSERT" "(" "mInPrivateBrowsing == maybeKey.isSome()" ")"); do { MOZ_CrashSequence(__null, 16767); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16768 | |||||
| 16769 | // Pass -1 as the directoryLockId to disable quota checking, since we might | ||||
| 16770 | // temporarily exceed quota before deleting the database. | ||||
| 16771 | QM_TRY_INSPECT(const auto& dbFileUrl,auto tryResult1321 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey )); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1321.unwrapErr() ; mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16772, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)" , tryTempError, NS_OK); } const auto& dbFileUrl = tryResult1321 .inspect(); | ||||
| 16772 | GetDatabaseFileURL(aDatabaseFile, -1, maybeKey), NS_OK)auto tryResult1321 = (GetDatabaseFileURL(aDatabaseFile, -1, maybeKey )); if ((__builtin_expect(!!(tryResult1321.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1321.unwrapErr() ; mozilla::dom::quota::HandleError("GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16772, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "GetDatabaseFileURL(aDatabaseFile, -1, maybeKey)" , tryTempError, NS_OK); } const auto& dbFileUrl = tryResult1321 .inspect();; | ||||
| 16773 | |||||
| 16774 | QM_TRY_UNWRAP(const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1322 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl )); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1322.unwrapErr() ; mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16775, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)" , tryTempError, NS_OK); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1322.unwrap(); | ||||
| 16775 | OpenDatabaseAndHandleBusy(*ss, *dbFileUrl), NS_OK)auto tryResult1322 = (OpenDatabaseAndHandleBusy(*ss, *dbFileUrl )); if ((__builtin_expect(!!(tryResult1322.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1322.unwrapErr() ; mozilla::dom::quota::HandleError("OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16775, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OpenDatabaseAndHandleBusy(*ss, *dbFileUrl)" , tryTempError, NS_OK); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1322.unwrap();; | ||||
| 16776 | |||||
| 16777 | // Unreadable metadata must not prevent removal of a damaged database. | ||||
| 16778 | QM_TRY_INSPECT(const auto& nameStmt,auto tryResult1323 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1323.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16782, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, NS_OK); } const auto& nameStmt = tryResult1323 .inspect(); | ||||
| 16779 | CreateAndExecuteSingleStepStatement<auto tryResult1323 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1323.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16782, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, NS_OK); } const auto& nameStmt = tryResult1323 .inspect(); | ||||
| 16780 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1323 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1323.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16782, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, NS_OK); } const auto& nameStmt = tryResult1323 .inspect(); | ||||
| 16781 | *connection, "SELECT name FROM database"_ns),auto tryResult1323 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1323.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16782, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, NS_OK); } const auto& nameStmt = tryResult1323 .inspect(); | ||||
| 16782 | NS_OK)auto tryResult1323 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name FROM database"_ns )); if ((__builtin_expect(!!(tryResult1323.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1323.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16782, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name FROM database\"_ns)" , tryTempError, NS_OK); } const auto& nameStmt = tryResult1323 .inspect();; | ||||
| 16783 | QM_TRY(OkIf(nameStmt), NS_OK){auto tryResult1324 = (OkIf(nameStmt)); static_assert(std::is_empty_v <typename decltype(tryResult1324)::ok_type>); if ((__builtin_expect (!!(tryResult1324.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1324.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(nameStmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16783, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(nameStmt)", tryTempError , NS_OK); }}; | ||||
| 16784 | QM_TRY_INSPECT(auto tryResult1325 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (nameStmt)>::GetString), (nameStmt), 0)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1325.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16787, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)" , tryTempError, NS_OK); } const auto& storedName = tryResult1325 .inspect(); | ||||
| 16785 | const auto& storedName,auto tryResult1325 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (nameStmt)>::GetString), (nameStmt), 0)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1325.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16787, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)" , tryTempError, NS_OK); } const auto& storedName = tryResult1325 .inspect(); | ||||
| 16786 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, nameStmt, GetString, 0),auto tryResult1325 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (nameStmt)>::GetString), (nameStmt), 0)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1325.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16787, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)" , tryTempError, NS_OK); } const auto& storedName = tryResult1325 .inspect(); | ||||
| 16787 | NS_OK)auto tryResult1325 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (nameStmt)>::GetString), (nameStmt), 0)); if ((__builtin_expect (!!(tryResult1325.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1325.unwrapErr(); mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16787, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(nameStmt)>::GetString), (nameStmt), 0)" , tryTempError, NS_OK); } const auto& storedName = tryResult1325 .inspect();; | ||||
| 16788 | QM_TRY(OkIf(databaseName == storedName), NS_ERROR_FILE_CORRUPTED){auto tryResult1326 = (OkIf(databaseName == storedName)); static_assert (std::is_empty_v<typename decltype(tryResult1326)::ok_type >); if ((__builtin_expect(!!(tryResult1326.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1326.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(databaseName == storedName)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16788, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(databaseName == storedName)" , tryTempError, NS_ERROR_FILE_CORRUPTED); }}; | ||||
| 16789 | |||||
| 16790 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1327 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1327.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16794, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, NS_OK); } const auto& stmt = tryResult1327 .inspect(); | ||||
| 16791 | CreateAndExecuteSingleStepStatement<auto tryResult1327 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1327.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16794, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, NS_OK); } const auto& stmt = tryResult1327 .inspect(); | ||||
| 16792 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1327 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1327.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16794, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, NS_OK); } const auto& stmt = tryResult1327 .inspect(); | ||||
| 16793 | *connection, "SELECT version FROM database"_ns),auto tryResult1327 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1327.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16794, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, NS_OK); } const auto& stmt = tryResult1327 .inspect(); | ||||
| 16794 | NS_OK)auto tryResult1327 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1327.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1327.unwrapErr() ; mozilla::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16794, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT version FROM database\"_ns)" , tryTempError, NS_OK); } const auto& stmt = tryResult1327 .inspect();; | ||||
| 16795 | |||||
| 16796 | QM_TRY(OkIf(stmt), NS_OK){auto tryResult1328 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult1328)::ok_type>); if ((__builtin_expect (!!(tryResult1328.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1328.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16796, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(stmt)", tryTempError , NS_OK); }}; | ||||
| 16797 | |||||
| 16798 | int64_t version; | ||||
| 16799 | rv = stmt->GetInt64(0, &version); | ||||
| 16800 | 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" , 16800)) { | ||||
| 16801 | return NS_OK; | ||||
| 16802 | } | ||||
| 16803 | |||||
| 16804 | mPreviousVersion = uint64_t(version); | ||||
| 16805 | return NS_OK; | ||||
| 16806 | } | ||||
| 16807 | |||||
| 16808 | nsresult DeleteDatabaseOp::DatabaseOpen() { | ||||
| 16809 | AssertIsOnOwningThread(); | ||||
| 16810 | 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" , 16810); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { MOZ_CrashSequence(__null, 16810); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16811 | |||||
| 16812 | nsresult rv = SendToIOThread(); | ||||
| 16813 | 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" , 16813)) { | ||||
| 16814 | return rv; | ||||
| 16815 | } | ||||
| 16816 | |||||
| 16817 | return NS_OK; | ||||
| 16818 | } | ||||
| 16819 | |||||
| 16820 | nsresult DeleteDatabaseOp::DoDatabaseWork() { | ||||
| 16821 | AssertIsOnIOThread(); | ||||
| 16822 | 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" , 16822); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 16822); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16823 | 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", 16824 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" ")"); do { MOZ_CrashSequence(__null, 16824); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 16824 | 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", 16824 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOriginMetadata.mPersistenceType == mCommonParams.metadata().persistenceType()" ")"); do { MOZ_CrashSequence(__null, 16824); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16825 | |||||
| 16826 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject16826( "DeleteDatabaseOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16827 | |||||
| 16828 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16828) || | ||||
| 16829 | !OperationMayProceed()) { | ||||
| 16830 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16830, idbInternalErrMsg.get()); } while (0); | ||||
| 16831 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16832 | } | ||||
| 16833 | |||||
| 16834 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 16835 | 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" , 16835); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 16835); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16836 | |||||
| 16837 | QM_TRY_UNWRAP(auto directory,auto tryResult1329 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16838, mozilla::dom::quota::Severity::Error); return tryResult1329 .propagateErr(); } auto directory = tryResult1329.unwrap(); | ||||
| 16838 | quotaManager->GetOriginDirectory(mOriginMetadata))auto tryResult1329 = (quotaManager->GetOriginDirectory(mOriginMetadata )); if ((__builtin_expect(!!(tryResult1329.isErr()), 0))) { mozilla ::dom::quota::HandleError("quotaManager->GetOriginDirectory(mOriginMetadata)" , tryResult1329.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16838, mozilla::dom::quota::Severity::Error); return tryResult1329 .propagateErr(); } auto directory = tryResult1329.unwrap();; | ||||
| 16839 | |||||
| 16840 | QM_TRY(MOZ_TO_RESULT({auto tryResult1330 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1330 )::ok_type>); if ((__builtin_expect(!!(tryResult1330.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16841, mozilla::dom::quota::Severity::Error); return tryResult1330 .propagateErr(); }} | ||||
| 16841 | directory->Append(NS_LITERAL_STRING_FROM_CSTRING(IDB_DIRECTORY_NAME)))){auto tryResult1330 = (ToResult(directory->Append(static_cast <const nsLiteralString&>( nsLiteralString(u"" "idb" ))))); static_assert(std::is_empty_v<typename decltype(tryResult1330 )::ok_type>); if ((__builtin_expect(!!(tryResult1330.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(directory->Append(static_cast<const nsLiteralString&>( nsLiteralString(u\"\" \"idb\"))))" , tryResult1330.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16841, mozilla::dom::quota::Severity::Error); return tryResult1330 .propagateErr(); }}; | ||||
| 16842 | |||||
| 16843 | QM_TRY_UNWRAP(mDatabaseDirectoryPath, MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(auto tryResult1331 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (directory)>::GetPath), (directory) )); if ((__builtin_expect (!!(tryResult1331.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory) )" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16844, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } mDatabaseDirectoryPath = tryResult1331.unwrap (); | ||||
| 16844 | nsString, directory, GetPath))auto tryResult1331 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (directory)>::GetPath), (directory) )); if ((__builtin_expect (!!(tryResult1331.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(directory)>::GetPath), (directory) )" , tryResult1331.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16844, mozilla::dom::quota::Severity::Error); return tryResult1331 .propagateErr(); } mDatabaseDirectoryPath = tryResult1331.unwrap ();; | ||||
| 16845 | |||||
| 16846 | QM_TRY_INSPECT(auto tryResult1332 = (CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1332.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1332.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16848, mozilla::dom::quota::Severity::Error); return tryResult1332 .propagateErr(); } const auto& dbFile = tryResult1332.inspect (); | ||||
| 16847 | const auto& dbFile,auto tryResult1332 = (CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1332.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1332.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16848, mozilla::dom::quota::Severity::Error); return tryResult1332 .propagateErr(); } const auto& dbFile = tryResult1332.inspect (); | ||||
| 16848 | CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix))auto tryResult1332 = (CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1332.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*directory, *mDatabaseFilenameBase + kSQLiteSuffix)" , tryResult1332.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16848, mozilla::dom::quota::Severity::Error); return tryResult1332 .propagateErr(); } const auto& dbFile = tryResult1332.inspect ();; | ||||
| 16849 | |||||
| 16850 | #ifdef DEBUG1 | ||||
| 16851 | { | ||||
| 16852 | QM_TRY_INSPECT(auto tryResult1333 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1333.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1333.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16854, mozilla::dom::quota::Severity::Error); return tryResult1333 .propagateErr(); } const auto& databaseFilePath = tryResult1333 .inspect(); | ||||
| 16853 | const auto& databaseFilePath,auto tryResult1333 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1333.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1333.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16854, mozilla::dom::quota::Severity::Error); return tryResult1333 .propagateErr(); } const auto& databaseFilePath = tryResult1333 .inspect(); | ||||
| 16854 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, dbFile, GetPath))auto tryResult1333 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (dbFile)>::GetPath), (dbFile) )); if ((__builtin_expect(!! (tryResult1333.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(dbFile)>::GetPath), (dbFile) )" , tryResult1333.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16854, mozilla::dom::quota::Severity::Error); return tryResult1333 .propagateErr(); } const auto& databaseFilePath = tryResult1333 .inspect();; | ||||
| 16855 | |||||
| 16856 | 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", 16856 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "databaseFilePath == mDatabaseFilePath.ref()" ")"); do { MOZ_CrashSequence(__null, 16856); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16857 | } | ||||
| 16858 | #endif | ||||
| 16859 | |||||
| 16860 | QM_TRY_INSPECT(const bool& exists,auto tryResult1334 = (::mozilla::ToResultInvokeMember( (dbFile ), &::mozilla::detail::DerefedType<decltype(dbFile)> ::Exists )); if ((__builtin_expect(!!(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists )" , tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16861, mozilla::dom::quota::Severity::Error); return tryResult1334 .propagateErr(); } const bool& exists = tryResult1334.inspect (); | ||||
| 16861 | MOZ_TO_RESULT_INVOKE_MEMBER(dbFile, Exists))auto tryResult1334 = (::mozilla::ToResultInvokeMember( (dbFile ), &::mozilla::detail::DerefedType<decltype(dbFile)> ::Exists )); if ((__builtin_expect(!!(tryResult1334.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (dbFile), &::mozilla::detail::DerefedType<decltype(dbFile)>::Exists )" , tryResult1334.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16861, mozilla::dom::quota::Severity::Error); return tryResult1334 .propagateErr(); } const bool& exists = tryResult1334.inspect ();; | ||||
| 16862 | |||||
| 16863 | if (exists) { | ||||
| 16864 | // Parts of this function may fail but that shouldn't prevent us from | ||||
| 16865 | // deleting the file eventually. | ||||
| 16866 | QM_TRY(MOZ_TO_RESULT(LoadPreviousVersion(*dbFile))){auto tryResult1335 = (ToResult(LoadPreviousVersion(*dbFile)) ); static_assert(std::is_empty_v<typename decltype(tryResult1335 )::ok_type>); if ((__builtin_expect(!!(tryResult1335.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(LoadPreviousVersion(*dbFile))" , tryResult1335.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16866, mozilla::dom::quota::Severity::Error); return tryResult1335 .propagateErr(); }}; | ||||
| 16867 | |||||
| 16868 | mState = State::BeginVersionChange; | ||||
| 16869 | } else { | ||||
| 16870 | mState = State::SendingResults; | ||||
| 16871 | } | ||||
| 16872 | |||||
| 16873 | QM_TRY(MOZ_TO_RESULT({auto tryResult1336 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1336)::ok_type>); if ((__builtin_expect (!!(tryResult1336.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16874, mozilla::dom::quota::Severity::Error); return tryResult1336 .propagateErr(); }} | ||||
| 16874 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1336 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1336)::ok_type>); if ((__builtin_expect (!!(tryResult1336.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1336.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16874, mozilla::dom::quota::Severity::Error); return tryResult1336 .propagateErr(); }}; | ||||
| 16875 | |||||
| 16876 | return NS_OK; | ||||
| 16877 | } | ||||
| 16878 | |||||
| 16879 | nsresult DeleteDatabaseOp::BeginVersionChange() { | ||||
| 16880 | AssertIsOnOwningThread(); | ||||
| 16881 | 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" , 16881); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::BeginVersionChange" ")"); do { MOZ_CrashSequence(__null, 16881); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16882 | 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" , 16882); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16882); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16883 | |||||
| 16884 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16884) || | ||||
| 16885 | IsActorDestroyed()) { | ||||
| 16886 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16886, idbInternalErrMsg.get()); } while (0); | ||||
| 16887 | QM_TRY(MOZ_TO_RESULT(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)){auto tryResult1337 = (ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR )); static_assert(std::is_empty_v<typename decltype(tryResult1337 )::ok_type>); if ((__builtin_expect(!!(tryResult1337.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR)" , tryResult1337.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16887, mozilla::dom::quota::Severity::Error); return tryResult1337 .propagateErr(); }}; | ||||
| 16888 | } | ||||
| 16889 | |||||
| 16890 | DatabaseActorInfo* info; | ||||
| 16891 | if (gLiveDatabaseHashtable->Get(mDatabaseId.ref(), &info)) { | ||||
| 16892 | 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", 16892 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16892); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16893 | |||||
| 16894 | nsresult rv = | ||||
| 16895 | SendVersionChangeMessages(info, Nothing(), mPreviousVersion, Nothing()); | ||||
| 16896 | 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" , 16896)) { | ||||
| 16897 | return rv; | ||||
| 16898 | } | ||||
| 16899 | |||||
| 16900 | if (!mMaybeBlockedDatabases.IsEmpty()) { | ||||
| 16901 | // If the actor gets destroyed, mWaitingFactoryOp will hold the last | ||||
| 16902 | // strong reference to us. | ||||
| 16903 | info->mWaitingFactoryOp = this; | ||||
| 16904 | |||||
| 16905 | mState = State::WaitingForOtherDatabasesToClose; | ||||
| 16906 | return NS_OK; | ||||
| 16907 | } | ||||
| 16908 | } | ||||
| 16909 | |||||
| 16910 | // No other databases need to be notified, just make sure that all | ||||
| 16911 | // transactions are complete. | ||||
| 16912 | WaitForTransactions(); | ||||
| 16913 | return NS_OK; | ||||
| 16914 | } | ||||
| 16915 | |||||
| 16916 | bool DeleteDatabaseOp::AreActorsAlive() { | ||||
| 16917 | AssertIsOnOwningThread(); | ||||
| 16918 | |||||
| 16919 | return !IsActorDestroyed(); | ||||
| 16920 | } | ||||
| 16921 | |||||
| 16922 | nsresult DeleteDatabaseOp::DispatchToWorkThread() { | ||||
| 16923 | AssertIsOnOwningThread(); | ||||
| 16924 | 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", 16924 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForTransactionsToComplete" ")"); do { MOZ_CrashSequence(__null, 16924); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16925 | 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" , 16925); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16925); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16926 | |||||
| 16927 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnBackgroundThread (), "QuotaClient::IsShuttingDownOnBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16927) || | ||||
| 16928 | IsActorDestroyed()) { | ||||
| 16929 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16929, idbInternalErrMsg.get()); } while (0); | ||||
| 16930 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16931 | } | ||||
| 16932 | |||||
| 16933 | mState = State::DatabaseWorkVersionChange; | ||||
| 16934 | |||||
| 16935 | RefPtr<VersionChangeOp> versionChangeOp = new VersionChangeOp(this); | ||||
| 16936 | |||||
| 16937 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 16938 | 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" , 16938); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 16938); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16939 | |||||
| 16940 | nsresult rv = quotaManager->IOThread()->Dispatch(versionChangeOp.forget(), | ||||
| 16941 | NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | ||||
| 16942 | 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" , 16942)) { | ||||
| 16943 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 16943, idbInternalErrMsg.get()); } while (0); | ||||
| 16944 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 16945 | } | ||||
| 16946 | |||||
| 16947 | return NS_OK; | ||||
| 16948 | } | ||||
| 16949 | |||||
| 16950 | void DeleteDatabaseOp::SendBlockedNotification() { | ||||
| 16951 | AssertIsOnOwningThread(); | ||||
| 16952 | 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", 16952 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::WaitingForOtherDatabasesToClose" ")"); do { MOZ_CrashSequence(__null, 16952); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16953 | |||||
| 16954 | if (!IsActorDestroyed()) { | ||||
| 16955 | (void)SendBlocked(mPreviousVersion); | ||||
| 16956 | } | ||||
| 16957 | } | ||||
| 16958 | |||||
| 16959 | nsresult DeleteDatabaseOp::DoVersionUpdate() { | ||||
| 16960 | 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", 16960 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 16960); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 16961 | } | ||||
| 16962 | |||||
| 16963 | void DeleteDatabaseOp::SendResults() { | ||||
| 16964 | AssertIsOnOwningThread(); | ||||
| 16965 | 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" , 16965); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 16965); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16966 | 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" , 16966); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeBlockedDatabases.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 16966); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16967 | |||||
| 16968 | DebugOnly<DatabaseActorInfo*> info = nullptr; | ||||
| 16969 | 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", 16971 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16971); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 16970 | 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", 16971 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16971); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 16971 | !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", 16971 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 16971); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 16972 | |||||
| 16973 | if (!IsActorDestroyed()) { | ||||
| 16974 | FactoryRequestResponse response; | ||||
| 16975 | |||||
| 16976 | if (!HasFailed()) { | ||||
| 16977 | response = DeleteDatabaseRequestResponse(mPreviousVersion); | ||||
| 16978 | } else { | ||||
| 16979 | response = ClampResultCode(ResultCode()); | ||||
| 16980 | } | ||||
| 16981 | |||||
| 16982 | (void)PBackgroundIDBFactoryRequestParent::Send__delete__(this, response); | ||||
| 16983 | } | ||||
| 16984 | |||||
| 16985 | { | ||||
| 16986 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 16987 | } | ||||
| 16988 | |||||
| 16989 | CleanupMetadata(); | ||||
| 16990 | |||||
| 16991 | FinishSendResults(); | ||||
| 16992 | } | ||||
| 16993 | |||||
| 16994 | nsresult DeleteDatabaseOp::VersionChangeOp::RunOnIOThread() { | ||||
| 16995 | AssertIsOnIOThread(); | ||||
| 16996 | 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", 16996 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 16996); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 16997 | |||||
| 16998 | AUTO_PROFILER_LABEL("DeleteDatabaseOp::VersionChangeOp::RunOnIOThread", DOM)mozilla::AutoProfilerLabel raiiObject16998( "DeleteDatabaseOp::VersionChangeOp::RunOnIOThread" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 16999 | |||||
| 17000 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17000) || | ||||
| 17001 | !OperationMayProceed()) { | ||||
| 17002 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17002, idbInternalErrMsg.get()); } while (0); | ||||
| 17003 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 17004 | } | ||||
| 17005 | |||||
| 17006 | const PersistenceType& persistenceType = | ||||
| 17007 | mDeleteDatabaseOp->mCommonParams.metadata().persistenceType(); | ||||
| 17008 | |||||
| 17009 | QuotaManager* quotaManager = | ||||
| 17010 | mDeleteDatabaseOp->mEnforcingQuota ? QuotaManager::Get() : nullptr; | ||||
| 17011 | |||||
| 17012 | 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" , 17012); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 17012); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 17013 | |||||
| 17014 | nsCOMPtr<nsIFile> directory = | ||||
| 17015 | GetFileForPath(mDeleteDatabaseOp->mDatabaseDirectoryPath); | ||||
| 17016 | if (NS_WARN_IF(!directory)NS_warn_if_impl(!directory, "!directory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17016)) { | ||||
| 17017 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17017, idbInternalErrMsg.get()); } while (0); | ||||
| 17018 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 17019 | } | ||||
| 17020 | |||||
| 17021 | nsresult rv = RemoveDatabaseFilesAndDirectory( | ||||
| 17022 | *directory, *mDeleteDatabaseOp->mDatabaseFilenameBase, quotaManager, | ||||
| 17023 | persistenceType, mDeleteDatabaseOp->mOriginMetadata, | ||||
| 17024 | mDeleteDatabaseOp->mCommonParams.metadata().name()); | ||||
| 17025 | 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" , 17025)) { | ||||
| 17026 | return rv; | ||||
| 17027 | } | ||||
| 17028 | |||||
| 17029 | rv = mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMALnsIEventTarget::DISPATCH_NORMAL); | ||||
| 17030 | 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" , 17030)) { | ||||
| 17031 | return rv; | ||||
| 17032 | } | ||||
| 17033 | |||||
| 17034 | return NS_OK; | ||||
| 17035 | } | ||||
| 17036 | |||||
| 17037 | void DeleteDatabaseOp::VersionChangeOp::RunOnOwningThread() { | ||||
| 17038 | AssertIsOnOwningThread(); | ||||
| 17039 | 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", 17039 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDeleteDatabaseOp->mState == State::DatabaseWorkVersionChange" ")"); do { MOZ_CrashSequence(__null, 17039); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17040 | |||||
| 17041 | const RefPtr<DeleteDatabaseOp> deleteOp = std::move(mDeleteDatabaseOp); | ||||
| 17042 | |||||
| 17043 | if (deleteOp->IsActorDestroyed()) { | ||||
| 17044 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17044, idbInternalErrMsg.get()); } while (0); | ||||
| 17045 | deleteOp->SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 17046 | } else if (HasFailed()) { | ||||
| 17047 | deleteOp->SetFailureCodeIfUnset(ResultCode()); | ||||
| 17048 | } else { | ||||
| 17049 | DatabaseActorInfo* info; | ||||
| 17050 | |||||
| 17051 | // Inform all the other databases that they are now invalidated. That | ||||
| 17052 | // should remove the previous metadata from our table. | ||||
| 17053 | if (gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref(), &info)) { | ||||
| 17054 | 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" , 17054); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mLiveDatabases.isEmpty()" ")"); do { MOZ_CrashSequence(__null, 17054); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17055 | 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", 17055 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!info->mWaitingFactoryOp" ")"); do { MOZ_CrashSequence(__null, 17055); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17056 | |||||
| 17057 | nsTArray<SafeRefPtr<Database>> liveDatabases; | ||||
| 17058 | 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", 17059 ) | ||||
| 17059 | fallible))NS_warn_if_impl(!liveDatabases.SetCapacity(info->mLiveDatabases .length(), fallible), "!liveDatabases.SetCapacity(info->mLiveDatabases.length(), fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17059 )) { | ||||
| 17060 | deleteOp->SetFailureCode(NS_ERROR_OUT_OF_MEMORY); | ||||
| 17061 | } else { | ||||
| 17062 | std::transform(info->mLiveDatabases.begin(), info->mLiveDatabases.end(), | ||||
| 17063 | MakeBackInserter(liveDatabases), | ||||
| 17064 | [](Database* const aDatabase) -> SafeRefPtr<Database> { | ||||
| 17065 | return {aDatabase, AcquireStrongRefFromRawPtr{}}; | ||||
| 17066 | }); | ||||
| 17067 | |||||
| 17068 | #ifdef DEBUG1 | ||||
| 17069 | // The code below should result in the deletion of |info|. Set to null | ||||
| 17070 | // here to make sure we find invalid uses later. | ||||
| 17071 | info = nullptr; | ||||
| 17072 | #endif | ||||
| 17073 | |||||
| 17074 | for (const auto& database : liveDatabases) { | ||||
| 17075 | database->Invalidate(); | ||||
| 17076 | } | ||||
| 17077 | |||||
| 17078 | 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", 17078 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!gLiveDatabaseHashtable->Get(deleteOp->mDatabaseId.ref())" ")"); do { MOZ_CrashSequence(__null, 17078); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17079 | } | ||||
| 17080 | } | ||||
| 17081 | } | ||||
| 17082 | |||||
| 17083 | // We hold a strong ref to the deleteOp, so it's safe to call Run() directly. | ||||
| 17084 | |||||
| 17085 | deleteOp->mState = State::SendingResults; | ||||
| 17086 | 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", 17086 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(deleteOp->Run())" ")"); do { MOZ_CrashSequence(__null, 17086); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17087 | |||||
| 17088 | #ifdef DEBUG1 | ||||
| 17089 | // A bit hacky but the DeleteDatabaseOp::VersionChangeOp is not really a | ||||
| 17090 | // normal database operation that is tied to an actor. Do this to make our | ||||
| 17091 | // assertions happy. | ||||
| 17092 | NoteActorDestroyed(); | ||||
| 17093 | #endif | ||||
| 17094 | } | ||||
| 17095 | |||||
| 17096 | nsresult DeleteDatabaseOp::VersionChangeOp::Run() { | ||||
| 17097 | nsresult rv; | ||||
| 17098 | |||||
| 17099 | if (IsOnIOThread()) { | ||||
| 17100 | rv = RunOnIOThread(); | ||||
| 17101 | } else { | ||||
| 17102 | RunOnOwningThread(); | ||||
| 17103 | rv = NS_OK; | ||||
| 17104 | } | ||||
| 17105 | |||||
| 17106 | 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" , 17106)) { | ||||
| 17107 | SetFailureCodeIfUnset(rv); | ||||
| 17108 | |||||
| 17109 | 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", 17109 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 17109); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17110 | } | ||||
| 17111 | |||||
| 17112 | return NS_OK; | ||||
| 17113 | } | ||||
| 17114 | |||||
| 17115 | nsresult GetDatabasesOp::DatabasesNotAvailable() { | ||||
| 17116 | AssertIsOnIOThread(); | ||||
| 17117 | 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" , 17117); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 17117); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17118 | |||||
| 17119 | mState = State::SendingResults; | ||||
| 17120 | |||||
| 17121 | QM_TRY(MOZ_TO_RESULT({auto tryResult1338 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1338)::ok_type>); if ((__builtin_expect (!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1338.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17122, mozilla::dom::quota::Severity::Error); return tryResult1338 .propagateErr(); }} | ||||
| 17122 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1338 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1338)::ok_type>); if ((__builtin_expect (!!(tryResult1338.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1338.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17122, mozilla::dom::quota::Severity::Error); return tryResult1338 .propagateErr(); }}; | ||||
| 17123 | |||||
| 17124 | return NS_OK; | ||||
| 17125 | } | ||||
| 17126 | |||||
| 17127 | nsresult GetDatabasesOp::DoDirectoryWork() { | ||||
| 17128 | AssertIsOnIOThread(); | ||||
| 17129 | 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" , 17129); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DirectoryWorkOpen" ")"); do { MOZ_CrashSequence(__null, 17129); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17130 | |||||
| 17131 | // This state (DirectoryWorkOpen) runs immediately on the I/O thread, before | ||||
| 17132 | // waiting for existing factory operations to complete (at which point | ||||
| 17133 | // DoDatabaseWork will be invoked). To match the spec, we must snapshot the | ||||
| 17134 | // current state of any databases that are being created (version = 0) or | ||||
| 17135 | // upgraded (version >= 1) now. If we only sampled these values in | ||||
| 17136 | // DoDatabaseWork, we would only see their post-creation/post-upgrade | ||||
| 17137 | // versions, which would be incorrect. | ||||
| 17138 | |||||
| 17139 | IndexedDatabaseManager* const idm = IndexedDatabaseManager::Get(); | ||||
| 17140 | 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" , 17140); AnnotateMozCrashReason("MOZ_ASSERT" "(" "idm" ")"); do { MOZ_CrashSequence(__null, 17140); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 17141 | |||||
| 17142 | const auto& fileManagers = | ||||
| 17143 | idm->GetFileManagers(mPersistenceType, mOriginMetadata.mOrigin); | ||||
| 17144 | |||||
| 17145 | for (const auto& fileManager : fileManagers) { | ||||
| 17146 | auto& metadata = | ||||
| 17147 | mDatabaseMetadataTable.LookupOrInsert(fileManager->DatabaseFilePath()); | ||||
| 17148 | metadata.name() = fileManager->DatabaseName(); | ||||
| 17149 | metadata.version() = fileManager->DatabaseVersion(); | ||||
| 17150 | } | ||||
| 17151 | |||||
| 17152 | // Must set this before dispatching otherwise we will race with the IO thread. | ||||
| 17153 | mState = State::DirectoryWorkDone; | ||||
| 17154 | |||||
| 17155 | QM_TRY(MOZ_TO_RESULT(mOwningEventTarget->Dispatch(this, NS_DISPATCH_NORMAL))){auto tryResult1339 = (ToResult(mOwningEventTarget->Dispatch (this, nsIEventTarget::DISPATCH_NORMAL))); static_assert(std:: is_empty_v<typename decltype(tryResult1339)::ok_type>); if ((__builtin_expect(!!(tryResult1339.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" , tryResult1339.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17155, mozilla::dom::quota::Severity::Error); return tryResult1339 .propagateErr(); }}; | ||||
| 17156 | |||||
| 17157 | return NS_OK; | ||||
| 17158 | } | ||||
| 17159 | |||||
| 17160 | nsresult GetDatabasesOp::DatabaseOpen() { | ||||
| 17161 | AssertIsOnOwningThread(); | ||||
| 17162 | 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" , 17162); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseOpenPending" ")"); do { MOZ_CrashSequence(__null, 17162); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17163 | |||||
| 17164 | nsresult rv = SendToIOThread(); | ||||
| 17165 | 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" , 17165)) { | ||||
| 17166 | return rv; | ||||
| 17167 | } | ||||
| 17168 | |||||
| 17169 | return NS_OK; | ||||
| 17170 | } | ||||
| 17171 | |||||
| 17172 | nsresult GetDatabasesOp::DoDatabaseWork() { | ||||
| 17173 | AssertIsOnIOThread(); | ||||
| 17174 | 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" , 17174); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::DatabaseWorkOpen" ")"); do { MOZ_CrashSequence(__null, 17174); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17175 | |||||
| 17176 | AUTO_PROFILER_LABEL("GetDatabasesOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17176( "GetDatabasesOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17177 | |||||
| 17178 | if (NS_WARN_IF(QuotaClient::IsShuttingDownOnNonBackgroundThread())NS_warn_if_impl(QuotaClient::IsShuttingDownOnNonBackgroundThread (), "QuotaClient::IsShuttingDownOnNonBackgroundThread()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17178) || | ||||
| 17179 | !OperationMayProceed()) { | ||||
| 17180 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17180, idbInternalErrMsg.get()); } while (0); | ||||
| 17181 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 17182 | } | ||||
| 17183 | |||||
| 17184 | QuotaManager* const quotaManager = QuotaManager::Get(); | ||||
| 17185 | 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" , 17185); AnnotateMozCrashReason("MOZ_ASSERT" "(" "quotaManager" ")"); do { MOZ_CrashSequence(__null, 17185); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17186 | |||||
| 17187 | { | ||||
| 17188 | QM_TRY_INSPECT(const bool& exists,auto tryResult1340 = (quotaManager->DoesOriginDirectoryExist (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1340.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)" , tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17189, mozilla::dom::quota::Severity::Error); return tryResult1340 .propagateErr(); } const bool& exists = tryResult1340.inspect (); | ||||
| 17189 | quotaManager->DoesOriginDirectoryExist(mOriginMetadata))auto tryResult1340 = (quotaManager->DoesOriginDirectoryExist (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1340.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->DoesOriginDirectoryExist(mOriginMetadata)" , tryResult1340.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17189, mozilla::dom::quota::Severity::Error); return tryResult1340 .propagateErr(); } const bool& exists = tryResult1340.inspect ();; | ||||
| 17190 | if (!exists) { | ||||
| 17191 | return DatabasesNotAvailable(); | ||||
| 17192 | } | ||||
| 17193 | } | ||||
| 17194 | |||||
| 17195 | // XXX Is this really needed ? | ||||
| 17196 | QM_TRY((["aManager,{auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17197 | this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> {{auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17198 | if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {{auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17199 | QM_TRY_RETURN(quotaManager->GetOriginDirectory(mOriginMetadata));{auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17200 | }{auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17201 | |||||
| 17202 | QM_TRY_RETURN({auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17203 | quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata));{auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17204 | }(){auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }} | ||||
| 17205 | .map([](const auto& res) { return Ok{}; }))){auto tryResult1343 = ((["aManager, this]() -> mozilla ::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager ->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect (!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->GetOriginDirectory(mOriginMetadata)", tryResult1341 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341 ;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory (mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr ()), 0))) { mozilla::dom::quota::HandleError("quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)" , tryResult1342.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342 ;}; }() .map([](const auto& res) { return Ok{}; }))); static_assert (std::is_empty_v<typename decltype(tryResult1343)::ok_type >); if ((__builtin_expect(!!(tryResult1343.isErr()), 0))) { mozilla::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<nsCOMPtr<nsIFile>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1341 = (quotaManager->GetOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1341.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOriginDirectory(mOriginMetadata)\", tryResult1341.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17199, mozilla::dom::quota::Severity::Error); } return tryResult1341;}; } {auto tryResult1342 = (quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)); if ((__builtin_expect(!!(tryResult1342.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->GetOrCreateTemporaryOriginDirectory(mOriginMetadata)\", tryResult1342.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17203, mozilla::dom::quota::Severity::Error); } return tryResult1342;}; }() .map([](const auto& res) { return Ok{}; }))" , tryResult1343.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17205, mozilla::dom::quota::Severity::Error); return tryResult1343 .propagateErr(); }}; | ||||
| 17206 | |||||
| 17207 | { | ||||
| 17208 | QM_TRY_INSPECT(const bool& exists,auto tryResult1344 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17210, mozilla::dom::quota::Severity::Error); return tryResult1344 .propagateErr(); } const bool& exists = tryResult1344.inspect (); | ||||
| 17209 | quotaManager->DoesClientDirectoryExist(auto tryResult1344 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17210, mozilla::dom::quota::Severity::Error); return tryResult1344 .propagateErr(); } const bool& exists = tryResult1344.inspect (); | ||||
| 17210 | ClientMetadata{mOriginMetadata, Client::IDB}))auto tryResult1344 = (quotaManager->DoesClientDirectoryExist ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1344.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->DoesClientDirectoryExist( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1344.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17210, mozilla::dom::quota::Severity::Error); return tryResult1344 .propagateErr(); } const bool& exists = tryResult1344.inspect ();; | ||||
| 17211 | if (!exists) { | ||||
| 17212 | return DatabasesNotAvailable(); | ||||
| 17213 | } | ||||
| 17214 | } | ||||
| 17215 | |||||
| 17216 | QM_TRY_INSPECT(auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17217 | const auto& clientDirectory,auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17218 | (["aManager, this]()auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17219 | -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> {auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17220 | if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) {auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17221 | QM_TRY_RETURN(quotaManager->EnsurePersistentClientIsInitialized(auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17222 | ClientMetadata{mOriginMetadata, Client::IDB}));auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17223 | }auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17224 | |||||
| 17225 | QM_TRY_RETURN(quotaManager->EnsureTemporaryClientIsInitialized(auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17226 | ClientMetadata{mOriginMetadata, Client::IDB},auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17227 | /* aCreateIfNonExistent */ true));auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17228 | }()auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect(); | ||||
| 17229 | .map([](const auto& res) { return res.first; })))auto tryResult1347 = ((["aManager, this]() -> mozilla ::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult > { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect (!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError ("quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})" , tryResult1345.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345 ;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized ( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if (( __builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom ::quota::HandleError("quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)" , tryResult1346.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346 ;}; }() .map([](const auto& res) { return res.first; }))) ; if ((__builtin_expect(!!(tryResult1347.isErr()), 0))) { mozilla ::dom::quota::HandleError("(["aManager, this]() -> mozilla::Result<std::pair<nsCOMPtr<nsIFile>, bool>, nsresult> { if (mPersistenceType == PERSISTENCE_TYPE_PERSISTENT) { {auto tryResult1345 = (quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})); if ((__builtin_expect(!!(tryResult1345.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsurePersistentClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB})\", tryResult1345.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17222, mozilla::dom::quota::Severity::Error); } return tryResult1345;}; } {auto tryResult1346 = (quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)); if ((__builtin_expect(!!(tryResult1346.isErr()), 0))) { mozilla::dom::quota::HandleError(\"quotaManager->EnsureTemporaryClientIsInitialized( ClientMetadata{mOriginMetadata, Client::IDB}, true)\", tryResult1346.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17227, mozilla::dom::quota::Severity::Error); } return tryResult1346;}; }() .map([](const auto& res) { return res.first; }))" , tryResult1347.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17229, mozilla::dom::quota::Severity::Error); return tryResult1347 .propagateErr(); } const auto& clientDirectory = tryResult1347 .inspect();; | ||||
| 17230 | |||||
| 17231 | QM_TRY_INSPECT(auto tryResult1348 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1348 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult1348.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17234, mozilla::dom::quota::Severity::Error); return tryResult1348 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult1348.inspect(); | ||||
| 17232 | (const auto& [subdirsToProcess, databaseFilenames]),auto tryResult1348 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1348 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult1348.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17234, mozilla::dom::quota::Severity::Error); return tryResult1348 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult1348.inspect(); | ||||
| 17233 | QuotaClient::GetDatabaseFilenames(*clientDirectory,auto tryResult1348 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1348 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult1348.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17234, mozilla::dom::quota::Severity::Error); return tryResult1348 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult1348.inspect(); | ||||
| 17234 | /* aCanceled */ Atomic<bool>{false}))auto tryResult1348 = (QuotaClient::GetDatabaseFilenames(*clientDirectory , Atomic<bool>{false})); if ((__builtin_expect(!!(tryResult1348 .isErr()), 0))) { mozilla::dom::quota::HandleError("QuotaClient::GetDatabaseFilenames(*clientDirectory, Atomic<bool>{false})" , tryResult1348.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17234, mozilla::dom::quota::Severity::Error); return tryResult1348 .propagateErr(); } const auto& [subdirsToProcess, databaseFilenames ] = tryResult1348.inspect();; | ||||
| 17235 | |||||
| 17236 | for (const auto& databaseFilename : databaseFilenames) { | ||||
| 17237 | QM_TRY_INSPECT(auto tryResult1349 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1349.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult1349.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17239, mozilla::dom::quota::Severity::Error); return tryResult1349 .propagateErr(); } const auto& databaseFile = tryResult1349 .inspect(); | ||||
| 17238 | const auto& databaseFile,auto tryResult1349 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1349.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult1349.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17239, mozilla::dom::quota::Severity::Error); return tryResult1349 .propagateErr(); } const auto& databaseFile = tryResult1349 .inspect(); | ||||
| 17239 | CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix))auto tryResult1349 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)); if ((__builtin_expect(!!(tryResult1349.isErr ()), 0))) { mozilla::dom::quota::HandleError("CloneFileAndAppend(*clientDirectory, databaseFilename + kSQLiteSuffix)" , tryResult1349.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17239, mozilla::dom::quota::Severity::Error); return tryResult1349 .propagateErr(); } const auto& databaseFile = tryResult1349 .inspect();; | ||||
| 17240 | |||||
| 17241 | nsString path; | ||||
| 17242 | databaseFile->GetPath(path); | ||||
| 17243 | |||||
| 17244 | // Use the snapshotted values from DoDirectoryWork which correctly | ||||
| 17245 | // snapshotted the state of any pending creations/upgrades. This does mean | ||||
| 17246 | // that we need to skip reporting databases that had a version of 0 at that | ||||
| 17247 | // time because they were still being created. In the event that any other | ||||
| 17248 | // creation or upgrade requests are made after our operation is created, | ||||
| 17249 | // this operation will block those, so it's not possible for this set of | ||||
| 17250 | // data to get out of sync. The snapshotting (using cached database name | ||||
| 17251 | // and version in DatabaseFileManager) also guarantees that we are not | ||||
| 17252 | // touching the SQLite database here on the QuotaManager I/O thread which | ||||
| 17253 | // is already open on the connection thread. | ||||
| 17254 | |||||
| 17255 | auto metadata = mDatabaseMetadataTable.Lookup(path); | ||||
| 17256 | if (metadata) { | ||||
| 17257 | if (metadata->version() != 0) { | ||||
| 17258 | mDatabaseMetadataArray.AppendElement(DatabaseMetadata( | ||||
| 17259 | metadata->name(), metadata->version(), mPersistenceType)); | ||||
| 17260 | } | ||||
| 17261 | |||||
| 17262 | continue; | ||||
| 17263 | } | ||||
| 17264 | |||||
| 17265 | // Since the database is not already open (there was no DatabaseFileManager | ||||
| 17266 | // for snapshotting in DoDirectoryWork which could provide us with the | ||||
| 17267 | // database name and version without needing to open the SQLite database), | ||||
| 17268 | // it is safe and necessary for us to open the database on this thread and | ||||
| 17269 | // retrieve its name and version. We do not need to worry about racing a | ||||
| 17270 | // database open because database opens can only be processed on this | ||||
| 17271 | // thread and we are performing the steps below synchronously. | ||||
| 17272 | |||||
| 17273 | QM_TRY_INSPECT(auto tryResult1350 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1350.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17276, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); } const auto& fmDirectory = tryResult1350 .inspect(); | ||||
| 17274 | const auto& fmDirectory,auto tryResult1350 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1350.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17276, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); } const auto& fmDirectory = tryResult1350 .inspect(); | ||||
| 17275 | CloneFileAndAppend(*clientDirectory,auto tryResult1350 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1350.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17276, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); } const auto& fmDirectory = tryResult1350 .inspect(); | ||||
| 17276 | databaseFilename + kFileManagerDirectoryNameSuffix))auto tryResult1350 = (CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)); if ((__builtin_expect(! !(tryResult1350.isErr()), 0))) { mozilla::dom::quota::HandleError ("CloneFileAndAppend(*clientDirectory, databaseFilename + kFileManagerDirectoryNameSuffix)" , tryResult1350.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17276, mozilla::dom::quota::Severity::Error); return tryResult1350 .propagateErr(); } const auto& fmDirectory = tryResult1350 .inspect();; | ||||
| 17277 | |||||
| 17278 | QM_TRY_UNWRAP(auto tryResult1351 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17282, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1351.unwrap(); | ||||
| 17279 | const NotNull<nsCOMPtr<mozIStorageConnection>> connection,auto tryResult1351 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17282, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1351.unwrap(); | ||||
| 17280 | CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(),auto tryResult1351 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17282, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1351.unwrap(); | ||||
| 17281 | mOriginMetadata.mOrigin, mDirectoryLockId,auto tryResult1351 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17282, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1351.unwrap(); | ||||
| 17282 | TelemetryIdForFile(databaseFile), Nothing{}))auto tryResult1351 = (CreateStorageConnection(*databaseFile, * fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId , TelemetryIdForFile(databaseFile), Nothing{})); if ((__builtin_expect (!!(tryResult1351.isErr()), 0))) { mozilla::dom::quota::HandleError ("CreateStorageConnection(*databaseFile, *fmDirectory, VoidString(), mOriginMetadata.mOrigin, mDirectoryLockId, TelemetryIdForFile(databaseFile), Nothing{})" , tryResult1351.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17282, mozilla::dom::quota::Severity::Error); return tryResult1351 .propagateErr(); } const NotNull<nsCOMPtr<mozIStorageConnection >> connection = tryResult1351.unwrap();; | ||||
| 17283 | |||||
| 17284 | { | ||||
| 17285 | // Load version information. | ||||
| 17286 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1352 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17289, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); } const auto& stmt = tryResult1352.inspect (); | ||||
| 17287 | CreateAndExecuteSingleStepStatement<auto tryResult1352 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17289, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); } const auto& stmt = tryResult1352.inspect (); | ||||
| 17288 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1352 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17289, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); } const auto& stmt = tryResult1352.inspect (); | ||||
| 17289 | *connection, "SELECT name, version FROM database"_ns))auto tryResult1352 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, "SELECT name, version FROM database"_ns )); if ((__builtin_expect(!!(tryResult1352.isErr()), 0))) { mozilla ::dom::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( *connection, \"SELECT name, version FROM database\"_ns)" , tryResult1352.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17289, mozilla::dom::quota::Severity::Error); return tryResult1352 .propagateErr(); } const auto& stmt = tryResult1352.inspect ();; | ||||
| 17290 | |||||
| 17291 | QM_TRY(OkIf(stmt), NS_ERROR_FILE_CORRUPTED){auto tryResult1353 = (OkIf(stmt)); static_assert(std::is_empty_v <typename decltype(tryResult1353)::ok_type>); if ((__builtin_expect (!!(tryResult1353.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1353.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(stmt)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17291, 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); }}; | ||||
| 17292 | |||||
| 17293 | QM_TRY_INSPECT(auto tryResult1354 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17295, mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); } const auto& databaseName = tryResult1354 .inspect(); | ||||
| 17294 | const auto& databaseName,auto tryResult1354 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17295, mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); } const auto& databaseName = tryResult1354 .inspect(); | ||||
| 17295 | MOZ_TO_RESULT_INVOKE_MEMBER_TYPED(nsString, stmt, GetString, 0))auto tryResult1354 = (::mozilla::ToResultInvoke< nsString> ( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype (stmt)>::GetString), (stmt), 0)); if ((__builtin_expect(!! (tryResult1354.isErr()), 0))) { mozilla::dom::quota::HandleError ("::mozilla::ToResultInvoke< nsString>( ::std::mem_fn( &::mozilla::detail::DerefedType<decltype(stmt)>::GetString), (stmt), 0)" , tryResult1354.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17295, mozilla::dom::quota::Severity::Error); return tryResult1354 .propagateErr(); } const auto& databaseName = tryResult1354 .inspect();; | ||||
| 17296 | |||||
| 17297 | QM_TRY_INSPECT(const int64_t& version,auto tryResult1355 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1355.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17298, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); } const int64_t& version = tryResult1355 .inspect(); | ||||
| 17298 | MOZ_TO_RESULT_INVOKE_MEMBER(stmt, GetInt64, 1))auto tryResult1355 = (::mozilla::ToResultInvokeMember( (stmt) , &::mozilla::detail::DerefedType<decltype(stmt)>:: GetInt64 , 1)); if ((__builtin_expect(!!(tryResult1355.isErr( )), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (stmt), &::mozilla::detail::DerefedType<decltype(stmt)>::GetInt64 , 1)" , tryResult1355.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17298, mozilla::dom::quota::Severity::Error); return tryResult1355 .propagateErr(); } const int64_t& version = tryResult1355 .inspect();; | ||||
| 17299 | |||||
| 17300 | mDatabaseMetadataArray.AppendElement( | ||||
| 17301 | DatabaseMetadata(databaseName, version, mPersistenceType)); | ||||
| 17302 | } | ||||
| 17303 | } | ||||
| 17304 | |||||
| 17305 | mState = State::SendingResults; | ||||
| 17306 | |||||
| 17307 | QM_TRY(MOZ_TO_RESULT({auto tryResult1356 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect (!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1356.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17308, mozilla::dom::quota::Severity::Error); return tryResult1356 .propagateErr(); }} | ||||
| 17308 | DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))){auto tryResult1356 = (ToResult(DispatchThisAfterProcessingCurrentEvent (mOwningEventTarget))); static_assert(std::is_empty_v<typename decltype(tryResult1356)::ok_type>); if ((__builtin_expect (!!(tryResult1356.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DispatchThisAfterProcessingCurrentEvent(mOwningEventTarget))" , tryResult1356.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17308, mozilla::dom::quota::Severity::Error); return tryResult1356 .propagateErr(); }}; | ||||
| 17309 | |||||
| 17310 | return NS_OK; | ||||
| 17311 | } | ||||
| 17312 | |||||
| 17313 | nsresult GetDatabasesOp::BeginVersionChange() { | ||||
| 17314 | 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", 17314 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17314); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17315 | } | ||||
| 17316 | |||||
| 17317 | bool GetDatabasesOp::AreActorsAlive() { | ||||
| 17318 | 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", 17318 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17318); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17319 | } | ||||
| 17320 | |||||
| 17321 | void GetDatabasesOp::SendBlockedNotification() { | ||||
| 17322 | 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", 17322 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17322); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17323 | } | ||||
| 17324 | |||||
| 17325 | nsresult GetDatabasesOp::DispatchToWorkThread() { | ||||
| 17326 | 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", 17326 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17327 | } | ||||
| 17328 | |||||
| 17329 | nsresult GetDatabasesOp::DoVersionUpdate() { | ||||
| 17330 | 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", 17330 ); AnnotateMozCrashReason("MOZ_CRASH(" "Not implemented because this should be unreachable." ")"); do { MOZ_CrashSequence(__null, 17330); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 17331 | } | ||||
| 17332 | |||||
| 17333 | void GetDatabasesOp::SendResults() { | ||||
| 17334 | AssertIsOnOwningThread(); | ||||
| 17335 | 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" , 17335); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mState == State::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17335); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17336 | |||||
| 17337 | #ifdef DEBUG1 | ||||
| 17338 | NoteActorDestroyed(); | ||||
| 17339 | #endif | ||||
| 17340 | |||||
| 17341 | if (HasFailed()) { | ||||
| 17342 | mResolver(ClampResultCode(ResultCode())); | ||||
| 17343 | } else { | ||||
| 17344 | std::sort(mDatabaseMetadataArray.begin(), mDatabaseMetadataArray.end(), | ||||
| 17345 | [](const auto& a, const auto& b) { return a.name() < b.name(); }); | ||||
| 17346 | mResolver(mDatabaseMetadataArray); | ||||
| 17347 | } | ||||
| 17348 | |||||
| 17349 | { | ||||
| 17350 | auto destroyingDirectoryLockHandle = std::move(mDirectoryLockHandle); | ||||
| 17351 | } | ||||
| 17352 | |||||
| 17353 | CleanupMetadata(); | ||||
| 17354 | |||||
| 17355 | FinishSendResults(); | ||||
| 17356 | } | ||||
| 17357 | |||||
| 17358 | TransactionDatabaseOperationBase::TransactionDatabaseOperationBase( | ||||
| 17359 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId) | ||||
| 17360 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | ||||
| 17361 | aTransaction->GetLoggingInfo()->NextRequestSN()), | ||||
| 17362 | mTransaction(WrapNotNull(std::move(aTransaction))), | ||||
| 17363 | mRequestId(aRequestId), | ||||
| 17364 | mTransactionIsAborted((*mTransaction)->IsAborted()), | ||||
| 17365 | mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) { | ||||
| 17366 | 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", 17366 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 17366); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17367 | } | ||||
| 17368 | |||||
| 17369 | TransactionDatabaseOperationBase::TransactionDatabaseOperationBase( | ||||
| 17370 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 17371 | uint64_t aLoggingSerialNumber) | ||||
| 17372 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | ||||
| 17373 | aLoggingSerialNumber), | ||||
| 17374 | mTransaction(WrapNotNull(std::move(aTransaction))), | ||||
| 17375 | mRequestId(aRequestId), | ||||
| 17376 | mTransactionIsAborted((*mTransaction)->IsAborted()), | ||||
| 17377 | mTransactionLoggingSerialNumber((*mTransaction)->LoggingSerialNumber()) {} | ||||
| 17378 | |||||
| 17379 | TransactionDatabaseOperationBase::~TransactionDatabaseOperationBase() { | ||||
| 17380 | 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", 17380 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Completed" ")"); do { MOZ_CrashSequence(__null, 17380); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17381 | 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", 17381 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mNotedActiveRequest" ")"); do { MOZ_CrashSequence(__null, 17381); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17382 | 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" , 17384); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { MOZ_CrashSequence(__null, 17384); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17383 | "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" , 17384); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { MOZ_CrashSequence(__null, 17384); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17384 | "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" , 17384); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mTransaction" ") (" "TransactionDatabaseOperationBase::Cleanup() was not called by a " "subclass!" ")"); do { MOZ_CrashSequence(__null, 17384); __attribute__ ((nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17385 | } | ||||
| 17386 | |||||
| 17387 | #ifdef DEBUG1 | ||||
| 17388 | |||||
| 17389 | void TransactionDatabaseOperationBase::AssertIsOnConnectionThread() const { | ||||
| 17390 | (*mTransaction)->AssertIsOnConnectionThread(); | ||||
| 17391 | } | ||||
| 17392 | |||||
| 17393 | #endif // DEBUG | ||||
| 17394 | |||||
| 17395 | uint64_t TransactionDatabaseOperationBase::StartOnConnectionPool( | ||||
| 17396 | const nsID& aBackgroundChildLoggingId, const nsACString& aDatabaseId, | ||||
| 17397 | int64_t aLoggingSerialNumber, const nsTArray<nsString>& aObjectStoreNames, | ||||
| 17398 | bool aIsWriteTransaction) { | ||||
| 17399 | AssertIsOnOwningThread(); | ||||
| 17400 | 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", 17400 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { MOZ_CrashSequence(__null, 17400); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17401 | |||||
| 17402 | // Must set mInternalState before dispatching otherwise we will race with the | ||||
| 17403 | // connection thread. | ||||
| 17404 | mInternalState = InternalState::DatabaseWork; | ||||
| 17405 | |||||
| 17406 | return gConnectionPool->Start(aBackgroundChildLoggingId, aDatabaseId, | ||||
| 17407 | aLoggingSerialNumber, aObjectStoreNames, | ||||
| 17408 | aIsWriteTransaction, this); | ||||
| 17409 | } | ||||
| 17410 | |||||
| 17411 | void TransactionDatabaseOperationBase::DispatchToConnectionPool() { | ||||
| 17412 | AssertIsOnOwningThread(); | ||||
| 17413 | 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", 17413 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { MOZ_CrashSequence(__null, 17413); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17414 | |||||
| 17415 | (void)this->Run(); | ||||
| 17416 | } | ||||
| 17417 | |||||
| 17418 | void TransactionDatabaseOperationBase::RunOnConnectionThread() { | ||||
| 17419 | 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", 17419 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 17419); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17420 | 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", 17420 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::DatabaseWork" ")"); do { MOZ_CrashSequence(__null, 17420); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17421 | 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" , 17421); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!HasFailed()" ")"); do { MOZ_CrashSequence(__null, 17421); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17422 | |||||
| 17423 | AUTO_PROFILER_LABEL("TransactionDatabaseOperationBase::RunOnConnectionThread",mozilla::AutoProfilerLabel raiiObject17424( "TransactionDatabaseOperationBase::RunOnConnectionThread" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 17424 | DOM)mozilla::AutoProfilerLabel raiiObject17424( "TransactionDatabaseOperationBase::RunOnConnectionThread" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17425 | |||||
| 17426 | // There are several cases where we don't actually have to to any work here. | ||||
| 17427 | |||||
| 17428 | if (mTransactionIsAborted || (*mTransaction)->IsInvalidatedOnAnyThread()) { | ||||
| 17429 | // This transaction is already set to be aborted or invalidated. | ||||
| 17430 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 17431 | } else if (!OperationMayProceed()) { | ||||
| 17432 | // The operation was canceled in some way, likely because the child process | ||||
| 17433 | // has crashed. | ||||
| 17434 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17434, idbInternalErrMsg.get()); } while (0); | ||||
| 17435 | OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 17436 | } else { | ||||
| 17437 | Database& database = (*mTransaction)->GetMutableDatabase(); | ||||
| 17438 | |||||
| 17439 | // Here we're actually going to perform the database operation. | ||||
| 17440 | nsresult rv = database.EnsureConnection(); | ||||
| 17441 | 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" , 17441)) { | ||||
| 17442 | SetFailureCode(rv); | ||||
| 17443 | } else { | ||||
| 17444 | DatabaseConnection* connection = database.GetConnection(); | ||||
| 17445 | 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" , 17445); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { MOZ_CrashSequence(__null, 17445); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17446 | |||||
| 17447 | auto& storageConnection = connection->MutableStorageConnection(); | ||||
| 17448 | |||||
| 17449 | AutoSetProgressHandler autoProgress; | ||||
| 17450 | if (mLoggingSerialNumber) { | ||||
| 17451 | rv = autoProgress.Register(storageConnection, this); | ||||
| 17452 | 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" , 17452)) { | ||||
| 17453 | SetFailureCode(rv); | ||||
| 17454 | } | ||||
| 17455 | } | ||||
| 17456 | |||||
| 17457 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | ||||
| 17458 | if (mLoggingSerialNumber) { | ||||
| 17459 | 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 ) | ||||
| 17460 | "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 ) | ||||
| 17461 | 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 ) | ||||
| 17462 | 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 ); | ||||
| 17463 | } | ||||
| 17464 | |||||
| 17465 | rv = DoDatabaseWork(connection); | ||||
| 17466 | |||||
| 17467 | if (mLoggingSerialNumber) { | ||||
| 17468 | 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) | ||||
| 17469 | "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) | ||||
| 17470 | 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) | ||||
| 17471 | 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); | ||||
| 17472 | } | ||||
| 17473 | |||||
| 17474 | if (NS_FAILED(rv)((bool)(__builtin_expect(!!(NS_FAILED_impl(rv)), 0)))) { | ||||
| 17475 | SetFailureCode(rv); | ||||
| 17476 | } | ||||
| 17477 | } | ||||
| 17478 | } | ||||
| 17479 | } | ||||
| 17480 | |||||
| 17481 | // Must set mInternalState before dispatching otherwise we will race with the | ||||
| 17482 | // owning thread. | ||||
| 17483 | if (HasPreprocessInfo()) { | ||||
| 17484 | mInternalState = InternalState::SendingPreprocess; | ||||
| 17485 | } else { | ||||
| 17486 | mInternalState = InternalState::SendingResults; | ||||
| 17487 | } | ||||
| 17488 | |||||
| 17489 | 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", 17489 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(mOwningEventTarget->Dispatch(this, nsIEventTarget::DISPATCH_NORMAL))" ")"); do { MOZ_CrashSequence(__null, 17489); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17490 | } | ||||
| 17491 | |||||
| 17492 | bool TransactionDatabaseOperationBase::HasPreprocessInfo() { return false; } | ||||
| 17493 | |||||
| 17494 | nsresult TransactionDatabaseOperationBase::SendPreprocessInfo() { | ||||
| 17495 | return NS_OK; | ||||
| 17496 | } | ||||
| 17497 | |||||
| 17498 | void TransactionDatabaseOperationBase::NoteContinueReceived() { | ||||
| 17499 | AssertIsOnOwningThread(); | ||||
| 17500 | 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", 17500 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::WaitingForContinue" ")"); do { MOZ_CrashSequence(__null, 17500); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17501 | |||||
| 17502 | mWaitingForContinue = false; | ||||
| 17503 | |||||
| 17504 | mInternalState = InternalState::SendingResults; | ||||
| 17505 | |||||
| 17506 | // This TransactionDatabaseOperationBase can only be held alive by the IPDL. | ||||
| 17507 | // Run() can end up with clearing that last reference. So we need to add | ||||
| 17508 | // a self reference here. | ||||
| 17509 | RefPtr<TransactionDatabaseOperationBase> kungFuDeathGrip = this; | ||||
| 17510 | |||||
| 17511 | (void)this->Run(); | ||||
| 17512 | } | ||||
| 17513 | |||||
| 17514 | void TransactionDatabaseOperationBase::NoteTransactionActiveRequest() { | ||||
| 17515 | AssertIsOnOwningThread(); | ||||
| 17516 | 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", 17516 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mNotedActiveRequest" ")"); do { MOZ_CrashSequence(__null, 17516); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17517 | |||||
| 17518 | (*mTransaction)->NoteActiveRequest(); | ||||
| 17519 | mNotedActiveRequest = true; | ||||
| 17520 | } | ||||
| 17521 | |||||
| 17522 | void TransactionDatabaseOperationBase::SendToConnectionPool() { | ||||
| 17523 | AssertIsOnOwningThread(); | ||||
| 17524 | 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", 17524 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { MOZ_CrashSequence(__null, 17524); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17525 | |||||
| 17526 | // Must set mInternalState before dispatching otherwise we will race with the | ||||
| 17527 | // connection thread. | ||||
| 17528 | mInternalState = InternalState::DatabaseWork; | ||||
| 17529 | |||||
| 17530 | gConnectionPool->StartOp((*mTransaction)->TransactionId(), this); | ||||
| 17531 | |||||
| 17532 | NoteTransactionActiveRequest(); | ||||
| 17533 | } | ||||
| 17534 | |||||
| 17535 | void TransactionDatabaseOperationBase::SendPreprocess() { | ||||
| 17536 | AssertIsOnOwningThread(); | ||||
| 17537 | 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", 17537 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess" ")"); do { MOZ_CrashSequence(__null, 17537); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17538 | |||||
| 17539 | SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ true); | ||||
| 17540 | } | ||||
| 17541 | |||||
| 17542 | void TransactionDatabaseOperationBase::SendResults() { | ||||
| 17543 | AssertIsOnOwningThread(); | ||||
| 17544 | 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", 17544 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17544); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17545 | |||||
| 17546 | SendPreprocessInfoOrResults(/* aSendPreprocessInfo */ false); | ||||
| 17547 | } | ||||
| 17548 | |||||
| 17549 | void TransactionDatabaseOperationBase::SendPreprocessInfoOrResults( | ||||
| 17550 | bool aSendPreprocessInfo) { | ||||
| 17551 | AssertIsOnOwningThread(); | ||||
| 17552 | 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", 17553 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17553); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17553 | 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", 17553 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingPreprocess || mInternalState == InternalState::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17553); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17554 | |||||
| 17555 | // The flag is raised only when there is no mUpdateRefcountFunction for the | ||||
| 17556 | // executing operation. It assume that is because the previous | ||||
| 17557 | // StartTransactionOp was failed to begin a write transaction and it reported | ||||
| 17558 | // when this operation has already jumped to the Connection thread. | ||||
| 17559 | 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" , 17560); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()" ")"); do { MOZ_CrashSequence(__null, 17560); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 17560 | (*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" , 17560); AnnotateMozCrashReason("MOZ_DIAGNOSTIC_ASSERT" "(" "(*mTransaction)->IsAborted()" ")"); do { MOZ_CrashSequence(__null, 17560); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 17561 | |||||
| 17562 | if (NS_WARN_IF(IsActorDestroyed())NS_warn_if_impl(IsActorDestroyed(), "IsActorDestroyed()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17562)) { | ||||
| 17563 | // Normally we wouldn't need to send any notifications if the actor was | ||||
| 17564 | // already destroyed, but this can be a VersionChangeOp which needs to | ||||
| 17565 | // notify its parent operation (OpenDatabaseOp) about the failure. | ||||
| 17566 | // So SendFailureResult needs to be called even when the actor was | ||||
| 17567 | // destroyed. Normal operations redundantly check if the actor was | ||||
| 17568 | // destroyed in SendSuccessResult and SendFailureResult, therefore it's | ||||
| 17569 | // ok to call it in all cases here. | ||||
| 17570 | if (!HasFailed()) { | ||||
| 17571 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17571, idbInternalErrMsg.get()); } while (0); | ||||
| 17572 | SetFailureCode(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR); | ||||
| 17573 | } | ||||
| 17574 | } else if ((*mTransaction)->IsInvalidated() || (*mTransaction)->IsAborted()) { | ||||
| 17575 | // Aborted transactions always see their requests fail with ABORT_ERR, | ||||
| 17576 | // even if the request succeeded or failed with another error. | ||||
| 17577 | OverrideFailureCode(NS_ERROR_DOM_INDEXEDDB_ABORT_ERR); | ||||
| 17578 | } | ||||
| 17579 | |||||
| 17580 | const auto result = [aSendPreprocessInfo, this]() -> TransactionOpResult { | ||||
| 17581 | if (HasFailed()) { | ||||
| 17582 | return ResultCode(); | ||||
| 17583 | } | ||||
| 17584 | if (aSendPreprocessInfo) { | ||||
| 17585 | // This should not release the IPDL reference. | ||||
| 17586 | return SendPreprocessInfo(); | ||||
| 17587 | } | ||||
| 17588 | // This may release the IPDL reference. | ||||
| 17589 | return SendSuccessResult(); | ||||
| 17590 | }(); | ||||
| 17591 | |||||
| 17592 | if (NS_FAILED(result.mCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(result.mCode)), 0) ))) { | ||||
| 17593 | SetFailureCodeIfUnset(result.mCode); | ||||
| 17594 | |||||
| 17595 | // This should definitely release the IPDL reference. | ||||
| 17596 | if (!SendFailureResult(result)) { | ||||
| 17597 | // Abort the transaction. | ||||
| 17598 | (*mTransaction)->Abort(result.mCode, /* aForce */ false); | ||||
| 17599 | } | ||||
| 17600 | } | ||||
| 17601 | |||||
| 17602 | if (aSendPreprocessInfo && !HasFailed()) { | ||||
| 17603 | mInternalState = InternalState::WaitingForContinue; | ||||
| 17604 | |||||
| 17605 | mWaitingForContinue = true; | ||||
| 17606 | } else { | ||||
| 17607 | if (mNotedActiveRequest) { | ||||
| 17608 | (*mTransaction)->NoteFinishedRequest(mRequestId, ResultCode()); | ||||
| 17609 | mNotedActiveRequest = false; | ||||
| 17610 | } | ||||
| 17611 | |||||
| 17612 | gConnectionPool->FinishOp((*mTransaction)->TransactionId()); | ||||
| 17613 | |||||
| 17614 | Cleanup(); | ||||
| 17615 | |||||
| 17616 | mInternalState = InternalState::Completed; | ||||
| 17617 | } | ||||
| 17618 | } | ||||
| 17619 | |||||
| 17620 | bool TransactionDatabaseOperationBase::Init(TransactionBase& aTransaction) { | ||||
| 17621 | AssertIsOnBackgroundThread(); | ||||
| 17622 | 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", 17622 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::Initial" ")"); do { MOZ_CrashSequence(__null, 17622); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17623 | |||||
| 17624 | return true; | ||||
| 17625 | } | ||||
| 17626 | |||||
| 17627 | void TransactionDatabaseOperationBase::Cleanup() { | ||||
| 17628 | AssertIsOnOwningThread(); | ||||
| 17629 | 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", 17629 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mInternalState == InternalState::SendingResults" ")"); do { MOZ_CrashSequence(__null, 17629); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17630 | |||||
| 17631 | mTransaction.destroy(); | ||||
| 17632 | } | ||||
| 17633 | |||||
| 17634 | NS_IMETHODIMPnsresult | ||||
| 17635 | TransactionDatabaseOperationBase::Run() { | ||||
| 17636 | switch (mInternalState) { | ||||
| 17637 | case InternalState::Initial: | ||||
| 17638 | SendToConnectionPool(); | ||||
| 17639 | return NS_OK; | ||||
| 17640 | |||||
| 17641 | case InternalState::DatabaseWork: | ||||
| 17642 | RunOnConnectionThread(); | ||||
| 17643 | return NS_OK; | ||||
| 17644 | |||||
| 17645 | case InternalState::SendingPreprocess: | ||||
| 17646 | SendPreprocess(); | ||||
| 17647 | return NS_OK; | ||||
| 17648 | |||||
| 17649 | case InternalState::SendingResults: | ||||
| 17650 | SendResults(); | ||||
| 17651 | return NS_OK; | ||||
| 17652 | |||||
| 17653 | default: | ||||
| 17654 | MOZ_CRASH("Bad state!")do { do { } while (false); MOZ_ReportCrash("" "Bad state!", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17654); AnnotateMozCrashReason("MOZ_CRASH(" "Bad state!" ")" ); do { MOZ_CrashSequence(__null, 17654); __attribute__((nomerge )) ::abort(); } while (false); } while (false); | ||||
| 17655 | } | ||||
| 17656 | } | ||||
| 17657 | |||||
| 17658 | TransactionBase::CommitOp::CommitOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 17659 | nsresult aResultCode) | ||||
| 17660 | : DatabaseOperationBase(aTransaction->GetLoggingInfo()->Id(), | ||||
| 17661 | aTransaction->GetLoggingInfo()->NextRequestSN()), | ||||
| 17662 | mTransaction(std::move(aTransaction)), | ||||
| 17663 | mResultCode(aResultCode) { | ||||
| 17664 | 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" , 17664); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17664); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17665 | 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", 17665 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "LoggingSerialNumber()" ")"); do { MOZ_CrashSequence(__null, 17665); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17666 | } | ||||
| 17667 | |||||
| 17668 | nsresult TransactionBase::CommitOp::WriteAutoIncrementCounts() { | ||||
| 17669 | 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" , 17669); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17669); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17670 | mTransaction->AssertIsOnConnectionThread(); | ||||
| 17671 | 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", 17674 ); 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, 17674); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17672 | 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", 17674 ); 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, 17674); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17673 | 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", 17674 ); 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, 17674); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17674 | 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", 17674 ); 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, 17674); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17675 | |||||
| 17676 | const nsTArray<SafeRefPtr<FullObjectStoreMetadata>>& metadataArray = | ||||
| 17677 | mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray; | ||||
| 17678 | |||||
| 17679 | if (!metadataArray.IsEmpty()) { | ||||
| 17680 | DatabaseConnection* connection = | ||||
| 17681 | mTransaction->GetDatabase().GetConnection(); | ||||
| 17682 | 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" , 17682); AnnotateMozCrashReason("MOZ_ASSERT" "(" "connection" ")"); do { MOZ_CrashSequence(__null, 17682); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17683 | |||||
| 17684 | // The parameter names are not used, parameters are bound by index only | ||||
| 17685 | // locally in the same function. | ||||
| 17686 | auto stmt = DatabaseConnection::LazyStatement( | ||||
| 17687 | *connection, | ||||
| 17688 | "UPDATE object_store " | ||||
| 17689 | "SET auto_increment = :auto_increment WHERE id " | ||||
| 17690 | "= :object_store_id;"_ns); | ||||
| 17691 | |||||
| 17692 | for (const auto& metadata : metadataArray) { | ||||
| 17693 | 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", 17693 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!metadata->mDeleted" ")"); do { MOZ_CrashSequence(__null, 17693); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17694 | |||||
| 17695 | const int64_t nextAutoIncrementId = [&metadata] { | ||||
| 17696 | const auto&& lockedAutoIncrementIds = | ||||
| 17697 | metadata->mAutoIncrementIds.Lock(); | ||||
| 17698 | return lockedAutoIncrementIds->next; | ||||
| 17699 | }(); | ||||
| 17700 | |||||
| 17701 | 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", 17701 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "nextAutoIncrementId > 1" ")"); do { MOZ_CrashSequence(__null, 17701); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17702 | |||||
| 17703 | QM_TRY_INSPECT(const auto& borrowedStmt, stmt.Borrow())auto tryResult1357 = (stmt.Borrow()); if ((__builtin_expect(! !(tryResult1357.isErr()), 0))) { mozilla::dom::quota::HandleError ("stmt.Borrow()", tryResult1357.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17703, mozilla::dom::quota::Severity::Error); return tryResult1357 .propagateErr(); } const auto& borrowedStmt = tryResult1357 .inspect();; | ||||
| 17704 | |||||
| 17705 | QM_TRY(MOZ_TO_RESULT({auto tryResult1358 = (ToResult(borrowedStmt->BindInt64ByIndex (1, metadata->mCommonMetadata.id()))); static_assert(std:: is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))" , tryResult1358.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17706, mozilla::dom::quota::Severity::Error); return tryResult1358 .propagateErr(); }} | ||||
| 17706 | borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))){auto tryResult1358 = (ToResult(borrowedStmt->BindInt64ByIndex (1, metadata->mCommonMetadata.id()))); static_assert(std:: is_empty_v<typename decltype(tryResult1358)::ok_type>); if ((__builtin_expect(!!(tryResult1358.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(borrowedStmt->BindInt64ByIndex(1, metadata->mCommonMetadata.id()))" , tryResult1358.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17706, mozilla::dom::quota::Severity::Error); return tryResult1358 .propagateErr(); }}; | ||||
| 17707 | |||||
| 17708 | QM_TRY(MOZ_TO_RESULT({auto tryResult1359 = (ToResult(borrowedStmt->BindInt64ByIndex (0, nextAutoIncrementId))); static_assert(std::is_empty_v< typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect (!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))" , tryResult1359.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17709, mozilla::dom::quota::Severity::Error); return tryResult1359 .propagateErr(); }} | ||||
| 17709 | borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))){auto tryResult1359 = (ToResult(borrowedStmt->BindInt64ByIndex (0, nextAutoIncrementId))); static_assert(std::is_empty_v< typename decltype(tryResult1359)::ok_type>); if ((__builtin_expect (!!(tryResult1359.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(borrowedStmt->BindInt64ByIndex(0, nextAutoIncrementId))" , tryResult1359.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17709, mozilla::dom::quota::Severity::Error); return tryResult1359 .propagateErr(); }}; | ||||
| 17710 | |||||
| 17711 | QM_TRY(MOZ_TO_RESULT(borrowedStmt->Execute())){auto tryResult1360 = (ToResult(borrowedStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1360 )::ok_type>); if ((__builtin_expect(!!(tryResult1360.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedStmt->Execute())" , tryResult1360.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17711, mozilla::dom::quota::Severity::Error); return tryResult1360 .propagateErr(); }}; | ||||
| 17712 | } | ||||
| 17713 | } | ||||
| 17714 | |||||
| 17715 | return NS_OK; | ||||
| 17716 | } | ||||
| 17717 | |||||
| 17718 | void TransactionBase::CommitOp::CommitOrRollbackAutoIncrementCounts() { | ||||
| 17719 | 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" , 17719); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17719); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17720 | mTransaction->AssertIsOnConnectionThread(); | ||||
| 17721 | 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", 17724 ); 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, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17722 | 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", 17724 ); 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, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17723 | 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", 17724 ); 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, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17724 | 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", 17724 ); 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, 17724); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17725 | |||||
| 17726 | const auto& metadataArray = | ||||
| 17727 | mTransaction->mModifiedAutoIncrementObjectStoreMetadataArray; | ||||
| 17728 | |||||
| 17729 | if (!metadataArray.IsEmpty()) { | ||||
| 17730 | bool committed = NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )); | ||||
| 17731 | |||||
| 17732 | for (const auto& metadata : metadataArray) { | ||||
| 17733 | auto&& lockedAutoIncrementIds = metadata->mAutoIncrementIds.Lock(); | ||||
| 17734 | |||||
| 17735 | if (committed) { | ||||
| 17736 | lockedAutoIncrementIds->committed = lockedAutoIncrementIds->next; | ||||
| 17737 | } else { | ||||
| 17738 | lockedAutoIncrementIds->next = lockedAutoIncrementIds->committed; | ||||
| 17739 | } | ||||
| 17740 | } | ||||
| 17741 | } | ||||
| 17742 | } | ||||
| 17743 | |||||
| 17744 | #ifdef DEBUG1 | ||||
| 17745 | |||||
| 17746 | void TransactionBase::CommitOp::AssertForeignKeyConsistency( | ||||
| 17747 | DatabaseConnection* aConnection) { | ||||
| 17748 | 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" , 17748); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 17748); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17749 | 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" , 17749); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17749); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17750 | mTransaction->AssertIsOnConnectionThread(); | ||||
| 17751 | 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", 17751 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly" ")"); do { MOZ_CrashSequence(__null, 17751); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17752 | |||||
| 17753 | { | ||||
| 17754 | QM_TRY_INSPECT(auto tryResult1361 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1361.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17758, 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" , 17758); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17758); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1361.inspect(); | ||||
| 17755 | const auto& pragmaStmt,auto tryResult1361 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1361.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17758, 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" , 17758); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17758); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1361.inspect(); | ||||
| 17756 | CreateAndExecuteSingleStepStatement(auto tryResult1361 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1361.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17758, 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" , 17758); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17758); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1361.inspect(); | ||||
| 17757 | aConnection->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns),auto tryResult1361 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1361.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17758, 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" , 17758); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17758); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1361.inspect(); | ||||
| 17758 | QM_ASSERT_UNREACHABLE_VOID)auto tryResult1361 = (CreateAndExecuteSingleStepStatement( aConnection ->MutableStorageConnection(), "PRAGMA foreign_keys;"_ns)); if ((__builtin_expect(!!(tryResult1361.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1361.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement( aConnection->MutableStorageConnection(), \"PRAGMA foreign_keys;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17758, 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" , 17758); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17758); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& pragmaStmt = tryResult1361.inspect();; | ||||
| 17759 | |||||
| 17760 | int32_t foreignKeysEnabled; | ||||
| 17761 | 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", 17761 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(pragmaStmt->GetInt32(0, &foreignKeysEnabled))" ")"); do { MOZ_CrashSequence(__null, 17761); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17762 | |||||
| 17763 | 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" , 17764); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled" ") (" "Database doesn't have foreign keys enabled!" ")"); do { MOZ_CrashSequence(__null, 17764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 17764 | "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" , 17764); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foreignKeysEnabled" ") (" "Database doesn't have foreign keys enabled!" ")"); do { MOZ_CrashSequence(__null, 17764); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17765 | } | ||||
| 17766 | |||||
| 17767 | { | ||||
| 17768 | QM_TRY_INSPECT(const bool& foreignKeyError,auto tryResult1362 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1362.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17773, 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" , 17773); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17773); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1362.inspect(); | ||||
| 17769 | CreateAndExecuteSingleStepStatement<auto tryResult1362 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1362.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17773, 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" , 17773); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17773); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1362.inspect(); | ||||
| 17770 | SingleStepResult::ReturnNullIfNoResult>(auto tryResult1362 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1362.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17773, 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" , 17773); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17773); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1362.inspect(); | ||||
| 17771 | aConnection->MutableStorageConnection(),auto tryResult1362 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1362.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17773, 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" , 17773); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17773); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1362.inspect(); | ||||
| 17772 | "PRAGMA foreign_key_check;"_ns),auto tryResult1362 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1362.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17773, 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" , 17773); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17773); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1362.inspect(); | ||||
| 17773 | QM_ASSERT_UNREACHABLE_VOID)auto tryResult1362 = (CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection-> MutableStorageConnection(), "PRAGMA foreign_key_check;"_ns)); if ((__builtin_expect(!!(tryResult1362.isErr()), 0))) { [[maybe_unused ]] auto tryTempError = tryResult1362.unwrapErr(); mozilla::dom ::quota::HandleError("CreateAndExecuteSingleStepStatement< SingleStepResult::ReturnNullIfNoResult>( aConnection->MutableStorageConnection(), \"PRAGMA foreign_key_check;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17773, 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" , 17773); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17773); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& foreignKeyError = tryResult1362.inspect();; | ||||
| 17774 | |||||
| 17775 | 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" , 17775); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!foreignKeyError" ") (" "Database has inconsisistent foreign keys!" ")"); do { MOZ_CrashSequence(__null, 17775); __attribute__((nomerge)) :: abort(); } while (false); } } while (false); | ||||
| 17776 | } | ||||
| 17777 | } | ||||
| 17778 | |||||
| 17779 | #endif // DEBUG | ||||
| 17780 | |||||
| 17781 | 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" , 17781); 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; } | ||||
| 17782 | |||||
| 17783 | NS_IMETHODIMPnsresult | ||||
| 17784 | TransactionBase::CommitOp::Run() { | ||||
| 17785 | 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" , 17785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17785); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17786 | mTransaction->AssertIsOnConnectionThread(); | ||||
| 17787 | |||||
| 17788 | AUTO_PROFILER_LABEL("TransactionBase::CommitOp::Run", DOM)mozilla::AutoProfilerLabel raiiObject17788( "TransactionBase::CommitOp::Run" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17789 | |||||
| 17790 | 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 ) | ||||
| 17791 | "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 ) | ||||
| 17792 | 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 ) | ||||
| 17793 | 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 ); | ||||
| 17794 | |||||
| 17795 | if (mTransaction->GetMode() != IDBTransaction::Mode::ReadOnly && | ||||
| 17796 | mTransaction->mHasBeenActiveOnConnectionThread) { | ||||
| 17797 | if (DatabaseConnection* connection = | ||||
| 17798 | mTransaction->GetDatabase().GetConnection()) { | ||||
| 17799 | // May be null if the VersionChangeOp was canceled. | ||||
| 17800 | DatabaseConnection::UpdateRefcountFunction* fileRefcountFunction = | ||||
| 17801 | connection->GetUpdateRefcountFunction(); | ||||
| 17802 | |||||
| 17803 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 17804 | if (fileRefcountFunction) { | ||||
| 17805 | mResultCode = fileRefcountFunction->WillCommit(); | ||||
| 17806 | 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" , 17807); } } while (false) | ||||
| 17807 | "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" , 17807); } } while (false); | ||||
| 17808 | } | ||||
| 17809 | |||||
| 17810 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 17811 | mResultCode = WriteAutoIncrementCounts(); | ||||
| 17812 | 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" , 17813); } } while (false) | ||||
| 17813 | "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" , 17813); } } while (false); | ||||
| 17814 | |||||
| 17815 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) ))) { | ||||
| 17816 | AssertForeignKeyConsistency(connection); | ||||
| 17817 | |||||
| 17818 | mResultCode = connection->CommitWriteTransaction(); | ||||
| 17819 | 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" , 17819); } } while (false); | ||||
| 17820 | |||||
| 17821 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && | ||||
| 17822 | mTransaction->GetMode() == | ||||
| 17823 | IDBTransaction::Mode::ReadWriteFlush) { | ||||
| 17824 | mResultCode = connection->Checkpoint(); | ||||
| 17825 | } | ||||
| 17826 | |||||
| 17827 | if (NS_SUCCEEDED(mResultCode)((bool)(__builtin_expect(!!(!NS_FAILED_impl(mResultCode)), 1) )) && fileRefcountFunction) { | ||||
| 17828 | fileRefcountFunction->DidCommit(); | ||||
| 17829 | } | ||||
| 17830 | } | ||||
| 17831 | } | ||||
| 17832 | } | ||||
| 17833 | |||||
| 17834 | if (NS_FAILED(mResultCode)((bool)(__builtin_expect(!!(NS_FAILED_impl(mResultCode)), 0)) )) { | ||||
| 17835 | if (fileRefcountFunction) { | ||||
| 17836 | fileRefcountFunction->DidAbort(); | ||||
| 17837 | } | ||||
| 17838 | |||||
| 17839 | connection->RollbackWriteTransaction(); | ||||
| 17840 | } | ||||
| 17841 | |||||
| 17842 | CommitOrRollbackAutoIncrementCounts(); | ||||
| 17843 | |||||
| 17844 | connection->FinishWriteTransaction(); | ||||
| 17845 | |||||
| 17846 | if (mTransaction->GetMode() == IDBTransaction::Mode::Cleanup) { | ||||
| 17847 | connection->DoIdleProcessing(/* aNeedsCheckpoint */ true, | ||||
| 17848 | /* aInterrupted */ Atomic<bool>(false)); | ||||
| 17849 | |||||
| 17850 | connection->EnableQuotaChecks(); | ||||
| 17851 | } | ||||
| 17852 | } | ||||
| 17853 | } | ||||
| 17854 | |||||
| 17855 | 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 ) | ||||
| 17856 | "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 ) | ||||
| 17857 | 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 ) | ||||
| 17858 | 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 ); | ||||
| 17859 | |||||
| 17860 | 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()) | ||||
| 17861 | 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()) | ||||
| 17862 | 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()); | ||||
| 17863 | |||||
| 17864 | return NS_OK; | ||||
| 17865 | } | ||||
| 17866 | |||||
| 17867 | void TransactionBase::CommitOp::TransactionFinishedBeforeUnblock() { | ||||
| 17868 | AssertIsOnBackgroundThread(); | ||||
| 17869 | 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" , 17869); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17869); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17870 | |||||
| 17871 | AUTO_PROFILER_LABEL("CommitOp::TransactionFinishedBeforeUnblock", DOM)mozilla::AutoProfilerLabel raiiObject17871( "CommitOp::TransactionFinishedBeforeUnblock" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17872 | |||||
| 17873 | if (!IsActorDestroyed()) { | ||||
| 17874 | mTransaction->UpdateMetadata(mResultCode); | ||||
| 17875 | } | ||||
| 17876 | } | ||||
| 17877 | |||||
| 17878 | void TransactionBase::CommitOp::TransactionFinishedAfterUnblock() { | ||||
| 17879 | AssertIsOnBackgroundThread(); | ||||
| 17880 | 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" , 17880); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mTransaction" ")"); do { MOZ_CrashSequence(__null, 17880); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17881 | |||||
| 17882 | 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 )) | ||||
| 17883 | "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 )) | ||||
| 17884 | 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 )) | ||||
| 17885 | 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 )); | ||||
| 17886 | |||||
| 17887 | mTransaction->SendCompleteNotification(ClampResultCode(mResultCode)); | ||||
| 17888 | |||||
| 17889 | mTransaction->GetMutableDatabase().UnregisterTransaction(*mTransaction); | ||||
| 17890 | |||||
| 17891 | mTransaction = nullptr; | ||||
| 17892 | |||||
| 17893 | #ifdef DEBUG1 | ||||
| 17894 | // A bit hacky but the CommitOp is not really a normal database operation | ||||
| 17895 | // that is tied to an actor. Do this to make our assertions happy. | ||||
| 17896 | NoteActorDestroyed(); | ||||
| 17897 | #endif | ||||
| 17898 | } | ||||
| 17899 | |||||
| 17900 | TransactionOpResult VersionChangeTransactionOp::SendSuccessResult() { | ||||
| 17901 | AssertIsOnOwningThread(); | ||||
| 17902 | |||||
| 17903 | // Nothing to send here, the API assumes that this request always succeeds. | ||||
| 17904 | return NS_OK; | ||||
| 17905 | } | ||||
| 17906 | |||||
| 17907 | bool VersionChangeTransactionOp::SendFailureResult( | ||||
| 17908 | const TransactionOpResult& /* aResult */) { | ||||
| 17909 | AssertIsOnOwningThread(); | ||||
| 17910 | |||||
| 17911 | // The only option here is to cause the transaction to abort. | ||||
| 17912 | return false; | ||||
| 17913 | } | ||||
| 17914 | |||||
| 17915 | void VersionChangeTransactionOp::Cleanup() { | ||||
| 17916 | AssertIsOnOwningThread(); | ||||
| 17917 | |||||
| 17918 | #ifdef DEBUG1 | ||||
| 17919 | // A bit hacky but the VersionChangeTransactionOp is not generated in response | ||||
| 17920 | // to a child request like most other database operations. Do this to make our | ||||
| 17921 | // assertions happy. | ||||
| 17922 | NoteActorDestroyed(); | ||||
| 17923 | #endif | ||||
| 17924 | |||||
| 17925 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 17926 | } | ||||
| 17927 | |||||
| 17928 | nsresult CreateObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 17929 | 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" , 17929); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 17929); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17930 | aConnection->AssertIsOnConnectionThread(); | ||||
| 17931 | |||||
| 17932 | AUTO_PROFILER_LABEL("CreateObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject17932( "CreateObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 17933 | |||||
| 17934 | #ifdef DEBUG1 | ||||
| 17935 | { | ||||
| 17936 | // Make sure that we're not creating an object store with the same name as | ||||
| 17937 | // another that already exists. This should be impossible because we should | ||||
| 17938 | // have thrown an error long before now... | ||||
| 17939 | // The parameter names are not used, parameters are bound by index only | ||||
| 17940 | // locally in the same function. | ||||
| 17941 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17942 | aConnectionauto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17943 | ->BorrowAndExecuteSingleStepStatement(auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17944 | "SELECT name "auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17945 | "FROM object_store "auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17946 | "WHERE name = :name;"_ns,auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17947 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17948 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17949 | 0, self.mMetadata.name())));auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17950 | return Ok{};auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17951 | })auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17952 | .map(IsSome),auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect(); | ||||
| 17953 | QM_ASSERT_UNREACHABLE)auto tryResult1364 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex ( 0, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect (!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))" , tryResult1363.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17949, mozilla::dom::quota::Severity::Error); return tryResult1363 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1364.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1364.unwrapErr(); mozilla::dom::quota::HandleError ("aConnection ->BorrowAndExecuteSingleStepStatement( \"SELECT name \" \"FROM object_store \" \"WHERE name = :name;\"_ns, [&self = *this](auto& stmt) -> Result<Ok, nsresult> { {auto tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17953, 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 tryResult1363 = (ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1363)::ok_type>); if ((__builtin_expect(!!(tryResult1363.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 0, self.mMetadata.name()))\", tryResult1363.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17949, mozilla::dom::quota::Severity::Error); return tryResult1363.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" , 17953); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 17953); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1364.inspect();; | ||||
| 17954 | |||||
| 17955 | 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" , 17955); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { MOZ_CrashSequence(__null, 17955); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17956 | } | ||||
| 17957 | #endif | ||||
| 17958 | |||||
| 17959 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 17960 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1365 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365 .isErr()), 0))) { auto tryTempError = tryResult1365.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17965, 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)); }} | ||||
| 17961 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1365 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365 .isErr()), 0))) { auto tryTempError = tryResult1365.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17965, 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)); }} | ||||
| 17962 | ,{auto tryResult1365 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365 .isErr()), 0))) { auto tryTempError = tryResult1365.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17965, 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)); }} | ||||
| 17963 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1365 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365 .isErr()), 0))) { auto tryTempError = tryResult1365.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17965, 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)); }} | ||||
| 17964 | #endif{auto tryResult1365 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365 .isErr()), 0))) { auto tryTempError = tryResult1365.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17965, 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)); }} | ||||
| 17965 | ){auto tryResult1365 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1365)::ok_type>); if ((__builtin_expect(!!(tryResult1365 .isErr()), 0))) { auto tryTempError = tryResult1365.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17965, 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)); }}; | ||||
| 17966 | |||||
| 17967 | // The parameter names are not used, parameters are bound by index only | ||||
| 17968 | // locally in the same function. | ||||
| 17969 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17970 | "INSERT INTO object_store (id, auto_increment, name, key_path) "{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17971 | "VALUES (:id, :auto_increment, :name, :key_path);"_ns,{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17972 | [&metadata ={auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17973 | mMetadata](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17974 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17975 | |||||
| 17976 | QM_TRY(MOZ_TO_RESULT({auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17977 | stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0)));{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17978 | |||||
| 17979 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(2, metadata.name())));{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17980 | |||||
| 17981 | if (metadata.keyPath().IsValid()) {{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17982 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex({auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17983 | 3, metadata.keyPath().SerializeToString())));{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17984 | } else {{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17985 | QM_TRY(MOZ_TO_RESULT(stmt.BindNullByIndex(3)));{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17986 | }{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17987 | |||||
| 17988 | return Ok{};{auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }} | ||||
| 17989 | }))){auto tryResult1371 = (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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex (0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect (!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))", tryResult1366 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17974, mozilla::dom::quota::Severity::Error); return tryResult1366 .propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex (1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect (!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))" , tryResult1367.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17977, mozilla::dom::quota::Severity::Error); return tryResult1367 .propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex (2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect (!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(2, metadata.name()))", tryResult1368 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17979, mozilla::dom::quota::Severity::Error); return tryResult1368 .propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata .keyPath().SerializeToString()))); static_assert(std::is_empty_v <typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect (!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))" , tryResult1369.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17983, mozilla::dom::quota::Severity::Error); return tryResult1369 .propagateErr(); }}; } else { {auto tryResult1370 = (ToResult (stmt.BindNullByIndex(3))); static_assert(std::is_empty_v< typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect (!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindNullByIndex(3))", tryResult1370.inspectErr (), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 17985 , mozilla::dom::quota::Severity::Error); return tryResult1370 .propagateErr(); }}; } return Ok{}; }))); static_assert(std:: is_empty_v<typename decltype(tryResult1371)::ok_type>); if ((__builtin_expect(!!(tryResult1371.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 tryResult1366 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1366)::ok_type>); if ((__builtin_expect(!!(tryResult1366.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1366.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17974, mozilla::dom::quota::Severity::Error); return tryResult1366.propagateErr(); }}; {auto tryResult1367 = (ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1367)::ok_type>); if ((__builtin_expect(!!(tryResult1367.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(1, metadata.autoIncrement() ? 1 : 0))\", tryResult1367.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17977, mozilla::dom::quota::Severity::Error); return tryResult1367.propagateErr(); }}; {auto tryResult1368 = (ToResult(stmt.BindStringByIndex(2, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1368)::ok_type>); if ((__builtin_expect(!!(tryResult1368.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.name()))\", tryResult1368.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17979, mozilla::dom::quota::Severity::Error); return tryResult1368.propagateErr(); }}; if (metadata.keyPath().IsValid()) { {auto tryResult1369 = (ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1369)::ok_type>); if ((__builtin_expect(!!(tryResult1369.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex( 3, metadata.keyPath().SerializeToString()))\", tryResult1369.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17983, mozilla::dom::quota::Severity::Error); return tryResult1369.propagateErr(); }}; } else { {auto tryResult1370 = (ToResult(stmt.BindNullByIndex(3))); static_assert(std::is_empty_v<typename decltype(tryResult1370)::ok_type>); if ((__builtin_expect(!!(tryResult1370.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindNullByIndex(3))\", tryResult1370.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 17985, mozilla::dom::quota::Severity::Error); return tryResult1370.propagateErr(); }}; } return Ok{}; }))" , tryResult1371.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 17989, mozilla::dom::quota::Severity::Error); return tryResult1371 .propagateErr(); }}; | ||||
| 17990 | |||||
| 17991 | #ifdef DEBUG1 | ||||
| 17992 | { | ||||
| 17993 | int64_t id; | ||||
| 17994 | 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", 17995 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { MOZ_CrashSequence(__null, 17995); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 17995 | 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", 17995 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { MOZ_CrashSequence(__null, 17995); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 17996 | 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", 17996 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id" ")"); do { MOZ_CrashSequence(__null, 17996); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 17997 | } | ||||
| 17998 | #endif | ||||
| 17999 | |||||
| 18000 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1372 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1372)::ok_type >); if ((__builtin_expect(!!(tryResult1372.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1372.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18000, mozilla::dom::quota::Severity::Error); return tryResult1372 .propagateErr(); }}; | ||||
| 18001 | |||||
| 18002 | return NS_OK; | ||||
| 18003 | } | ||||
| 18004 | |||||
| 18005 | nsresult DeleteObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18006 | 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" , 18006); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18006); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18007 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18008 | |||||
| 18009 | AUTO_PROFILER_LABEL("DeleteObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18009( "DeleteObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18010 | |||||
| 18011 | #ifdef DEBUG1 | ||||
| 18012 | { | ||||
| 18013 | // Make sure |mIsLastObjectStore| is telling the truth. | ||||
| 18014 | QM_TRY_INSPECT(auto tryResult1373 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1373.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18017, 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" , 18017); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18017); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1373.inspect(); | ||||
| 18015 | const auto& stmt,auto tryResult1373 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1373.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18017, 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" , 18017); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18017); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1373.inspect(); | ||||
| 18016 | aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns),auto tryResult1373 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1373.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18017, 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" , 18017); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18017); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1373.inspect(); | ||||
| 18017 | QM_ASSERT_UNREACHABLE)auto tryResult1373 = (aConnection->BorrowCachedStatement("SELECT id FROM object_store;"_ns )); if ((__builtin_expect(!!(tryResult1373.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1373.unwrapErr() ; mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(\"SELECT id FROM object_store;\"_ns)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18017, 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" , 18017); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18017); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1373.inspect();; | ||||
| 18018 | |||||
| 18019 | bool foundThisObjectStore = false; | ||||
| 18020 | bool foundOtherObjectStore = false; | ||||
| 18021 | |||||
| 18022 | while (true) { | ||||
| 18023 | bool hasResult; | ||||
| 18024 | 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", 18024 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")"); do { MOZ_CrashSequence(__null, 18024); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18025 | |||||
| 18026 | if (!hasResult) { | ||||
| 18027 | break; | ||||
| 18028 | } | ||||
| 18029 | |||||
| 18030 | int64_t id; | ||||
| 18031 | 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", 18031 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"); do { MOZ_CrashSequence(__null, 18031); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18032 | |||||
| 18033 | if (id == mMetadata->mCommonMetadata.id()) { | ||||
| 18034 | foundThisObjectStore = true; | ||||
| 18035 | } else { | ||||
| 18036 | foundOtherObjectStore = true; | ||||
| 18037 | } | ||||
| 18038 | } | ||||
| 18039 | |||||
| 18040 | 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" , 18041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore" ")"); do { MOZ_CrashSequence(__null, 18041); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 18041 | 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" , 18041); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && !foundOtherObjectStore" ")"); do { MOZ_CrashSequence(__null, 18041); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18042 | 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" , 18043); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore" ")"); do { MOZ_CrashSequence(__null, 18043); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 18043 | 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" , 18043); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisObjectStore && foundOtherObjectStore" ")"); do { MOZ_CrashSequence(__null, 18043); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18044 | } | ||||
| 18045 | #endif | ||||
| 18046 | |||||
| 18047 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18048 | 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" , 18053, 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)); }} | ||||
| 18049 | #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" , 18053, 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)); }} | ||||
| 18050 | ,{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" , 18053, 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)); }} | ||||
| 18051 | 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" , 18053, 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)); }} | ||||
| 18052 | #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" , 18053, 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)); }} | ||||
| 18053 | ){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" , 18053, 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)); }}; | ||||
| 18054 | |||||
| 18055 | if (mIsLastObjectStore) { | ||||
| 18056 | // We can just delete everything if this is the last object store. | ||||
| 18057 | QM_TRY(MOZ_TO_RESULT({auto tryResult1375 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))" , tryResult1375.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18058, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }} | ||||
| 18058 | aConnection->ExecuteCachedStatement("DELETE FROM index_data;"_ns))){auto tryResult1375 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM index_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1375)::ok_type>); if ((__builtin_expect (!!(tryResult1375.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM index_data;\"_ns))" , tryResult1375.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18058, mozilla::dom::quota::Severity::Error); return tryResult1375 .propagateErr(); }}; | ||||
| 18059 | |||||
| 18060 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1376 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM unique_index_data;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18061, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }} | ||||
| 18061 | "DELETE FROM unique_index_data;"_ns))){auto tryResult1376 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM unique_index_data;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult1376)::ok_type>); if ((__builtin_expect(!!(tryResult1376.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM unique_index_data;\"_ns))" , tryResult1376.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18061, mozilla::dom::quota::Severity::Error); return tryResult1376 .propagateErr(); }}; | ||||
| 18062 | |||||
| 18063 | QM_TRY(MOZ_TO_RESULT({auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18064, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }} | ||||
| 18064 | aConnection->ExecuteCachedStatement("DELETE FROM object_data;"_ns))){auto tryResult1377 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_data;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1377)::ok_type>); if ((__builtin_expect (!!(tryResult1377.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_data;\"_ns))" , tryResult1377.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18064, mozilla::dom::quota::Severity::Error); return tryResult1377 .propagateErr(); }}; | ||||
| 18065 | |||||
| 18066 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1378 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult1378)::ok_type>); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))" , tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18067, mozilla::dom::quota::Severity::Error); return tryResult1378 .propagateErr(); }} | ||||
| 18067 | "DELETE FROM object_store_index;"_ns))){auto tryResult1378 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index;"_ns))); static_assert(std:: is_empty_v<typename decltype(tryResult1378)::ok_type>); if ((__builtin_expect(!!(tryResult1378.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index;\"_ns))" , tryResult1378.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18067, mozilla::dom::quota::Severity::Error); return tryResult1378 .propagateErr(); }}; | ||||
| 18068 | |||||
| 18069 | QM_TRY(MOZ_TO_RESULT({auto tryResult1379 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect (!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18070, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }} | ||||
| 18070 | aConnection->ExecuteCachedStatement("DELETE FROM object_store;"_ns))){auto tryResult1379 = (ToResult(aConnection->ExecuteCachedStatement ("DELETE FROM object_store;"_ns))); static_assert(std::is_empty_v <typename decltype(tryResult1379)::ok_type>); if ((__builtin_expect (!!(tryResult1379.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement(\"DELETE FROM object_store;\"_ns))" , tryResult1379.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18070, mozilla::dom::quota::Severity::Error); return tryResult1379 .propagateErr(); }}; | ||||
| 18071 | } else { | ||||
| 18072 | QM_TRY_INSPECT(auto tryResult1380 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1380 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18074, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); } const bool& hasIndexes = tryResult1380 .inspect(); | ||||
| 18073 | const bool& hasIndexes,auto tryResult1380 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1380 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18074, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); } const bool& hasIndexes = tryResult1380 .inspect(); | ||||
| 18074 | ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id()))auto tryResult1380 = (ObjectStoreHasIndexes(*aConnection, mMetadata ->mCommonMetadata.id())); if ((__builtin_expect(!!(tryResult1380 .isErr()), 0))) { mozilla::dom::quota::HandleError("ObjectStoreHasIndexes(*aConnection, mMetadata->mCommonMetadata.id())" , tryResult1380.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18074, mozilla::dom::quota::Severity::Error); return tryResult1380 .propagateErr(); } const bool& hasIndexes = tryResult1380 .inspect();; | ||||
| 18075 | |||||
| 18076 | const auto bindObjectStoreIdToFirstParameter = | ||||
| 18077 | [this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { | ||||
| 18078 | QM_TRY(MOZ_TO_RESULT({auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata ->mCommonMetadata.id()))); 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, mMetadata->mCommonMetadata.id()))" , tryResult1381.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18079, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }} | ||||
| 18079 | stmt.BindInt64ByIndex(0, mMetadata->mCommonMetadata.id()))){auto tryResult1381 = (ToResult(stmt.BindInt64ByIndex(0, mMetadata ->mCommonMetadata.id()))); 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, mMetadata->mCommonMetadata.id()))" , tryResult1381.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18079, mozilla::dom::quota::Severity::Error); return tryResult1381 .propagateErr(); }}; | ||||
| 18080 | |||||
| 18081 | return Ok{}; | ||||
| 18082 | }; | ||||
| 18083 | |||||
| 18084 | // The parameter name :object_store_id in the SQL statements below is not | ||||
| 18085 | // used for binding, parameters are bound by index only locally by | ||||
| 18086 | // bindObjectStoreIdToFirstParameter. | ||||
| 18087 | if (hasIndexes) { | ||||
| 18088 | QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1382 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mMetadata->mCommonMetadata.id(), Nothing()) )); static_assert(std::is_empty_v<typename decltype(tryResult1382 )::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18089, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }} | ||||
| 18089 | aConnection, mMetadata->mCommonMetadata.id(), Nothing()))){auto tryResult1382 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mMetadata->mCommonMetadata.id(), Nothing()) )); static_assert(std::is_empty_v<typename decltype(tryResult1382 )::ok_type>); if ((__builtin_expect(!!(tryResult1382.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mMetadata->mCommonMetadata.id(), Nothing()))" , tryResult1382.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18089, mozilla::dom::quota::Severity::Error); return tryResult1382 .propagateErr(); }}; | ||||
| 18090 | |||||
| 18091 | // Now clean up the object store index table. | ||||
| 18092 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1383 = (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(tryResult1383)::ok_type>); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1383.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18095, mozilla::dom::quota::Severity::Error); return tryResult1383 .propagateErr(); }} | ||||
| 18093 | "DELETE FROM object_store_index "{auto tryResult1383 = (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(tryResult1383)::ok_type>); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1383.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18095, mozilla::dom::quota::Severity::Error); return tryResult1383 .propagateErr(); }} | ||||
| 18094 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1383 = (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(tryResult1383)::ok_type>); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1383.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18095, mozilla::dom::quota::Severity::Error); return tryResult1383 .propagateErr(); }} | ||||
| 18095 | bindObjectStoreIdToFirstParameter))){auto tryResult1383 = (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(tryResult1383)::ok_type>); if ((__builtin_expect (!!(tryResult1383.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store_index \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1383.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18095, mozilla::dom::quota::Severity::Error); return tryResult1383 .propagateErr(); }}; | ||||
| 18096 | } else { | ||||
| 18097 | // We only have to worry about object data if this object store has no | ||||
| 18098 | // indexes. | ||||
| 18099 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1384 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1384)::ok_type>); if ((__builtin_expect (!!(tryResult1384.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1384.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18102, mozilla::dom::quota::Severity::Error); return tryResult1384 .propagateErr(); }} | ||||
| 18100 | "DELETE FROM object_data "{auto tryResult1384 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1384)::ok_type>); if ((__builtin_expect (!!(tryResult1384.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1384.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18102, mozilla::dom::quota::Severity::Error); return tryResult1384 .propagateErr(); }} | ||||
| 18101 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1384 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1384)::ok_type>); if ((__builtin_expect (!!(tryResult1384.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1384.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18102, mozilla::dom::quota::Severity::Error); return tryResult1384 .propagateErr(); }} | ||||
| 18102 | bindObjectStoreIdToFirstParameter))){auto tryResult1384 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1384)::ok_type>); if ((__builtin_expect (!!(tryResult1384.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_data \" \"WHERE object_store_id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1384.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18102, mozilla::dom::quota::Severity::Error); return tryResult1384 .propagateErr(); }}; | ||||
| 18103 | } | ||||
| 18104 | |||||
| 18105 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1385 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect (!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18108, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }} | ||||
| 18106 | "DELETE FROM object_store "{auto tryResult1385 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect (!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18108, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }} | ||||
| 18107 | "WHERE id = :object_store_id;"_ns,{auto tryResult1385 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect (!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18108, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }} | ||||
| 18108 | bindObjectStoreIdToFirstParameter))){auto tryResult1385 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store " "WHERE id = :object_store_id;"_ns , bindObjectStoreIdToFirstParameter))); static_assert(std::is_empty_v <typename decltype(tryResult1385)::ok_type>); if ((__builtin_expect (!!(tryResult1385.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aConnection->ExecuteCachedStatement( \"DELETE FROM object_store \" \"WHERE id = :object_store_id;\"_ns, bindObjectStoreIdToFirstParameter))" , tryResult1385.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18108, mozilla::dom::quota::Severity::Error); return tryResult1385 .propagateErr(); }}; | ||||
| 18109 | |||||
| 18110 | #ifdef DEBUG1 | ||||
| 18111 | { | ||||
| 18112 | int32_t deletedRowCount; | ||||
| 18113 | 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", 18115 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18115); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18114 | 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", 18115 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18115); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18115 | &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", 18115 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18115); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18116 | 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", 18116 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1" ")"); do { MOZ_CrashSequence(__null, 18116); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18117 | } | ||||
| 18118 | #endif | ||||
| 18119 | } | ||||
| 18120 | |||||
| 18121 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1386 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1386)::ok_type >); if ((__builtin_expect(!!(tryResult1386.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1386.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18121, mozilla::dom::quota::Severity::Error); return tryResult1386 .propagateErr(); }}; | ||||
| 18122 | |||||
| 18123 | if (mMetadata->mCommonMetadata.autoIncrement()) { | ||||
| 18124 | Transaction().ForgetModifiedAutoIncrementObjectStore(*mMetadata); | ||||
| 18125 | } | ||||
| 18126 | |||||
| 18127 | return NS_OK; | ||||
| 18128 | } | ||||
| 18129 | |||||
| 18130 | nsresult RenameObjectStoreOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18131 | 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" , 18131); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18131); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18132 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18133 | |||||
| 18134 | AUTO_PROFILER_LABEL("RenameObjectStoreOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18134( "RenameObjectStoreOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18135 | |||||
| 18136 | #ifdef DEBUG1 | ||||
| 18137 | { | ||||
| 18138 | // Make sure that we're not renaming an object store with the same name as | ||||
| 18139 | // another that already exists. This should be impossible because we should | ||||
| 18140 | // have thrown an error long before now... | ||||
| 18141 | // The parameter names are not used, parameters are bound by index only | ||||
| 18142 | // locally in the same function. | ||||
| 18143 | QM_TRY_INSPECT(auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18144 | const bool& hasResult,auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18145 | aConnectionauto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18146 | ->BorrowAndExecuteSingleStepStatement(auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18147 | "SELECT name "auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18148 | "FROM object_store "auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18149 | "WHERE name = :name AND id != :id;"_ns,auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18150 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18151 | QM_TRY(auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18152 | MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18153 | |||||
| 18154 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18155 | return Ok{};auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18156 | })auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18157 | .map(IsSome),auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect(); | ||||
| 18158 | QM_ASSERT_UNREACHABLE)auto tryResult1389 = (aConnection ->BorrowAndExecuteSingleStepStatement ( "SELECT name " "FROM object_store " "WHERE name = :name AND id != :id;"_ns , [&self = *this](auto& stmt) -> Result<Ok, nsresult > { {auto tryResult1387 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect (!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1387 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18152, mozilla::dom::quota::Severity::Error); return tryResult1387 .propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1388.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18154, mozilla::dom::quota::Severity::Error); return tryResult1388 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1389.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1389.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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18158, 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 tryResult1387 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1387)::ok_type>); if ((__builtin_expect(!!(tryResult1387.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1387.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18152, mozilla::dom::quota::Severity::Error); return tryResult1387.propagateErr(); }}; {auto tryResult1388 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1388)::ok_type>); if ((__builtin_expect(!!(tryResult1388.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1388.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18154, mozilla::dom::quota::Severity::Error); return tryResult1388.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" , 18158); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18158); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1389.inspect();; | ||||
| 18159 | |||||
| 18160 | 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" , 18160); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { MOZ_CrashSequence(__null, 18160); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18161 | } | ||||
| 18162 | #endif | ||||
| 18163 | |||||
| 18164 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18165 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1390 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390 .isErr()), 0))) { auto tryTempError = tryResult1390.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18170, 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)); }} | ||||
| 18166 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1390 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390 .isErr()), 0))) { auto tryTempError = tryResult1390.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18170, 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)); }} | ||||
| 18167 | ,{auto tryResult1390 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390 .isErr()), 0))) { auto tryTempError = tryResult1390.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18170, 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)); }} | ||||
| 18168 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1390 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390 .isErr()), 0))) { auto tryTempError = tryResult1390.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18170, 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)); }} | ||||
| 18169 | #endif{auto tryResult1390 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390 .isErr()), 0))) { auto tryTempError = tryResult1390.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18170, 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)); }} | ||||
| 18170 | ){auto tryResult1390 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1390)::ok_type>); if ((__builtin_expect(!!(tryResult1390 .isErr()), 0))) { auto tryTempError = tryResult1390.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18170, 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)); }}; | ||||
| 18171 | |||||
| 18172 | // The parameter names are not used, parameters are bound by index only | ||||
| 18173 | // locally in the same function. | ||||
| 18174 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18175 | "UPDATE object_store "{auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18176 | "SET name = :name "{auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18177 | "WHERE id = :id;"_ns,{auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18178 | [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18179 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18180 | |||||
| 18181 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mId)));{auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18182 | |||||
| 18183 | return Ok{};{auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }} | ||||
| 18184 | }))){auto tryResult1393 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect (!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1391 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18179, mozilla::dom::quota::Severity::Error); return tryResult1391 .propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex (1, self.mId))); static_assert(std::is_empty_v<typename decltype (tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(1, self.mId))" , tryResult1392.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18181, 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( \"UPDATE object_store \" \"SET name = :name \" \"WHERE id = :id;\"_ns, [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> { {auto tryResult1391 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1391)::ok_type>); if ((__builtin_expect(!!(tryResult1391.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1391.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18179, mozilla::dom::quota::Severity::Error); return tryResult1391.propagateErr(); }}; {auto tryResult1392 = (ToResult(stmt.BindInt64ByIndex(1, self.mId))); static_assert(std::is_empty_v<typename decltype(tryResult1392)::ok_type>); if ((__builtin_expect(!!(tryResult1392.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mId))\", tryResult1392.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18181, mozilla::dom::quota::Severity::Error); return tryResult1392.propagateErr(); }}; return Ok{}; }))" , tryResult1393.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18184, mozilla::dom::quota::Severity::Error); return tryResult1393 .propagateErr(); }}; | ||||
| 18185 | |||||
| 18186 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1394 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1394)::ok_type >); if ((__builtin_expect(!!(tryResult1394.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1394.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18186, mozilla::dom::quota::Severity::Error); return tryResult1394 .propagateErr(); }}; | ||||
| 18187 | |||||
| 18188 | return NS_OK; | ||||
| 18189 | } | ||||
| 18190 | |||||
| 18191 | CreateIndexOp::CreateIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 18192 | const IndexOrObjectStoreId aObjectStoreId, | ||||
| 18193 | const IndexMetadata& aMetadata) | ||||
| 18194 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 18195 | mMetadata(aMetadata), | ||||
| 18196 | mFileManager(Transaction().GetDatabase().GetFileManagerPtr()), | ||||
| 18197 | mDatabaseId(Transaction().DatabaseId()), | ||||
| 18198 | mObjectStoreId(aObjectStoreId) { | ||||
| 18199 | 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", 18199 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 18199); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18200 | 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", 18200 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMetadata.id()" ")" ); do { MOZ_CrashSequence(__null, 18200); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18201 | 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" , 18201); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mFileManager" ")"); do { MOZ_CrashSequence(__null, 18201); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18202 | 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", 18202 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mDatabaseId.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 18202); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18203 | } | ||||
| 18204 | |||||
| 18205 | nsresult CreateIndexOp::InsertDataFromObjectStore( | ||||
| 18206 | DatabaseConnection* aConnection) { | ||||
| 18207 | 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" , 18207); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18207); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18208 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18209 | 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", 18209 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable" ")"); do { MOZ_CrashSequence(__null, 18209); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18210 | |||||
| 18211 | AUTO_PROFILER_LABEL("CreateIndexOp::InsertDataFromObjectStore", DOM)mozilla::AutoProfilerLabel raiiObject18211( "CreateIndexOp::InsertDataFromObjectStore" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18212 | |||||
| 18213 | auto& storageConnection = aConnection->MutableStorageConnection(); | ||||
| 18214 | |||||
| 18215 | RefPtr<UpdateIndexDataValuesFunction> updateFunction = | ||||
| 18216 | new UpdateIndexDataValuesFunction(this, aConnection, | ||||
| 18217 | Transaction().GetDatabasePtr()); | ||||
| 18218 | |||||
| 18219 | constexpr auto updateFunctionName = "update_index_data_values"_ns; | ||||
| 18220 | |||||
| 18221 | nsresult rv = | ||||
| 18222 | storageConnection.CreateFunction(updateFunctionName, 4, updateFunction); | ||||
| 18223 | 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" , 18223)) { | ||||
| 18224 | return rv; | ||||
| 18225 | } | ||||
| 18226 | |||||
| 18227 | rv = InsertDataFromObjectStoreInternal(aConnection); | ||||
| 18228 | |||||
| 18229 | 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", 18229 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(storageConnection.RemoveFunction(updateFunctionName))" ")"); do { MOZ_CrashSequence(__null, 18229); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18230 | |||||
| 18231 | 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" , 18231)) { | ||||
| 18232 | return rv; | ||||
| 18233 | } | ||||
| 18234 | |||||
| 18235 | return NS_OK; | ||||
| 18236 | } | ||||
| 18237 | |||||
| 18238 | nsresult CreateIndexOp::InsertDataFromObjectStoreInternal( | ||||
| 18239 | DatabaseConnection* aConnection) const { | ||||
| 18240 | 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" , 18240); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18240); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18241 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18242 | 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", 18242 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable" ")"); do { MOZ_CrashSequence(__null, 18242); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18243 | |||||
| 18244 | 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", 18244 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 18244); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18245 | |||||
| 18246 | // The parameter names are not used, parameters are bound by index only | ||||
| 18247 | // locally in the same function. | ||||
| 18248 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18249 | "UPDATE object_data "{auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18250 | "SET index_data_values = update_index_data_values "{auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18251 | "(key, index_data_values, file_ids, data) "{auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18252 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18253 | [objectStoredId ={auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18254 | mObjectStoreId](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18255 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoredId)));{auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18256 | |||||
| 18257 | return Ok{};{auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }} | ||||
| 18258 | }))){auto tryResult1396 = (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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert (std::is_empty_v<typename decltype(tryResult1395)::ok_type >); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoredId))" , tryResult1395.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18255, mozilla::dom::quota::Severity::Error); return tryResult1395 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1396)::ok_type>); if ((__builtin_expect (!!(tryResult1396.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 tryResult1395 = (ToResult(stmt.BindInt64ByIndex(0, objectStoredId))); static_assert(std::is_empty_v<typename decltype(tryResult1395)::ok_type>); if ((__builtin_expect(!!(tryResult1395.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoredId))\", tryResult1395.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18255, mozilla::dom::quota::Severity::Error); return tryResult1395.propagateErr(); }}; return Ok{}; }))" , tryResult1396.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18258, mozilla::dom::quota::Severity::Error); return tryResult1396 .propagateErr(); }}; | ||||
| 18259 | |||||
| 18260 | return NS_OK; | ||||
| 18261 | } | ||||
| 18262 | |||||
| 18263 | bool CreateIndexOp::Init(TransactionBase& aTransaction) { | ||||
| 18264 | AssertIsOnBackgroundThread(); | ||||
| 18265 | 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", 18265 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 18265); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18266 | 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" , 18266); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMaybeUniqueIndexTable.isNothing()" ")"); do { MOZ_CrashSequence(__null, 18266); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18267 | |||||
| 18268 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 18269 | aTransaction.GetMetadataForObjectStoreId(mObjectStoreId); | ||||
| 18270 | 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", 18270 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 18270); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18271 | |||||
| 18272 | const uint32_t indexCount = objectStoreMetadata->mIndexes.Count(); | ||||
| 18273 | if (!indexCount) { | ||||
| 18274 | return true; | ||||
| 18275 | } | ||||
| 18276 | |||||
| 18277 | auto uniqueIndexTable = UniqueIndexTable{indexCount}; | ||||
| 18278 | |||||
| 18279 | for (const auto& value : objectStoreMetadata->mIndexes.Values()) { | ||||
| 18280 | 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", 18280 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!uniqueIndexTable.Contains(value->mCommonMetadata.id())" ")"); do { MOZ_CrashSequence(__null, 18280); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18281 | |||||
| 18282 | 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", 18284 ) | ||||
| 18283 | 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", 18284 ) | ||||
| 18284 | 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", 18284 )) { | ||||
| 18285 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18285, idbInternalErrMsg.get()); } while (0); | ||||
| 18286 | NS_WARNING("out of memory")NS_DebugBreak(NS_DEBUG_WARNING, "out of memory", nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18286); | ||||
| 18287 | return false; | ||||
| 18288 | } | ||||
| 18289 | } | ||||
| 18290 | |||||
| 18291 | uniqueIndexTable.MarkImmutable(); | ||||
| 18292 | |||||
| 18293 | mMaybeUniqueIndexTable.emplace(std::move(uniqueIndexTable)); | ||||
| 18294 | |||||
| 18295 | return true; | ||||
| 18296 | } | ||||
| 18297 | |||||
| 18298 | nsresult CreateIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18299 | 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" , 18299); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18299); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18300 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18301 | |||||
| 18302 | AUTO_PROFILER_LABEL("CreateIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18302( "CreateIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18303 | |||||
| 18304 | #ifdef DEBUG1 | ||||
| 18305 | { | ||||
| 18306 | // Make sure that we're not creating an index with the same name and object | ||||
| 18307 | // store as another that already exists. This should be impossible because | ||||
| 18308 | // we should have thrown an error long before now... | ||||
| 18309 | // The parameter names are not used, parameters are bound by index only | ||||
| 18310 | // locally in the same function. | ||||
| 18311 | QM_TRY_INSPECT(auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18312 | const bool& hasResult,auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18313 | aConnectionauto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18314 | ->BorrowAndExecuteSingleStepStatement(auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18315 | "SELECT name "auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18316 | "FROM object_store_index "auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18317 | "WHERE object_store_id = :object_store_id AND name = :name;"_ns,auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18318 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18319 | QM_TRY(MOZ_TO_RESULT(auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18320 | stmt.BindInt64ByIndex(0, self.mObjectStoreId)));auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18321 | QM_TRY(MOZ_TO_RESULT(auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18322 | stmt.BindStringByIndex(1, self.mMetadata.name())));auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18323 | return Ok{};auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18324 | })auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18325 | .map(IsSome),auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect(); | ||||
| 18326 | QM_ASSERT_UNREACHABLE)auto tryResult1399 = (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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect (!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))", tryResult1397 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18320, mozilla::dom::quota::Severity::Error); return tryResult1397 .propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex (1, self.mMetadata.name()))); static_assert(std::is_empty_v< typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect (!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))" , tryResult1398.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18322, mozilla::dom::quota::Severity::Error); return tryResult1398 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1399.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1399.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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18326, 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 tryResult1397 = (ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1397)::ok_type>); if ((__builtin_expect(!!(tryResult1397.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, self.mObjectStoreId))\", tryResult1397.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18320, mozilla::dom::quota::Severity::Error); return tryResult1397.propagateErr(); }}; {auto tryResult1398 = (ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1398)::ok_type>); if ((__builtin_expect(!!(tryResult1398.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mMetadata.name()))\", tryResult1398.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18322, mozilla::dom::quota::Severity::Error); return tryResult1398.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" , 18326); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18326); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1399.inspect();; | ||||
| 18327 | |||||
| 18328 | 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" , 18328); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { MOZ_CrashSequence(__null, 18328); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18329 | } | ||||
| 18330 | #endif | ||||
| 18331 | |||||
| 18332 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18333 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1400 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400 .isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, 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)); }} | ||||
| 18334 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1400 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400 .isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, 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)); }} | ||||
| 18335 | ,{auto tryResult1400 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400 .isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, 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)); }} | ||||
| 18336 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1400 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400 .isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, 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)); }} | ||||
| 18337 | #endif{auto tryResult1400 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400 .isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, 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)); }} | ||||
| 18338 | ){auto tryResult1400 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1400)::ok_type>); if ((__builtin_expect(!!(tryResult1400 .isErr()), 0))) { auto tryTempError = tryResult1400.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18338, 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)); }}; | ||||
| 18339 | |||||
| 18340 | // The parameter names are not used, parameters are bound by index only | ||||
| 18341 | // locally in the same function. | ||||
| 18342 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18343 | "INSERT INTO object_store_index (id, name, key_path, unique_index, "{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18344 | "multientry, object_store_id, locale, "{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18345 | "is_auto_locale) "{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18346 | "VALUES (:id, :name, :key_path, :unique, :multientry, "{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18347 | ":object_store_id, :locale, :is_auto_locale)"_ns,{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18348 | [&metadata = mMetadata, objectStoreId = mObjectStoreId]({auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18349 | mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18350 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, metadata.id())));{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18351 | |||||
| 18352 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(1, metadata.name())));{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18353 | |||||
| 18354 | QM_TRY(MOZ_TO_RESULT({auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18355 | stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString())));{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18356 | |||||
| 18357 | QM_TRY({auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18358 | MOZ_TO_RESULT(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0)));{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18359 | |||||
| 18360 | QM_TRY(MOZ_TO_RESULT({auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18361 | stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0)));{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18362 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(5, objectStoreId)));{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18363 | |||||
| 18364 | QM_TRY(MOZ_TO_RESULT({auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18365 | metadata.locale().IsEmpty(){auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18366 | ? stmt.BindNullByIndex(6){auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18367 | : stmt.BindUTF8StringByIndex(6, metadata.locale())));{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18368 | |||||
| 18369 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt32ByIndex(7, metadata.autoLocale())));{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18370 | |||||
| 18371 | return Ok{};{auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }} | ||||
| 18372 | }))){auto tryResult1409 = (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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert (std::is_empty_v<typename decltype(tryResult1401)::ok_type >); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, metadata.id()))" , tryResult1401.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18350, mozilla::dom::quota::Severity::Error); return tryResult1401 .propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex (1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect (!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, metadata.name()))", tryResult1402 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18352, mozilla::dom::quota::Severity::Error); return tryResult1402 .propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex (2, metadata.keyPath().SerializeToString()))); static_assert( std::is_empty_v<typename decltype(tryResult1403)::ok_type> ); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))" , tryResult1403.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18355, mozilla::dom::quota::Severity::Error); return tryResult1403 .propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex (3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect (!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))" , tryResult1404.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18358, mozilla::dom::quota::Severity::Error); return tryResult1404 .propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex (4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v <typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect (!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))" , tryResult1405.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18361, mozilla::dom::quota::Severity::Error); return tryResult1405 .propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex (5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect (!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(5, objectStoreId))", tryResult1406 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18362, mozilla::dom::quota::Severity::Error); return tryResult1406 .propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata .locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex (6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect (!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))" , tryResult1407.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18367, mozilla::dom::quota::Severity::Error); return tryResult1407 .propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex (7, metadata.autoLocale()))); static_assert(std::is_empty_v< typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect (!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))", tryResult1408.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18369, mozilla::dom::quota::Severity::Error); return tryResult1408 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1409)::ok_type>); if ((__builtin_expect (!!(tryResult1409.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 tryResult1401 = (ToResult(stmt.BindInt64ByIndex(0, metadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1401)::ok_type>); if ((__builtin_expect(!!(tryResult1401.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, metadata.id()))\", tryResult1401.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18350, mozilla::dom::quota::Severity::Error); return tryResult1401.propagateErr(); }}; {auto tryResult1402 = (ToResult(stmt.BindStringByIndex(1, metadata.name()))); static_assert(std::is_empty_v<typename decltype(tryResult1402)::ok_type>); if ((__builtin_expect(!!(tryResult1402.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, metadata.name()))\", tryResult1402.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18352, mozilla::dom::quota::Severity::Error); return tryResult1402.propagateErr(); }}; {auto tryResult1403 = (ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))); static_assert(std::is_empty_v<typename decltype(tryResult1403)::ok_type>); if ((__builtin_expect(!!(tryResult1403.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(2, metadata.keyPath().SerializeToString()))\", tryResult1403.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18355, mozilla::dom::quota::Severity::Error); return tryResult1403.propagateErr(); }}; {auto tryResult1404 = (ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1404)::ok_type>); if ((__builtin_expect(!!(tryResult1404.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(3, metadata.unique() ? 1 : 0))\", tryResult1404.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18358, mozilla::dom::quota::Severity::Error); return tryResult1404.propagateErr(); }}; {auto tryResult1405 = (ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))); static_assert(std::is_empty_v<typename decltype(tryResult1405)::ok_type>); if ((__builtin_expect(!!(tryResult1405.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(4, metadata.multiEntry() ? 1 : 0))\", tryResult1405.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18361, mozilla::dom::quota::Severity::Error); return tryResult1405.propagateErr(); }}; {auto tryResult1406 = (ToResult(stmt.BindInt64ByIndex(5, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1406)::ok_type>); if ((__builtin_expect(!!(tryResult1406.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(5, objectStoreId))\", tryResult1406.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18362, mozilla::dom::quota::Severity::Error); return tryResult1406.propagateErr(); }}; {auto tryResult1407 = (ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))); static_assert(std::is_empty_v<typename decltype(tryResult1407)::ok_type>); if ((__builtin_expect(!!(tryResult1407.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(metadata.locale().IsEmpty() ? stmt.BindNullByIndex(6) : stmt.BindUTF8StringByIndex(6, metadata.locale()))\", tryResult1407.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18367, mozilla::dom::quota::Severity::Error); return tryResult1407.propagateErr(); }}; {auto tryResult1408 = (ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))); static_assert(std::is_empty_v<typename decltype(tryResult1408)::ok_type>); if ((__builtin_expect(!!(tryResult1408.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt32ByIndex(7, metadata.autoLocale()))\", tryResult1408.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18369, mozilla::dom::quota::Severity::Error); return tryResult1408.propagateErr(); }}; return Ok{}; }))" , tryResult1409.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18372, mozilla::dom::quota::Severity::Error); return tryResult1409 .propagateErr(); }}; | ||||
| 18373 | |||||
| 18374 | #ifdef DEBUG1 | ||||
| 18375 | { | ||||
| 18376 | int64_t id; | ||||
| 18377 | 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", 18378 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { MOZ_CrashSequence(__null, 18378); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18378 | 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", 18378 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetLastInsertRowID(&id))" ")"); do { MOZ_CrashSequence(__null, 18378); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18379 | 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", 18379 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata.id() == id" ")"); do { MOZ_CrashSequence(__null, 18379); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18380 | } | ||||
| 18381 | #endif | ||||
| 18382 | |||||
| 18383 | QM_TRY(MOZ_TO_RESULT(InsertDataFromObjectStore(aConnection))){auto tryResult1410 = (ToResult(InsertDataFromObjectStore(aConnection ))); static_assert(std::is_empty_v<typename decltype(tryResult1410 )::ok_type>); if ((__builtin_expect(!!(tryResult1410.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(InsertDataFromObjectStore(aConnection))" , tryResult1410.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18383, mozilla::dom::quota::Severity::Error); return tryResult1410 .propagateErr(); }}; | ||||
| 18384 | |||||
| 18385 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1411 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1411)::ok_type >); if ((__builtin_expect(!!(tryResult1411.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1411.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18385, mozilla::dom::quota::Severity::Error); return tryResult1411 .propagateErr(); }}; | ||||
| 18386 | |||||
| 18387 | return NS_OK; | ||||
| 18388 | } | ||||
| 18389 | |||||
| 18390 | 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" , 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 18391 ); __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" , 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 18391); __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" , 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 18391 ); __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" , 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 18391); __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", 18391 ); 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; } | ||||
| 18391 | 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" , 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 18391 ); __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" , 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 18391); __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" , 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 18391 ); __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" , 18391); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"CreateIndexOp::UpdateIndexDataValuesFunction\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 18391); __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", 18391 ); 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; }; | ||||
| 18392 | |||||
| 18393 | NS_IMETHODIMPnsresult | ||||
| 18394 | CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall( | ||||
| 18395 | mozIStorageValueArray* aValues, nsIVariant** _retval) { | ||||
| 18396 | 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" , 18396); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aValues" ")" ); do { MOZ_CrashSequence(__null, 18396); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18397 | 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" , 18397); AnnotateMozCrashReason("MOZ_ASSERT" "(" "_retval" ")" ); do { MOZ_CrashSequence(__null, 18397); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18398 | 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" , 18398); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mConnection" ")"); do { MOZ_CrashSequence(__null, 18398); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18399 | mConnection->AssertIsOnConnectionThread(); | ||||
| 18400 | 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" , 18400); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp" ")"); do { MOZ_CrashSequence(__null, 18400); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18401 | 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", 18401 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp->mFileManager" ")"); do { MOZ_CrashSequence(__null, 18401); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18402 | |||||
| 18403 | AUTO_PROFILER_LABEL(mozilla::AutoProfilerLabel raiiObject18404( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM) | ||||
| 18404 | "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall", DOM)mozilla::AutoProfilerLabel raiiObject18404( "CreateIndexOp::UpdateIndexDataValuesFunction::OnFunctionCall" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18405 | |||||
| 18406 | #ifdef DEBUG1 | ||||
| 18407 | { | ||||
| 18408 | uint32_t argCount; | ||||
| 18409 | 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", 18409 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetNumEntries(&argCount))" ")"); do { MOZ_CrashSequence(__null, 18409); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18410 | 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", 18410) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "argCount == 4" ")" ); do { MOZ_CrashSequence(__null, 18410); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); // key, index_data_values, file_ids, data | ||||
| 18411 | |||||
| 18412 | int32_t valueType; | ||||
| 18413 | 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", 18413 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(0, &valueType))" ")"); do { MOZ_CrashSequence(__null, 18413); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18414 | 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", 18414 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18414); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18415 | |||||
| 18416 | 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", 18416 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(1, &valueType))" ")"); do { MOZ_CrashSequence(__null, 18416); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18417 | 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", 18418 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18418); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 18418 | 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", 18418 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18418); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18419 | |||||
| 18420 | 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", 18420 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(2, &valueType))" ")"); do { MOZ_CrashSequence(__null, 18420); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18421 | 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", 18422 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 18422); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 18422 | 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", 18422 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_TEXT" ")"); do { MOZ_CrashSequence(__null, 18422); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18423 | |||||
| 18424 | 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", 18424 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aValues->GetTypeOfIndex(3, &valueType))" ")"); do { MOZ_CrashSequence(__null, 18424); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18425 | 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", 18426 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" ")"); do { MOZ_CrashSequence(__null, 18426); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 18426 | 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", 18426 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB || valueType == mozIStorageValueArray::VALUE_TYPE_INTEGER" ")"); do { MOZ_CrashSequence(__null, 18426); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18427 | } | ||||
| 18428 | #endif | ||||
| 18429 | |||||
| 18430 | QM_TRY_UNWRAP(auto cloneInfo, GetStructuredCloneReadInfoFromValueArray(auto tryResult1412 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18433, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } auto cloneInfo = tryResult1412.unwrap(); | ||||
| 18431 | aValues,auto tryResult1412 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18433, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } auto cloneInfo = tryResult1412.unwrap(); | ||||
| 18432 | /* aDataIndex */ 3,auto tryResult1412 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18433, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } auto cloneInfo = tryResult1412.unwrap(); | ||||
| 18433 | /* aFileIdsIndex */ 2, *mOp->mFileManager))auto tryResult1412 = (GetStructuredCloneReadInfoFromValueArray ( aValues, 3, 2, *mOp->mFileManager)); if ((__builtin_expect (!!(tryResult1412.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromValueArray( aValues, 3, 2, *mOp->mFileManager)" , tryResult1412.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18433, mozilla::dom::quota::Severity::Error); return tryResult1412 .propagateErr(); } auto cloneInfo = tryResult1412.unwrap();; | ||||
| 18434 | |||||
| 18435 | const IndexMetadata& metadata = mOp->mMetadata; | ||||
| 18436 | const IndexOrObjectStoreId& objectStoreId = mOp->mObjectStoreId; | ||||
| 18437 | |||||
| 18438 | // XXX does this really need a non-const cloneInfo? | ||||
| 18439 | QM_TRY_INSPECT(const auto& updateInfos,auto tryResult1413 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult1413.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult1413.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18442, mozilla::dom::quota::Severity::Error); return tryResult1413 .propagateErr(); } const auto& updateInfos = tryResult1413 .inspect(); | ||||
| 18440 | DeserializeIndexValueToUpdateInfos(auto tryResult1413 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult1413.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult1413.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18442, mozilla::dom::quota::Severity::Error); return tryResult1413 .propagateErr(); } const auto& updateInfos = tryResult1413 .inspect(); | ||||
| 18441 | metadata.id(), metadata.keyPath(), metadata.multiEntry(),auto tryResult1413 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult1413.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult1413.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18442, mozilla::dom::quota::Severity::Error); return tryResult1413 .propagateErr(); } const auto& updateInfos = tryResult1413 .inspect(); | ||||
| 18442 | metadata.locale(), cloneInfo))auto tryResult1413 = (DeserializeIndexValueToUpdateInfos( metadata .id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale (), cloneInfo)); if ((__builtin_expect(!!(tryResult1413.isErr ()), 0))) { mozilla::dom::quota::HandleError("DeserializeIndexValueToUpdateInfos( metadata.id(), metadata.keyPath(), metadata.multiEntry(), metadata.locale(), cloneInfo)" , tryResult1413.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18442, mozilla::dom::quota::Severity::Error); return tryResult1413 .propagateErr(); } const auto& updateInfos = tryResult1413 .inspect();; | ||||
| 18443 | |||||
| 18444 | if (updateInfos.IsEmpty()) { | ||||
| 18445 | // XXX See if we can do this without copying... | ||||
| 18446 | |||||
| 18447 | nsCOMPtr<nsIVariant> unmodifiedValue; | ||||
| 18448 | |||||
| 18449 | // No changes needed, just return the original value. | ||||
| 18450 | QM_TRY_INSPECT(const int32_t& valueType,auto tryResult1414 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1414 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18451, mozilla::dom::quota::Severity::Error); return tryResult1414 .propagateErr(); } const int32_t& valueType = tryResult1414 .inspect(); | ||||
| 18451 | MOZ_TO_RESULT_INVOKE_MEMBER(aValues, GetTypeOfIndex, 1))auto tryResult1414 = (::mozilla::ToResultInvokeMember( (aValues ), &::mozilla::detail::DerefedType<decltype(aValues)> ::GetTypeOfIndex , 1)); if ((__builtin_expect(!!(tryResult1414 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aValues), &::mozilla::detail::DerefedType<decltype(aValues)>::GetTypeOfIndex , 1)" , tryResult1414.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18451, mozilla::dom::quota::Severity::Error); return tryResult1414 .propagateErr(); } const int32_t& valueType = tryResult1414 .inspect();; | ||||
| 18452 | |||||
| 18453 | 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", 18454 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18454); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 18454 | 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", 18454 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_NULL || valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18454); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18455 | |||||
| 18456 | if (valueType == mozIStorageValueArray::VALUE_TYPE_NULL) { | ||||
| 18457 | unmodifiedValue = new storage::NullVariant(); | ||||
| 18458 | unmodifiedValue.forget(_retval); | ||||
| 18459 | return NS_OK; | ||||
| 18460 | } | ||||
| 18461 | |||||
| 18462 | 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", 18462 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "valueType == mozIStorageValueArray::VALUE_TYPE_BLOB" ")"); do { MOZ_CrashSequence(__null, 18462); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18463 | |||||
| 18464 | const uint8_t* blobData; | ||||
| 18465 | uint32_t blobDataLength; | ||||
| 18466 | QM_TRY({auto tryResult1415 = (ToResult(aValues->GetSharedBlob(1, & blobDataLength, &blobData))); static_assert(std::is_empty_v <typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect (!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18467, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }} | ||||
| 18467 | MOZ_TO_RESULT(aValues->GetSharedBlob(1, &blobDataLength, &blobData))){auto tryResult1415 = (ToResult(aValues->GetSharedBlob(1, & blobDataLength, &blobData))); static_assert(std::is_empty_v <typename decltype(tryResult1415)::ok_type>); if ((__builtin_expect (!!(tryResult1415.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aValues->GetSharedBlob(1, &blobDataLength, &blobData))" , tryResult1415.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18467, mozilla::dom::quota::Severity::Error); return tryResult1415 .propagateErr(); }}; | ||||
| 18468 | |||||
| 18469 | const std::pair<uint8_t*, int> copiedBlobDataPair( | ||||
| 18470 | static_cast<uint8_t*>(malloc(blobDataLength)), blobDataLength); | ||||
| 18471 | |||||
| 18472 | if (!copiedBlobDataPair.first) { | ||||
| 18473 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18473, idbInternalErrMsg.get()); } while (0); | ||||
| 18474 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 18475 | } | ||||
| 18476 | |||||
| 18477 | memcpy(copiedBlobDataPair.first, blobData, blobDataLength); | ||||
| 18478 | |||||
| 18479 | unmodifiedValue = new storage::AdoptedBlobVariant(copiedBlobDataPair); | ||||
| 18480 | unmodifiedValue.forget(_retval); | ||||
| 18481 | |||||
| 18482 | return NS_OK; | ||||
| 18483 | } | ||||
| 18484 | |||||
| 18485 | Key key; | ||||
| 18486 | QM_TRY(MOZ_TO_RESULT(key.SetFromValueArray(aValues, 0))){auto tryResult1416 = (ToResult(key.SetFromValueArray(aValues , 0))); static_assert(std::is_empty_v<typename decltype(tryResult1416 )::ok_type>); if ((__builtin_expect(!!(tryResult1416.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(key.SetFromValueArray(aValues, 0))" , tryResult1416.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18486, mozilla::dom::quota::Severity::Error); return tryResult1416 .propagateErr(); }}; | ||||
| 18487 | |||||
| 18488 | QM_TRY_UNWRAP(auto indexValues, ReadCompressedIndexDataValues(*aValues, 1))auto tryResult1417 = (ReadCompressedIndexDataValues(*aValues, 1)); if ((__builtin_expect(!!(tryResult1417.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(*aValues, 1)" , tryResult1417.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18488, mozilla::dom::quota::Severity::Error); return tryResult1417 .propagateErr(); } auto indexValues = tryResult1417.unwrap();; | ||||
| 18489 | |||||
| 18490 | const bool hadPreviousIndexValues = !indexValues.IsEmpty(); | ||||
| 18491 | |||||
| 18492 | const uint32_t updateInfoCount = updateInfos.Length(); | ||||
| 18493 | |||||
| 18494 | QM_TRY(OkIf(indexValues.SetCapacity(indexValues.Length() + updateInfoCount,{auto tryResult1418 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); 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(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18496, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18496, 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); }} | ||||
| 18495 | fallible)),{auto tryResult1418 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); 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(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18496, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18496, 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); }} | ||||
| 18496 | NS_ERROR_OUT_OF_MEMORY, IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1418 = (OkIf(indexValues.SetCapacity(indexValues .Length() + updateInfoCount, fallible))); 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(indexValues.SetCapacity(indexValues.Length() + updateInfoCount, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18496, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18496, 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); }}; | ||||
| 18497 | |||||
| 18498 | // First construct the full list to update the index_data_values row. | ||||
| 18499 | for (const IndexUpdateInfo& info : updateInfos) { | ||||
| 18500 | 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", 18503 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18503); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18501 | 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", 18503 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18503); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18502 | 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", 18503 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18503); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18503 | 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", 18503 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18503); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18504 | } | ||||
| 18505 | |||||
| 18506 | QM_TRY_UNWRAP((auto [indexValuesBlob, indexValuesBlobLength]),auto tryResult1419 = (MakeCompressedIndexDataValues(indexValues )); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18507, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength ] = tryResult1419.unwrap(); | ||||
| 18507 | MakeCompressedIndexDataValues(indexValues))auto tryResult1419 = (MakeCompressedIndexDataValues(indexValues )); if ((__builtin_expect(!!(tryResult1419.isErr()), 0))) { mozilla ::dom::quota::HandleError("MakeCompressedIndexDataValues(indexValues)" , tryResult1419.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18507, mozilla::dom::quota::Severity::Error); return tryResult1419 .propagateErr(); } auto [indexValuesBlob, indexValuesBlobLength ] = tryResult1419.unwrap();; | ||||
| 18508 | |||||
| 18509 | 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", 18509 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!indexValuesBlobLength == !(indexValuesBlob.get())" ")"); do { MOZ_CrashSequence(__null, 18509); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18510 | |||||
| 18511 | nsCOMPtr<nsIVariant> value; | ||||
| 18512 | |||||
| 18513 | if (!indexValuesBlob) { | ||||
| 18514 | value = new storage::NullVariant(); | ||||
| 18515 | |||||
| 18516 | value.forget(_retval); | ||||
| 18517 | return NS_OK; | ||||
| 18518 | } | ||||
| 18519 | |||||
| 18520 | // Now insert the new table rows. We only need to construct a new list if | ||||
| 18521 | // the full list is different. | ||||
| 18522 | if (hadPreviousIndexValues) { | ||||
| 18523 | indexValues.ClearAndRetainStorage(); | ||||
| 18524 | |||||
| 18525 | 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", 18525 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexValues.Capacity() >= updateInfoCount" ")"); do { MOZ_CrashSequence(__null, 18525); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18526 | |||||
| 18527 | for (const IndexUpdateInfo& info : updateInfos) { | ||||
| 18528 | 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", 18531 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18531); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18529 | 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", 18531 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18531); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18530 | 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", 18531 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18531); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18531 | 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", 18531 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexValues.InsertElementSorted( IndexDataValue(metadata.id(), metadata.unique(), info.value(), info.localizedValue()), fallible)" ")"); do { MOZ_CrashSequence(__null, 18531); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18532 | } | ||||
| 18533 | } | ||||
| 18534 | |||||
| 18535 | QM_TRY(MOZ_TO_RESULT({auto tryResult1420 = (ToResult(InsertIndexTableRows(mConnection , objectStoreId, key, indexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18536, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }} | ||||
| 18536 | InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))){auto tryResult1420 = (ToResult(InsertIndexTableRows(mConnection , objectStoreId, key, indexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1420)::ok_type>); if ((__builtin_expect (!!(tryResult1420.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(mConnection, objectStoreId, key, indexValues))" , tryResult1420.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18536, mozilla::dom::quota::Severity::Error); return tryResult1420 .propagateErr(); }}; | ||||
| 18537 | |||||
| 18538 | value = new storage::AdoptedBlobVariant( | ||||
| 18539 | std::pair(indexValuesBlob.release(), indexValuesBlobLength)); | ||||
| 18540 | |||||
| 18541 | value.forget(_retval); | ||||
| 18542 | return NS_OK; | ||||
| 18543 | } | ||||
| 18544 | |||||
| 18545 | DeleteIndexOp::DeleteIndexOp(SafeRefPtr<VersionChangeTransaction> aTransaction, | ||||
| 18546 | const IndexOrObjectStoreId aObjectStoreId, | ||||
| 18547 | const IndexOrObjectStoreId aIndexId, | ||||
| 18548 | const bool aUnique, const bool aIsLastIndex) | ||||
| 18549 | : VersionChangeTransactionOp(std::move(aTransaction)), | ||||
| 18550 | mObjectStoreId(aObjectStoreId), | ||||
| 18551 | mIndexId(aIndexId), | ||||
| 18552 | mUnique(aUnique), | ||||
| 18553 | mIsLastIndex(aIsLastIndex) { | ||||
| 18554 | 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", 18554 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 18554); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18555 | 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" , 18555); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aIndexId" ")" ); do { MOZ_CrashSequence(__null, 18555); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18556 | } | ||||
| 18557 | |||||
| 18558 | nsresult DeleteIndexOp::RemoveReferencesToIndex( | ||||
| 18559 | DatabaseConnection* aConnection, const Key& aObjectStoreKey, | ||||
| 18560 | nsTArray<IndexDataValue>& aIndexValues) const { | ||||
| 18561 | 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", 18561 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!NS_IsMainThread()" ")"); do { MOZ_CrashSequence(__null, 18561); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18562 | 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", 18562 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 18562); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18563 | 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" , 18563); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18563); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18564 | 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", 18564 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aObjectStoreKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 18564); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18565 | 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" , 18565); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIndexValues.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 18565); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18566 | |||||
| 18567 | AUTO_PROFILER_LABEL("DeleteIndexOp::RemoveReferencesToIndex", DOM)mozilla::AutoProfilerLabel raiiObject18567( "DeleteIndexOp::RemoveReferencesToIndex" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18568 | |||||
| 18569 | if (mIsLastIndex) { | ||||
| 18570 | // There is no need to parse the previous entry in the index_data_values | ||||
| 18571 | // column if this is the last index. Simply set it to NULL. | ||||
| 18572 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1421 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1421.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)" , tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18578, mozilla::dom::quota::Severity::Error); return tryResult1421 .propagateErr(); } const auto& stmt = tryResult1421.inspect (); | ||||
| 18573 | aConnection->BorrowCachedStatement(auto tryResult1421 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1421.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)" , tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18578, mozilla::dom::quota::Severity::Error); return tryResult1421 .propagateErr(); } const auto& stmt = tryResult1421.inspect (); | ||||
| 18574 | "UPDATE object_data "auto tryResult1421 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1421.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)" , tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18578, mozilla::dom::quota::Severity::Error); return tryResult1421 .propagateErr(); } const auto& stmt = tryResult1421.inspect (); | ||||
| 18575 | "SET index_data_values = NULL "auto tryResult1421 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1421.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)" , tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18578, mozilla::dom::quota::Severity::Error); return tryResult1421 .propagateErr(); } const auto& stmt = tryResult1421.inspect (); | ||||
| 18576 | "WHERE object_store_id = :"_ns +auto tryResult1421 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1421.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)" , tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18578, mozilla::dom::quota::Severity::Error); return tryResult1421 .propagateErr(); } const auto& stmt = tryResult1421.inspect (); | ||||
| 18577 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1421 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1421.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)" , tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18578, mozilla::dom::quota::Severity::Error); return tryResult1421 .propagateErr(); } const auto& stmt = tryResult1421.inspect (); | ||||
| 18578 | kStmtParamNameKey + ";"_ns))auto tryResult1421 = (aConnection->BorrowCachedStatement( "UPDATE object_data " "SET index_data_values = NULL " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + " AND key = :"_ns + kStmtParamNameKey + ";"_ns)); if ((__builtin_expect(!!(tryResult1421.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)" , tryResult1421.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18578, mozilla::dom::quota::Severity::Error); return tryResult1421 .propagateErr(); } const auto& stmt = tryResult1421.inspect ();; | ||||
| 18579 | |||||
| 18580 | QM_TRY(MOZ_TO_RESULT({auto tryResult1422 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18581, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); }} | ||||
| 18581 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1422 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1422)::ok_type>); if ((__builtin_expect (!!(tryResult1422.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1422.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18581, mozilla::dom::quota::Severity::Error); return tryResult1422 .propagateErr(); }}; | ||||
| 18582 | |||||
| 18583 | QM_TRY(MOZ_TO_RESULT({auto tryResult1423 = (ToResult(aObjectStoreKey.BindToStatement (&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v <typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect (!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18584, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }} | ||||
| 18584 | aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))){auto tryResult1423 = (ToResult(aObjectStoreKey.BindToStatement (&*stmt, kStmtParamNameKey))); static_assert(std::is_empty_v <typename decltype(tryResult1423)::ok_type>); if ((__builtin_expect (!!(tryResult1423.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aObjectStoreKey.BindToStatement(&*stmt, kStmtParamNameKey))" , tryResult1423.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18584, mozilla::dom::quota::Severity::Error); return tryResult1423 .propagateErr(); }}; | ||||
| 18585 | |||||
| 18586 | QM_TRY(MOZ_TO_RESULT(stmt->Execute())){auto tryResult1424 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1424)::ok_type >); if ((__builtin_expect(!!(tryResult1424.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->Execute())" , tryResult1424.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18586, mozilla::dom::quota::Severity::Error); return tryResult1424 .propagateErr(); }}; | ||||
| 18587 | |||||
| 18588 | return NS_OK; | ||||
| 18589 | } | ||||
| 18590 | |||||
| 18591 | { | ||||
| 18592 | IndexDataValue search; | ||||
| 18593 | search.mIndexId = mIndexId; | ||||
| 18594 | |||||
| 18595 | // Use raw pointers for search to avoid redundant index validity checks. | ||||
| 18596 | // Maybe this should better be encapsulated in nsTArray. | ||||
| 18597 | const auto* const begin = aIndexValues.Elements(); | ||||
| 18598 | const auto* const end = aIndexValues.Elements() + aIndexValues.Length(); | ||||
| 18599 | |||||
| 18600 | const auto indexIdComparator = [](const IndexDataValue& aA, | ||||
| 18601 | const IndexDataValue& aB) { | ||||
| 18602 | return aA.mIndexId < aB.mIndexId; | ||||
| 18603 | }; | ||||
| 18604 | |||||
| 18605 | 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", 18605 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "std::is_sorted(begin, end, indexIdComparator)" ")"); do { MOZ_CrashSequence(__null, 18605); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18606 | |||||
| 18607 | const auto [beginRange, endRange] = | ||||
| 18608 | std::equal_range(begin, end, search, indexIdComparator); | ||||
| 18609 | if (beginRange == end) { | ||||
| 18610 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18610, idbInternalErrMsg.get()); } while (0); | ||||
| 18611 | return NS_ERROR_FILE_CORRUPTED; | ||||
| 18612 | } | ||||
| 18613 | |||||
| 18614 | aIndexValues.RemoveElementsAt(beginRange - begin, endRange - beginRange); | ||||
| 18615 | } | ||||
| 18616 | |||||
| 18617 | QM_TRY(MOZ_TO_RESULT(UpdateIndexValues(aConnection, mObjectStoreId,{auto tryResult1425 = (ToResult(UpdateIndexValues(aConnection , mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1425)::ok_type >); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18618, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }} | ||||
| 18618 | aObjectStoreKey, aIndexValues))){auto tryResult1425 = (ToResult(UpdateIndexValues(aConnection , mObjectStoreId, aObjectStoreKey, aIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1425)::ok_type >); if ((__builtin_expect(!!(tryResult1425.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(UpdateIndexValues(aConnection, mObjectStoreId, aObjectStoreKey, aIndexValues))" , tryResult1425.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18618, mozilla::dom::quota::Severity::Error); return tryResult1425 .propagateErr(); }}; | ||||
| 18619 | |||||
| 18620 | return NS_OK; | ||||
| 18621 | } | ||||
| 18622 | |||||
| 18623 | nsresult DeleteIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18624 | 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" , 18624); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18624); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18625 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18626 | |||||
| 18627 | #ifdef DEBUG1 | ||||
| 18628 | { | ||||
| 18629 | // Make sure |mIsLastIndex| is telling the truth. | ||||
| 18630 | // The parameter names are not used, parameters are bound by index only | ||||
| 18631 | // locally in the same function. | ||||
| 18632 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1426 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1426.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" , 18637, 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" , 18637); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18637); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1426.inspect(); | ||||
| 18633 | aConnection->BorrowCachedStatement(auto tryResult1426 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1426.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" , 18637, 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" , 18637); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18637); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1426.inspect(); | ||||
| 18634 | "SELECT id "auto tryResult1426 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1426.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" , 18637, 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" , 18637); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18637); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1426.inspect(); | ||||
| 18635 | "FROM object_store_index "auto tryResult1426 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1426.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" , 18637, 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" , 18637); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18637); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1426.inspect(); | ||||
| 18636 | "WHERE object_store_id = :object_store_id;"_ns),auto tryResult1426 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1426.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" , 18637, 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" , 18637); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18637); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1426.inspect(); | ||||
| 18637 | QM_ASSERT_UNREACHABLE)auto tryResult1426 = (aConnection->BorrowCachedStatement( "SELECT id " "FROM object_store_index " "WHERE object_store_id = :object_store_id;"_ns )); if ((__builtin_expect(!!(tryResult1426.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1426.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" , 18637, 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" , 18637); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18637); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const auto& stmt = tryResult1426.inspect();; | ||||
| 18638 | |||||
| 18639 | 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", 18639 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->BindInt64ByIndex(0, mObjectStoreId))" ")"); do { MOZ_CrashSequence(__null, 18639); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18640 | |||||
| 18641 | bool foundThisIndex = false; | ||||
| 18642 | bool foundOtherIndex = false; | ||||
| 18643 | |||||
| 18644 | while (true) { | ||||
| 18645 | bool hasResult; | ||||
| 18646 | 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", 18646 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->ExecuteStep(&hasResult))" ")"); do { MOZ_CrashSequence(__null, 18646); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18647 | |||||
| 18648 | if (!hasResult) { | ||||
| 18649 | break; | ||||
| 18650 | } | ||||
| 18651 | |||||
| 18652 | int64_t id; | ||||
| 18653 | 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", 18653 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(stmt->GetInt64(0, &id))" ")"); do { MOZ_CrashSequence(__null, 18653); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18654 | |||||
| 18655 | if (id == mIndexId) { | ||||
| 18656 | foundThisIndex = true; | ||||
| 18657 | } else { | ||||
| 18658 | foundOtherIndex = true; | ||||
| 18659 | } | ||||
| 18660 | } | ||||
| 18661 | |||||
| 18662 | 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" , 18662); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && !foundOtherIndex" ")"); do { MOZ_CrashSequence(__null, 18662); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18663 | 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" , 18663); AnnotateMozCrashReason("MOZ_ASSERT" "(" "foundThisIndex && foundOtherIndex" ")"); do { MOZ_CrashSequence(__null, 18663); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18664 | } | ||||
| 18665 | #endif | ||||
| 18666 | |||||
| 18667 | AUTO_PROFILER_LABEL("DeleteIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18667( "DeleteIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18668 | |||||
| 18669 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18670 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1427 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427 .isErr()), 0))) { auto tryTempError = tryResult1427.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18675, 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)); }} | ||||
| 18671 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1427 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427 .isErr()), 0))) { auto tryTempError = tryResult1427.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18675, 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)); }} | ||||
| 18672 | ,{auto tryResult1427 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427 .isErr()), 0))) { auto tryTempError = tryResult1427.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18675, 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)); }} | ||||
| 18673 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1427 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427 .isErr()), 0))) { auto tryTempError = tryResult1427.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18675, 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)); }} | ||||
| 18674 | #endif{auto tryResult1427 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427 .isErr()), 0))) { auto tryTempError = tryResult1427.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18675, 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)); }} | ||||
| 18675 | ){auto tryResult1427 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1427)::ok_type>); if ((__builtin_expect(!!(tryResult1427 .isErr()), 0))) { auto tryTempError = tryResult1427.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18675, 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)); }}; | ||||
| 18676 | |||||
| 18677 | // mozStorage warns that these statements trigger a sort operation but we | ||||
| 18678 | // don't care because this is a very rare call and we expect it to be slow. | ||||
| 18679 | // The cost of having an index on this field is too high. | ||||
| 18680 | QM_TRY_INSPECT(auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18681 | const auto& selectStmt,auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18682 | aConnection->BorrowCachedStatement(auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18683 | mUniqueauto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18684 | ? (mIsLastIndexauto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18685 | ? "/* do not warn (bug someone else) */ "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18686 | "SELECT value, object_data_key "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18687 | "FROM unique_index_data "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18688 | "WHERE index_id = :"_ns +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18689 | kStmtParamNameIndexId +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18690 | " ORDER BY object_data_key ASC;"_nsauto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18691 | : "/* do not warn (bug out) */ "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18692 | "SELECT unique_index_data.value, "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18693 | "unique_index_data.object_data_key, "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18694 | "object_data.index_data_values "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18695 | "FROM unique_index_data "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18696 | "JOIN object_data "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18697 | "ON unique_index_data.object_data_key = object_data.key "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18698 | "WHERE unique_index_data.index_id = :"_ns +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18699 | kStmtParamNameIndexId +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18700 | " AND object_data.object_store_id = :"_ns +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18701 | kStmtParamNameObjectStoreId +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18702 | " ORDER BY unique_index_data.object_data_key ASC;"_ns)auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18703 | : (mIsLastIndexauto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18704 | ? "/* do not warn (bug me not) */ "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18705 | "SELECT value, object_data_key "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18706 | "FROM index_data "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18707 | "WHERE index_id = :"_ns +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18708 | kStmtParamNameIndexId +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18709 | " AND object_store_id = :"_ns +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18710 | kStmtParamNameObjectStoreId +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18711 | " ORDER BY object_data_key ASC;"_nsauto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18712 | : "/* do not warn (bug off) */ "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18713 | "SELECT index_data.value, "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18714 | "index_data.object_data_key, "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18715 | "object_data.index_data_values "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18716 | "FROM index_data "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18717 | "JOIN object_data "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18718 | "ON index_data.object_data_key = object_data.key "auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18719 | "WHERE index_data.index_id = :"_ns +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18720 | kStmtParamNameIndexId +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18721 | " AND object_data.object_store_id = :"_ns +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18722 | kStmtParamNameObjectStoreId +auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect(); | ||||
| 18723 | " ORDER BY index_data.object_data_key ASC;"_ns)))auto tryResult1428 = (aConnection->BorrowCachedStatement( mUnique ? (mIsLastIndex ? "/* do not warn (bug someone else) */ " "SELECT value, object_data_key " "FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug out) */ " "SELECT unique_index_data.value, " "unique_index_data.object_data_key, " "object_data.index_data_values " "FROM unique_index_data " "JOIN object_data " "ON unique_index_data.object_data_key = object_data.key " "WHERE unique_index_data.index_id = :"_ns + kStmtParamNameIndexId + " AND object_data.object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY unique_index_data.object_data_key ASC;"_ns ) : (mIsLastIndex ? "/* do not warn (bug me not) */ " "SELECT value, object_data_key " "FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND object_store_id = :"_ns + kStmtParamNameObjectStoreId + " ORDER BY object_data_key ASC;"_ns : "/* do not warn (bug off) */ " "SELECT index_data.value, " "index_data.object_data_key, " "object_data.index_data_values " "FROM index_data " "JOIN object_data " "ON index_data.object_data_key = object_data.key " "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 (!!(tryResult1428.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))" , tryResult1428.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18723, mozilla::dom::quota::Severity::Error); return tryResult1428 .propagateErr(); } const auto& selectStmt = tryResult1428 .inspect();; | ||||
| 18724 | |||||
| 18725 | QM_TRY(MOZ_TO_RESULT({auto tryResult1429 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v <typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect (!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18726, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }} | ||||
| 18726 | selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))){auto tryResult1429 = (ToResult(selectStmt->BindInt64ByName (kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v <typename decltype(tryResult1429)::ok_type>); if ((__builtin_expect (!!(tryResult1429.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(selectStmt->BindInt64ByName(kStmtParamNameIndexId, mIndexId))" , tryResult1429.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18726, mozilla::dom::quota::Severity::Error); return tryResult1429 .propagateErr(); }}; | ||||
| 18727 | |||||
| 18728 | if (!mUnique || !mIsLastIndex) { | ||||
| 18729 | QM_TRY(MOZ_TO_RESULT(selectStmt->BindInt64ByName({auto tryResult1430 = (ToResult(selectStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1430)::ok_type >); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18730, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }} | ||||
| 18730 | kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1430 = (ToResult(selectStmt->BindInt64ByName ( kStmtParamNameObjectStoreId, mObjectStoreId))); static_assert (std::is_empty_v<typename decltype(tryResult1430)::ok_type >); if ((__builtin_expect(!!(tryResult1430.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt->BindInt64ByName( kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1430.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18730, mozilla::dom::quota::Severity::Error); return tryResult1430 .propagateErr(); }}; | ||||
| 18731 | } | ||||
| 18732 | |||||
| 18733 | Key lastObjectStoreKey; | ||||
| 18734 | IndexDataValuesAutoArray lastIndexValues; | ||||
| 18735 | |||||
| 18736 | QM_TRY(CollectWhileHasResult({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18737 | *selectStmt,{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18738 | [this, &aConnection, &lastObjectStoreKey, &lastIndexValues,{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18739 | deleteIndexRowStmt ={auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18740 | DatabaseConnection::LazyStatement{{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18741 | *aConnection,{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18742 | mUnique{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18743 | ? "DELETE FROM unique_index_data "{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18744 | "WHERE index_id = :"_ns +{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18745 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18746 | kStmtParamNameValue + ";"_ns{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18747 | : "DELETE FROM index_data "{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18748 | "WHERE index_id = :"_ns +{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18749 | kStmtParamNameIndexId + " AND value = :"_ns +{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18750 | kStmtParamNameValue + " AND object_data_key = :"_ns +{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18751 | kStmtParamNameObjectDataKey + ";"_ns}]({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18752 | auto& selectStmt) mutable -> Result<Ok, nsresult> {{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18753 | // We always need the index key to delete the index row.{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18754 | Key indexKey;{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18755 | QM_TRY(MOZ_TO_RESULT(indexKey.SetFromStatement(&selectStmt, 0)));{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18756 | |||||
| 18757 | QM_TRY(OkIf(!indexKey.IsUnset()), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18758 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18759 | |||||
| 18760 | // Don't call |lastObjectStoreKey.BindToStatement()| directly because we{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18761 | // don't want to copy the same key multiple times.{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18762 | const uint8_t* objectStoreKeyData;{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18763 | uint32_t objectStoreKeyDataLength;{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18764 | QM_TRY(MOZ_TO_RESULT(selectStmt.GetSharedBlob({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18765 | 1, &objectStoreKeyDataLength, &objectStoreKeyData)));{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18766 | |||||
| 18767 | QM_TRY(OkIf(objectStoreKeyDataLength), Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18768 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18769 | |||||
| 18770 | const nsDependentCString currentObjectStoreKeyBuffer({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18771 | reinterpret_cast<const char*>(objectStoreKeyData),{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18772 | objectStoreKeyDataLength);{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18773 | if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) {{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18774 | // We just walked to the next object store key.{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18775 | if (!lastObjectStoreKey.IsUnset()) {{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18776 | // Before we move on to the next key we need to update the previous{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18777 | // key's index_data_values column.{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18778 | QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18779 | aConnection, lastObjectStoreKey, lastIndexValues)));{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18780 | }{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18781 | |||||
| 18782 | // Save the object store key.{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18783 | lastObjectStoreKey = Key(currentObjectStoreKeyBuffer);{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18784 | |||||
| 18785 | // And the |index_data_values| row if this isn't the only index.{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18786 | if (!mIsLastIndex) {{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18787 | lastIndexValues.ClearAndRetainStorage();{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18788 | QM_TRY(MOZ_TO_RESULT({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18789 | ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues)));{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18790 | |||||
| 18791 | QM_TRY(OkIf(!lastIndexValues.IsEmpty()),{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18792 | Err(NS_ERROR_FILE_CORRUPTED),{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18793 | IDB_REPORT_INTERNAL_ERR_LAMBDA);{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18794 | }{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18795 | }{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18796 | |||||
| 18797 | // Now delete the index row.{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18798 | {{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18799 | QM_TRY_INSPECT(const auto& borrowedDeleteIndexRowStmt,{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18800 | deleteIndexRowStmt.Borrow());{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18801 | |||||
| 18802 | QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->BindInt64ByName({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18803 | kStmtParamNameIndexId, mIndexId)));{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18804 | |||||
| 18805 | QM_TRY(MOZ_TO_RESULT(indexKey.BindToStatement({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18806 | &*borrowedDeleteIndexRowStmt, kStmtParamNameValue)));{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18807 | |||||
| 18808 | if (!mUnique) {{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18809 | QM_TRY(MOZ_TO_RESULT(lastObjectStoreKey.BindToStatement({auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18810 | &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey)));{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18811 | }{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18812 | |||||
| 18813 | QM_TRY(MOZ_TO_RESULT(borrowedDeleteIndexRowStmt->Execute()));{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18814 | }{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18815 | |||||
| 18816 | return Ok{};{auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }} | ||||
| 18817 | })){auto tryResult1443 = (CollectWhileHasResult( *selectStmt, [this , &aConnection, &lastObjectStoreKey, &lastIndexValues , deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection , mUnique ? "DELETE FROM unique_index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + ";"_ns : "DELETE FROM index_data " "WHERE index_id = :"_ns + kStmtParamNameIndexId + " AND value = :"_ns + kStmtParamNameValue + " AND object_data_key = :"_ns + kStmtParamNameObjectDataKey + ";"_ns}]( auto& selectStmt) mutable -> Result<Ok , nsresult> { Key indexKey; {auto tryResult1431 = (ToResult (indexKey.SetFromStatement(&selectStmt, 0))); static_assert (std::is_empty_v<typename decltype(tryResult1431)::ok_type >); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.SetFromStatement(&selectStmt, 0))" , tryResult1431.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18755, mozilla::dom::quota::Severity::Error); return tryResult1431 .propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset ())); static_assert(std::is_empty_v<typename decltype(tryResult1432 )::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr ()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(!indexKey.IsUnset())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18758 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!indexKey.IsUnset())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t * objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, & objectStoreKeyDataLength, &objectStoreKeyData))); static_assert (std::is_empty_v<typename decltype(tryResult1433)::ok_type >); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))" , tryResult1433.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18765, mozilla::dom::quota::Severity::Error); return tryResult1433 .propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength )); static_assert(std::is_empty_v<typename decltype(tryResult1434 )::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr ()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla ::dom::quota::HandleError("OkIf(objectStoreKeyDataLength)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18768 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(objectStoreKeyDataLength)" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char* >(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey .IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex ( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert (std::is_empty_v<typename decltype(tryResult1435)::ok_type >); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1435.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18779, mozilla::dom::quota::Severity::Error); return tryResult1435 .propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer ); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage (); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues (selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect (!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))" , tryResult1436.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18789, mozilla::dom::quota::Severity::Error); return tryResult1436 .propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues .IsEmpty())); static_assert(std::is_empty_v<typename decltype (tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437 .isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(!lastIndexValues.IsEmpty())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError ); [[maybe_unused]] constexpr const auto& func = __func__ ; return mozilla::dom::quota::HandleCustomRetVal(func, "OkIf(!lastIndexValues.IsEmpty())" , tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect (!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError ("deleteIndexRowStmt.Borrow()", tryResult1438.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18800, mozilla::dom::quota::Severity::Error); return tryResult1438 .propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult( borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId , mIndexId))); static_assert(std::is_empty_v<typename decltype (tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))" , tryResult1439.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18803, mozilla::dom::quota::Severity::Error); return tryResult1439 .propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey .BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue ))); static_assert(std::is_empty_v<typename decltype(tryResult1440 )::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))" , tryResult1440.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18806, mozilla::dom::quota::Severity::Error); return tryResult1440 .propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult (lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt , kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v <typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect (!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))" , tryResult1441.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18810, mozilla::dom::quota::Severity::Error); return tryResult1441 .propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt ->Execute())); static_assert(std::is_empty_v<typename decltype (tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(borrowedDeleteIndexRowStmt->Execute())" , tryResult1442.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18813, mozilla::dom::quota::Severity::Error); return tryResult1442 .propagateErr(); }}; } return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1443)::ok_type>); if ((__builtin_expect (!!(tryResult1443.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *selectStmt, [this, &aConnection, &lastObjectStoreKey, &lastIndexValues, deleteIndexRowStmt = DatabaseConnection::LazyStatement{ *aConnection, mUnique ? \"DELETE FROM unique_index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \";\"_ns : \"DELETE FROM index_data \" \"WHERE index_id = :\"_ns + kStmtParamNameIndexId + \" AND value = :\"_ns + kStmtParamNameValue + \" AND object_data_key = :\"_ns + kStmtParamNameObjectDataKey + \";\"_ns}]( auto& selectStmt) mutable -> Result<Ok, nsresult> { Key indexKey; {auto tryResult1431 = (ToResult(indexKey.SetFromStatement(&selectStmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1431)::ok_type>); if ((__builtin_expect(!!(tryResult1431.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.SetFromStatement(&selectStmt, 0))\", tryResult1431.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18755, mozilla::dom::quota::Severity::Error); return tryResult1431.propagateErr(); }}; {auto tryResult1432 = (OkIf(!indexKey.IsUnset())); static_assert(std::is_empty_v<typename decltype(tryResult1432)::ok_type>); if ((__builtin_expect(!!(tryResult1432.isErr()), 0))) { auto tryTempError = tryResult1432.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!indexKey.IsUnset())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18758, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!indexKey.IsUnset())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const uint8_t* objectStoreKeyData; uint32_t objectStoreKeyDataLength; {auto tryResult1433 = (ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))); static_assert(std::is_empty_v<typename decltype(tryResult1433)::ok_type>); if ((__builtin_expect(!!(tryResult1433.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(selectStmt.GetSharedBlob( 1, &objectStoreKeyDataLength, &objectStoreKeyData))\", tryResult1433.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18765, mozilla::dom::quota::Severity::Error); return tryResult1433.propagateErr(); }}; {auto tryResult1434 = (OkIf(objectStoreKeyDataLength)); static_assert(std::is_empty_v<typename decltype(tryResult1434)::ok_type>); if ((__builtin_expect(!!(tryResult1434.isErr()), 0))) { auto tryTempError = tryResult1434.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(objectStoreKeyDataLength)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18768, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(objectStoreKeyDataLength)\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; const nsDependentCString currentObjectStoreKeyBuffer( reinterpret_cast<const char*>(objectStoreKeyData), objectStoreKeyDataLength); if (currentObjectStoreKeyBuffer != lastObjectStoreKey.GetBuffer()) { if (!lastObjectStoreKey.IsUnset()) { {auto tryResult1435 = (ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1435)::ok_type>); if ((__builtin_expect(!!(tryResult1435.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))\", tryResult1435.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18779, mozilla::dom::quota::Severity::Error); return tryResult1435.propagateErr(); }}; } lastObjectStoreKey = Key(currentObjectStoreKeyBuffer); if (!mIsLastIndex) { lastIndexValues.ClearAndRetainStorage(); {auto tryResult1436 = (ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))); static_assert(std::is_empty_v<typename decltype(tryResult1436)::ok_type>); if ((__builtin_expect(!!(tryResult1436.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(ReadCompressedIndexDataValues(selectStmt, 2, lastIndexValues))\", tryResult1436.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18789, mozilla::dom::quota::Severity::Error); return tryResult1436.propagateErr(); }}; {auto tryResult1437 = (OkIf(!lastIndexValues.IsEmpty())); static_assert(std::is_empty_v<typename decltype(tryResult1437)::ok_type>); if ((__builtin_expect(!!(tryResult1437.isErr()), 0))) { auto tryTempError = tryResult1437.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg(\"UnknownErr in %s\", __func__); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18793, idbInternalErrMsg.get()); } while (0); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota::HandleCustomRetVal(func, \"OkIf(!lastIndexValues.IsEmpty())\", tryTempError, Err(NS_ERROR_FILE_CORRUPTED)); }}; } } { auto tryResult1438 = (deleteIndexRowStmt.Borrow()); if ((__builtin_expect(!!(tryResult1438.isErr()), 0))) { mozilla::dom::quota::HandleError(\"deleteIndexRowStmt.Borrow()\", tryResult1438.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18800, mozilla::dom::quota::Severity::Error); return tryResult1438.propagateErr(); } const auto& borrowedDeleteIndexRowStmt = tryResult1438.inspect();; {auto tryResult1439 = (ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1439)::ok_type>); if ((__builtin_expect(!!(tryResult1439.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->BindInt64ByName( kStmtParamNameIndexId, mIndexId))\", tryResult1439.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18803, mozilla::dom::quota::Severity::Error); return tryResult1439.propagateErr(); }}; {auto tryResult1440 = (ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))); static_assert(std::is_empty_v<typename decltype(tryResult1440)::ok_type>); if ((__builtin_expect(!!(tryResult1440.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(indexKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameValue))\", tryResult1440.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18806, mozilla::dom::quota::Severity::Error); return tryResult1440.propagateErr(); }}; if (!mUnique) { {auto tryResult1441 = (ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))); static_assert(std::is_empty_v<typename decltype(tryResult1441)::ok_type>); if ((__builtin_expect(!!(tryResult1441.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(lastObjectStoreKey.BindToStatement( &*borrowedDeleteIndexRowStmt, kStmtParamNameObjectDataKey))\", tryResult1441.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18810, mozilla::dom::quota::Severity::Error); return tryResult1441.propagateErr(); }}; } {auto tryResult1442 = (ToResult(borrowedDeleteIndexRowStmt->Execute())); static_assert(std::is_empty_v<typename decltype(tryResult1442)::ok_type>); if ((__builtin_expect(!!(tryResult1442.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(borrowedDeleteIndexRowStmt->Execute())\", tryResult1442.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18813, mozilla::dom::quota::Severity::Error); return tryResult1442.propagateErr(); }}; } return Ok{}; })" , tryResult1443.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18817, mozilla::dom::quota::Severity::Error); return tryResult1443 .propagateErr(); }}; | ||||
| 18818 | |||||
| 18819 | // Take care of the last key. | ||||
| 18820 | if (!lastObjectStoreKey.IsUnset()) { | ||||
| 18821 | 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", 18821 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!lastIndexValues.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 18821); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 18822 | |||||
| 18823 | QM_TRY(MOZ_TO_RESULT(RemoveReferencesToIndex({auto tryResult1444 = (ToResult(RemoveReferencesToIndex( aConnection , lastObjectStoreKey, lastIndexValues))); static_assert(std:: is_empty_v<typename decltype(tryResult1444)::ok_type>); if ((__builtin_expect(!!(tryResult1444.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1444.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18824, mozilla::dom::quota::Severity::Error); return tryResult1444 .propagateErr(); }} | ||||
| 18824 | aConnection, lastObjectStoreKey, lastIndexValues))){auto tryResult1444 = (ToResult(RemoveReferencesToIndex( aConnection , lastObjectStoreKey, lastIndexValues))); static_assert(std:: is_empty_v<typename decltype(tryResult1444)::ok_type>); if ((__builtin_expect(!!(tryResult1444.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(RemoveReferencesToIndex( aConnection, lastObjectStoreKey, lastIndexValues))" , tryResult1444.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18824, mozilla::dom::quota::Severity::Error); return tryResult1444 .propagateErr(); }}; | ||||
| 18825 | } | ||||
| 18826 | |||||
| 18827 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1446 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1445 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1445)::ok_type> ); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18832, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect (!!(tryResult1446.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 tryResult1445 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; return Ok{}; }))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18835, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }} | ||||
| 18828 | "DELETE FROM object_store_index "{auto tryResult1446 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1445 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1445)::ok_type> ); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18832, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect (!!(tryResult1446.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 tryResult1445 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; return Ok{}; }))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18835, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }} | ||||
| 18829 | "WHERE id = :index_id;"_ns,{auto tryResult1446 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1445 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1445)::ok_type> ); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18832, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect (!!(tryResult1446.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 tryResult1445 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; return Ok{}; }))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18835, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }} | ||||
| 18830 | [indexId ={auto tryResult1446 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1445 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1445)::ok_type> ); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18832, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect (!!(tryResult1446.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 tryResult1445 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; return Ok{}; }))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18835, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }} | ||||
| 18831 | mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> {{auto tryResult1446 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1445 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1445)::ok_type> ); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18832, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect (!!(tryResult1446.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 tryResult1445 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; return Ok{}; }))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18835, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }} | ||||
| 18832 | QM_TRY(MOZ_TO_RESULT(deleteStmt.BindInt64ByIndex(0, indexId)));{auto tryResult1446 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1445 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1445)::ok_type> ); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18832, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect (!!(tryResult1446.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 tryResult1445 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; return Ok{}; }))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18835, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }} | ||||
| 18833 | |||||
| 18834 | return Ok{};{auto tryResult1446 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1445 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1445)::ok_type> ); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18832, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect (!!(tryResult1446.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 tryResult1445 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; return Ok{}; }))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18835, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }} | ||||
| 18835 | }))){auto tryResult1446 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_store_index " "WHERE id = :index_id;"_ns , [indexId = mIndexId](mozIStorageStatement& deleteStmt) -> Result<Ok, nsresult> { {auto tryResult1445 = (ToResult (deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std ::is_empty_v<typename decltype(tryResult1445)::ok_type> ); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(deleteStmt.BindInt64ByIndex(0, indexId))" , tryResult1445.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18832, mozilla::dom::quota::Severity::Error); return tryResult1445 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1446)::ok_type>); if ((__builtin_expect (!!(tryResult1446.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 tryResult1445 = (ToResult(deleteStmt.BindInt64ByIndex(0, indexId))); static_assert(std::is_empty_v<typename decltype(tryResult1445)::ok_type>); if ((__builtin_expect(!!(tryResult1445.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(deleteStmt.BindInt64ByIndex(0, indexId))\", tryResult1445.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18832, mozilla::dom::quota::Severity::Error); return tryResult1445.propagateErr(); }}; return Ok{}; }))" , tryResult1446.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18835, mozilla::dom::quota::Severity::Error); return tryResult1446 .propagateErr(); }}; | ||||
| 18836 | |||||
| 18837 | #ifdef DEBUG1 | ||||
| 18838 | { | ||||
| 18839 | int32_t deletedRowCount; | ||||
| 18840 | 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", 18841 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18841); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 18841 | &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", 18841 ); AnnotateMozCrashReason("MOZ_CRASH(" "NS_SUCCEEDED(aConnection->MutableStorageConnection().GetAffectedRows( &deletedRowCount))" ")"); do { MOZ_CrashSequence(__null, 18841); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 18842 | 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", 18842 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "deletedRowCount == 1" ")"); do { MOZ_CrashSequence(__null, 18842); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18843 | } | ||||
| 18844 | #endif | ||||
| 18845 | |||||
| 18846 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1447 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1447)::ok_type >); if ((__builtin_expect(!!(tryResult1447.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1447.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18846, mozilla::dom::quota::Severity::Error); return tryResult1447 .propagateErr(); }}; | ||||
| 18847 | |||||
| 18848 | return NS_OK; | ||||
| 18849 | } | ||||
| 18850 | |||||
| 18851 | nsresult RenameIndexOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 18852 | 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" , 18852); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 18852); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18853 | aConnection->AssertIsOnConnectionThread(); | ||||
| 18854 | |||||
| 18855 | AUTO_PROFILER_LABEL("RenameIndexOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject18855( "RenameIndexOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 18856 | |||||
| 18857 | #ifdef DEBUG1 | ||||
| 18858 | { | ||||
| 18859 | // Make sure that we're not renaming an index with the same name as another | ||||
| 18860 | // that already exists. This should be impossible because we should have | ||||
| 18861 | // thrown an error long before now... | ||||
| 18862 | // The parameter names are not used, parameters are bound by index only | ||||
| 18863 | // locally in the same function. | ||||
| 18864 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18865 | aConnectionauto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18866 | ->BorrowAndExecuteSingleStepStatement(auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18867 | "SELECT name "auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18868 | "FROM object_store_index "auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18869 | "WHERE object_store_id = :object_store_id "auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18870 | "AND name = :name "auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18871 | "AND id != :id;"_ns,auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18872 | [&self = *this](auto& stmt) -> Result<Ok, nsresult> {auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18873 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18874 | 0, self.mObjectStoreId)));auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18875 | QM_TRY(MOZ_TO_RESULT(auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18876 | stmt.BindStringByIndex(1, self.mNewName)));auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18877 | QM_TRY(MOZ_TO_RESULT(auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18878 | stmt.BindInt64ByIndex(2, self.mIndexId)));auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18879 | |||||
| 18880 | return Ok{};auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18881 | })auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18882 | .map(IsSome),auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect(); | ||||
| 18883 | QM_ASSERT_UNREACHABLE)auto tryResult1451 = (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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))) ; static_assert(std::is_empty_v<typename decltype(tryResult1448 )::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))" , tryResult1448.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18874, mozilla::dom::quota::Severity::Error); return tryResult1448 .propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex (1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect (!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(1, self.mNewName))", tryResult1449 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18876, mozilla::dom::quota::Severity::Error); return tryResult1449 .propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex (2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect (!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))", tryResult1450 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18878, mozilla::dom::quota::Severity::Error); return tryResult1450 .propagateErr(); }}; return Ok{}; }) .map(IsSome)); if ((__builtin_expect (!!(tryResult1451.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1451.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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.propagateErr(); }}; return Ok{}; }) .map(IsSome)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18883, 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 tryResult1448 = (ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1448)::ok_type>); if ((__builtin_expect(!!(tryResult1448.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex( 0, self.mObjectStoreId))\", tryResult1448.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18874, mozilla::dom::quota::Severity::Error); return tryResult1448.propagateErr(); }}; {auto tryResult1449 = (ToResult(stmt.BindStringByIndex(1, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1449)::ok_type>); if ((__builtin_expect(!!(tryResult1449.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(1, self.mNewName))\", tryResult1449.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18876, mozilla::dom::quota::Severity::Error); return tryResult1449.propagateErr(); }}; {auto tryResult1450 = (ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1450)::ok_type>); if ((__builtin_expect(!!(tryResult1450.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(2, self.mIndexId))\", tryResult1450.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18878, mozilla::dom::quota::Severity::Error); return tryResult1450.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" , 18883); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18883); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasResult = tryResult1451.inspect();; | ||||
| 18884 | |||||
| 18885 | 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" , 18885); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!hasResult" ")"); do { MOZ_CrashSequence(__null, 18885); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18886 | } | ||||
| 18887 | #else | ||||
| 18888 | (void)mObjectStoreId; | ||||
| 18889 | #endif | ||||
| 18890 | |||||
| 18891 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 18892 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1452 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1452)::ok_type>); if ((__builtin_expect(!!(tryResult1452 .isErr()), 0))) { auto tryTempError = tryResult1452.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18897, 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)); }} | ||||
| 18893 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1452 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1452)::ok_type>); if ((__builtin_expect(!!(tryResult1452 .isErr()), 0))) { auto tryTempError = tryResult1452.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18897, 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)); }} | ||||
| 18894 | ,{auto tryResult1452 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1452)::ok_type>); if ((__builtin_expect(!!(tryResult1452 .isErr()), 0))) { auto tryTempError = tryResult1452.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18897, 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)); }} | ||||
| 18895 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1452 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1452)::ok_type>); if ((__builtin_expect(!!(tryResult1452 .isErr()), 0))) { auto tryTempError = tryResult1452.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18897, 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)); }} | ||||
| 18896 | #endif{auto tryResult1452 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1452)::ok_type>); if ((__builtin_expect(!!(tryResult1452 .isErr()), 0))) { auto tryTempError = tryResult1452.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18897, 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)); }} | ||||
| 18897 | ){auto tryResult1452 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1452)::ok_type>); if ((__builtin_expect(!!(tryResult1452 .isErr()), 0))) { auto tryTempError = tryResult1452.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18897, 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)); }}; | ||||
| 18898 | |||||
| 18899 | // The parameter names are not used, parameters are bound by index only | ||||
| 18900 | // locally in the same function. | ||||
| 18901 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 18902 | "UPDATE object_store_index "{auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 18903 | "SET name = :name "{auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 18904 | "WHERE id = :id;"_ns,{auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 18905 | [&self = *this](mozIStorageStatement& stmt) -> Result<Ok, nsresult> {{auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 18906 | QM_TRY(MOZ_TO_RESULT(stmt.BindStringByIndex(0, self.mNewName)));{auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 18907 | |||||
| 18908 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByIndex(1, self.mIndexId)));{auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 18909 | |||||
| 18910 | return Ok{};{auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }} | ||||
| 18911 | }))){auto tryResult1455 = (ToResult(aConnection->ExecuteCachedStatement ( "UPDATE object_store_index " "SET name = :name " "WHERE id = :id;"_ns , [&self = *this](mozIStorageStatement& stmt) -> Result <Ok, nsresult> { {auto tryResult1453 = (ToResult(stmt.BindStringByIndex (0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect (!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindStringByIndex(0, self.mNewName))", tryResult1453 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18906, mozilla::dom::quota::Severity::Error); return tryResult1453 .propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex (1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect (!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))", tryResult1454 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18908, mozilla::dom::quota::Severity::Error); return tryResult1454 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1455)::ok_type>); if ((__builtin_expect (!!(tryResult1455.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 tryResult1453 = (ToResult(stmt.BindStringByIndex(0, self.mNewName))); static_assert(std::is_empty_v<typename decltype(tryResult1453)::ok_type>); if ((__builtin_expect(!!(tryResult1453.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindStringByIndex(0, self.mNewName))\", tryResult1453.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18906, mozilla::dom::quota::Severity::Error); return tryResult1453.propagateErr(); }}; {auto tryResult1454 = (ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1454)::ok_type>); if ((__builtin_expect(!!(tryResult1454.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(1, self.mIndexId))\", tryResult1454.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 18908, mozilla::dom::quota::Severity::Error); return tryResult1454.propagateErr(); }}; return Ok{}; }))" , tryResult1455.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18911, mozilla::dom::quota::Severity::Error); return tryResult1455 .propagateErr(); }}; | ||||
| 18912 | |||||
| 18913 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1456 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1456)::ok_type >); if ((__builtin_expect(!!(tryResult1456.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1456.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18913, mozilla::dom::quota::Severity::Error); return tryResult1456 .propagateErr(); }}; | ||||
| 18914 | |||||
| 18915 | return NS_OK; | ||||
| 18916 | } | ||||
| 18917 | |||||
| 18918 | Result<bool, nsresult> NormalTransactionOp::ObjectStoreHasIndexes( | ||||
| 18919 | DatabaseConnection& aConnection, const IndexOrObjectStoreId aObjectStoreId, | ||||
| 18920 | const bool aMayHaveIndexes) { | ||||
| 18921 | aConnection.AssertIsOnConnectionThread(); | ||||
| 18922 | 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", 18922 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 18922); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 18923 | |||||
| 18924 | if (Transaction().GetMode() == IDBTransaction::Mode::VersionChange && | ||||
| 18925 | aMayHaveIndexes) { | ||||
| 18926 | // If this is a version change transaction then mObjectStoreMayHaveIndexes | ||||
| 18927 | // could be wrong (e.g. if a unique index failed to be created due to a | ||||
| 18928 | // constraint error). We have to check on this thread by asking the database | ||||
| 18929 | // directly. | ||||
| 18930 | QM_TRY_RETURN(DatabaseOperationBase::ObjectStoreHasIndexes(aConnection,{auto tryResult1457 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1457 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18931, mozilla::dom::quota::Severity::Error); } return tryResult1457 ;} | ||||
| 18931 | aObjectStoreId)){auto tryResult1457 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1457 .isErr()), 0))) { mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryResult1457.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18931, mozilla::dom::quota::Severity::Error); } return tryResult1457 ;}; | ||||
| 18932 | } | ||||
| 18933 | |||||
| 18934 | #ifdef DEBUG1 | ||||
| 18935 | QM_TRY_INSPECT(auto tryResult1458 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1458 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1458 .unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18938, 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" , 18938); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18938); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1458.inspect(); | ||||
| 18936 | const bool& hasIndexes,auto tryResult1458 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1458 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1458 .unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18938, 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" , 18938); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18938); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1458.inspect(); | ||||
| 18937 | DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId),auto tryResult1458 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1458 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1458 .unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18938, 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" , 18938); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18938); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1458.inspect(); | ||||
| 18938 | QM_ASSERT_UNREACHABLE)auto tryResult1458 = (DatabaseOperationBase::ObjectStoreHasIndexes (aConnection, aObjectStoreId)); if ((__builtin_expect(!!(tryResult1458 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1458 .unwrapErr(); mozilla::dom::quota::HandleError("DatabaseOperationBase::ObjectStoreHasIndexes(aConnection, aObjectStoreId)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18938, 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" , 18938); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 18938); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1458.inspect();; | ||||
| 18939 | 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" , 18939); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aMayHaveIndexes == hasIndexes" ")"); do { MOZ_CrashSequence(__null, 18939); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18940 | #endif | ||||
| 18941 | |||||
| 18942 | return aMayHaveIndexes; | ||||
| 18943 | } | ||||
| 18944 | |||||
| 18945 | Result<PreprocessParams, nsresult> NormalTransactionOp::GetPreprocessParams() { | ||||
| 18946 | return PreprocessParams{}; | ||||
| 18947 | } | ||||
| 18948 | |||||
| 18949 | nsresult NormalTransactionOp::SendPreprocessInfo() { | ||||
| 18950 | AssertIsOnOwningThread(); | ||||
| 18951 | 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", 18951 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsActorDestroyed()" ")"); do { MOZ_CrashSequence(__null, 18951); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18952 | |||||
| 18953 | QM_TRY_INSPECT(const auto& params, GetPreprocessParams())auto tryResult1459 = (GetPreprocessParams()); if ((__builtin_expect (!!(tryResult1459.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetPreprocessParams()", tryResult1459.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18953, mozilla::dom::quota::Severity::Error); return tryResult1459 .propagateErr(); } const auto& params = tryResult1459.inspect ();; | ||||
| 18954 | |||||
| 18955 | 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", 18955 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "params.type() != PreprocessParams::T__None" ")"); do { MOZ_CrashSequence(__null, 18955); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18956 | |||||
| 18957 | if (NS_WARN_IF(!PBackgroundIDBRequestParent::SendPreprocess(params))NS_warn_if_impl(!PBackgroundIDBRequestParent::SendPreprocess( params), "!PBackgroundIDBRequestParent::SendPreprocess(params)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 18957 )) { | ||||
| 18958 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18958, idbInternalErrMsg.get()); } while (0); | ||||
| 18959 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 18960 | } | ||||
| 18961 | |||||
| 18962 | return NS_OK; | ||||
| 18963 | } | ||||
| 18964 | |||||
| 18965 | TransactionOpResult NormalTransactionOp::SendSuccessResult() { | ||||
| 18966 | AssertIsOnOwningThread(); | ||||
| 18967 | |||||
| 18968 | if (!IsActorDestroyed()) { | ||||
| 18969 | static const size_t kMaxIDBMsgOverhead = 1024 * 1024 * 10; // 10MB | ||||
| 18970 | const uint32_t maximalSizeFromPref = | ||||
| 18971 | IndexedDatabaseManager::MaxSerializedMsgSize(); | ||||
| 18972 | 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", 18972 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "maximalSizeFromPref > kMaxIDBMsgOverhead" ")"); do { MOZ_CrashSequence(__null, 18972); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 18973 | const size_t kMaxMessageSize = maximalSizeFromPref - kMaxIDBMsgOverhead; | ||||
| 18974 | |||||
| 18975 | RequestResponse response; | ||||
| 18976 | size_t responseSize = kMaxMessageSize; | ||||
| 18977 | GetResponse(response, &responseSize); | ||||
| 18978 | |||||
| 18979 | // TODO: Adjust the calculation of the response size in relevant | ||||
| 18980 | // GetResponse methods to account for the fallback to shared memory during | ||||
| 18981 | // serialization of the primary key and index keys if their size exceeds | ||||
| 18982 | // IPC::kMessageBufferShmemThreshold. This ensures the calculated size | ||||
| 18983 | // accurately reflects the actual IPC message size. | ||||
| 18984 | // See also bug 1945040. | ||||
| 18985 | |||||
| 18986 | if (responseSize >= kMaxMessageSize) { | ||||
| 18987 | nsPrintfCString warning( | ||||
| 18988 | "The serialized value is too large" | ||||
| 18989 | " (size=%zu bytes, max=%zu bytes).", | ||||
| 18990 | responseSize, kMaxMessageSize); | ||||
| 18991 | NS_WARNING(warning.get())NS_DebugBreak(NS_DEBUG_WARNING, warning.get(), nullptr, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 18991); | ||||
| 18992 | // Structured serialization encodings/sizes are explicitly | ||||
| 18993 | // implementation-dependent. It's OK for us to expose the exact size | ||||
| 18994 | // here because IndexedDB serializations cannot include any no-cors data | ||||
| 18995 | // like opaque Responses and because the existence of this threshold is | ||||
| 18996 | // itself already a primitive for determining sizes since there's a | ||||
| 18997 | // boolean indicator of whether we reach the max message size. | ||||
| 18998 | // Additionally, it's useful information for bugs and potentially more | ||||
| 18999 | // actionable for developers encountering the problem. | ||||
| 19000 | return TransactionOpResult(NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, warning); | ||||
| 19001 | } | ||||
| 19002 | |||||
| 19003 | 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", 19003 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "response.type() != RequestResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 19003); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19004 | |||||
| 19005 | if (response.type() == RequestResponse::TTransactionOpResult) { | ||||
| 19006 | 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", 19006 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(response.get_TransactionOpResult().mCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 19006); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19007 | |||||
| 19008 | return response.get_TransactionOpResult(); | ||||
| 19009 | } | ||||
| 19010 | |||||
| 19011 | 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", 19012 ) | ||||
| 19012 | !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", 19012 )) { | ||||
| 19013 | IDB_REPORT_INTERNAL_ERR()do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19013, idbInternalErrMsg.get()); } while (0); | ||||
| 19014 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; | ||||
| 19015 | } | ||||
| 19016 | } | ||||
| 19017 | |||||
| 19018 | #ifdef DEBUG1 | ||||
| 19019 | mResponseSent = true; | ||||
| 19020 | #endif | ||||
| 19021 | |||||
| 19022 | return NS_OK; | ||||
| 19023 | } | ||||
| 19024 | |||||
| 19025 | bool NormalTransactionOp::SendFailureResult( | ||||
| 19026 | const TransactionOpResult& aResult) { | ||||
| 19027 | AssertIsOnOwningThread(); | ||||
| 19028 | 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", 19028 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 19028); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19029 | |||||
| 19030 | bool result = false; | ||||
| 19031 | |||||
| 19032 | if (!IsActorDestroyed()) { | ||||
| 19033 | result = PBackgroundIDBRequestParent::Send__delete__(this, aResult); | ||||
| 19034 | } | ||||
| 19035 | |||||
| 19036 | #ifdef DEBUG1 | ||||
| 19037 | mResponseSent = true; | ||||
| 19038 | #endif | ||||
| 19039 | |||||
| 19040 | return result; | ||||
| 19041 | } | ||||
| 19042 | |||||
| 19043 | void NormalTransactionOp::Cleanup() { | ||||
| 19044 | AssertIsOnOwningThread(); | ||||
| 19045 | 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" , 19045); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent" ")"); do { MOZ_CrashSequence(__null, 19045); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19046 | |||||
| 19047 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 19048 | } | ||||
| 19049 | |||||
| 19050 | void NormalTransactionOp::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 19051 | AssertIsOnOwningThread(); | ||||
| 19052 | |||||
| 19053 | NoteActorDestroyed(); | ||||
| 19054 | |||||
| 19055 | // Assume ActorDestroy can happen at any time, so we can't probe the current | ||||
| 19056 | // state since mInternalState can be modified on any thread (only one thread | ||||
| 19057 | // at a time based on the state machine). | ||||
| 19058 | // However we can use mWaitingForContinue which is only touched on the owning | ||||
| 19059 | // thread. If mWaitingForContinue is true, we can also modify mInternalState | ||||
| 19060 | // since we are guaranteed that there are no pending runnables which would | ||||
| 19061 | // probe mInternalState to decide what code needs to run (there shouldn't be | ||||
| 19062 | // any running runnables on other threads either). | ||||
| 19063 | |||||
| 19064 | if (IsWaitingForContinue()) { | ||||
| 19065 | NoteContinueReceived(); | ||||
| 19066 | } | ||||
| 19067 | |||||
| 19068 | // We don't have to handle the case when mWaitingForContinue is not true since | ||||
| 19069 | // it means that either nothing has been initialized yet, so nothing to | ||||
| 19070 | // cleanup or there are pending runnables that will detect that the actor has | ||||
| 19071 | // been destroyed and cleanup accordingly. | ||||
| 19072 | } | ||||
| 19073 | |||||
| 19074 | mozilla::ipc::IPCResult NormalTransactionOp::RecvContinue( | ||||
| 19075 | const PreprocessResponse& aResponse) { | ||||
| 19076 | AssertIsOnOwningThread(); | ||||
| 19077 | |||||
| 19078 | // mWaitingForContinue is only touched on the owning thread. If it is not | ||||
| 19079 | // set, either we never sent Preprocess (child is misbehaving) or the op is | ||||
| 19080 | // still running on the connection thread. Calling NoteContinueReceived() | ||||
| 19081 | // in either case would race Cleanup() with DoDatabaseWork(). | ||||
| 19082 | if (NS_WARN_IF(!IsWaitingForContinue())NS_warn_if_impl(!IsWaitingForContinue(), "!IsWaitingForContinue()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19082 )) { | ||||
| 19083 | 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" )); | ||||
| 19084 | } | ||||
| 19085 | |||||
| 19086 | switch (aResponse.type()) { | ||||
| 19087 | case PreprocessResponse::Tnsresult: | ||||
| 19088 | SetFailureCode(aResponse.get_nsresult()); | ||||
| 19089 | break; | ||||
| 19090 | |||||
| 19091 | case PreprocessResponse::TObjectStoreGetPreprocessResponse: | ||||
| 19092 | case PreprocessResponse::TObjectStoreGetAllPreprocessResponse: | ||||
| 19093 | break; | ||||
| 19094 | |||||
| 19095 | default: | ||||
| 19096 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19096 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19096); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 19097 | } | ||||
| 19098 | |||||
| 19099 | NoteContinueReceived(); | ||||
| 19100 | |||||
| 19101 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 19102 | } | ||||
| 19103 | |||||
| 19104 | ObjectStoreAddOrPutRequestOp::ObjectStoreAddOrPutRequestOp( | ||||
| 19105 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19106 | RequestParams&& aParams) | ||||
| 19107 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19108 | mParams( | ||||
| 19109 | std::move(aParams.type() == RequestParams::TObjectStoreAddParams | ||||
| 19110 | ? aParams.get_ObjectStoreAddParams().commonParams() | ||||
| 19111 | : aParams.get_ObjectStorePutParams().commonParams())), | ||||
| 19112 | mOriginMetadata(Transaction().GetDatabase().OriginMetadata()), | ||||
| 19113 | mPersistenceType(Transaction().GetDatabase().Type()), | ||||
| 19114 | mOverwrite(aParams.type() == RequestParams::TObjectStorePutParams), | ||||
| 19115 | mObjectStoreMayHaveIndexes(false) { | ||||
| 19116 | 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", 19117 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" ")"); do { MOZ_CrashSequence(__null, 19117); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19117 | 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", 19117 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreAddParams || aParams.type() == RequestParams::TObjectStorePutParams" ")"); do { MOZ_CrashSequence(__null, 19117); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19118 | |||||
| 19119 | mMetadata = | ||||
| 19120 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | ||||
| 19121 | 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" , 19121); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mMetadata" ")"); do { MOZ_CrashSequence(__null, 19121); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19122 | |||||
| 19123 | mObjectStoreMayHaveIndexes = mMetadata->HasLiveIndexes(); | ||||
| 19124 | |||||
| 19125 | mDataOverThreshold = | ||||
| 19126 | snappy::MaxCompressedLength(mParams.cloneInfo().data().data.Size()) > | ||||
| 19127 | IndexedDatabaseManager::DataThreshold(); | ||||
| 19128 | } | ||||
| 19129 | |||||
| 19130 | nsresult ObjectStoreAddOrPutRequestOp::RemoveOldIndexDataValues( | ||||
| 19131 | DatabaseConnection* aConnection) { | ||||
| 19132 | AssertIsOnConnectionThread(); | ||||
| 19133 | 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" , 19133); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19133); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19134 | 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" , 19134); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOverwrite" ")"); do { MOZ_CrashSequence(__null, 19134); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19135 | 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", 19135 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 19135); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19136 | |||||
| 19137 | #ifdef DEBUG1 | ||||
| 19138 | { | ||||
| 19139 | QM_TRY_INSPECT(const bool& hasIndexes,auto tryResult1460 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult1460.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19142, 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" , 19142); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 19142); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1460.inspect(); | ||||
| 19140 | DatabaseOperationBase::ObjectStoreHasIndexes(auto tryResult1460 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult1460.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19142, 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" , 19142); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 19142); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1460.inspect(); | ||||
| 19141 | *aConnection, mParams.objectStoreId()),auto tryResult1460 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult1460.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19142, 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" , 19142); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 19142); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1460.inspect(); | ||||
| 19142 | QM_ASSERT_UNREACHABLE)auto tryResult1460 = (DatabaseOperationBase::ObjectStoreHasIndexes ( *aConnection, mParams.objectStoreId())); if ((__builtin_expect (!!(tryResult1460.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1460.unwrapErr(); mozilla::dom::quota::HandleError ("DatabaseOperationBase::ObjectStoreHasIndexes( *aConnection, mParams.objectStoreId())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19142, 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" , 19142); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be reached." ")"); do { MOZ_CrashSequence(__null, 19142); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); }); } const bool& hasIndexes = tryResult1460.inspect();; | ||||
| 19143 | |||||
| 19144 | 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", 19145 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")"); do { MOZ_CrashSequence(__null, 19145); __attribute__((nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19145 | "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", 19145 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "hasIndexes" ") (" "Don't use this slow method if there are no indexes!" ")"); do { MOZ_CrashSequence(__null, 19145); __attribute__((nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19146 | } | ||||
| 19147 | #endif | ||||
| 19148 | |||||
| 19149 | QM_TRY_INSPECT(auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19150 | const auto& indexValuesStmt,auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19151 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19152 | "SELECT index_data_values "auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19153 | "FROM object_data "auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19154 | "WHERE object_store_id = :"_ns +auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19155 | kStmtParamNameObjectStoreId + " AND key = :"_ns +auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19156 | kStmtParamNameKey + ";"_ns,auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19157 | [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19158 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19159 | kStmtParamNameObjectStoreId, self.mParams.objectStoreId())));auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19160 | |||||
| 19161 | QM_TRY(MOZ_TO_RESULT(auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19162 | self.mResponse.BindToStatement(&stmt, kStmtParamNameKey)));auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19163 | |||||
| 19164 | return Ok{};auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect(); | ||||
| 19165 | }))auto tryResult1463 = (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 tryResult1461 = (ToResult( stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams .objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect (!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))" , tryResult1461.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19159, mozilla::dom::quota::Severity::Error); return tryResult1461 .propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse .BindToStatement(&stmt, kStmtParamNameKey))); static_assert (std::is_empty_v<typename decltype(tryResult1462)::ok_type >); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))" , tryResult1462.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19162, mozilla::dom::quota::Severity::Error); return tryResult1462 .propagateErr(); }}; return Ok{}; })); if ((__builtin_expect( !!(tryResult1463.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 tryResult1461 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1461)::ok_type>); if ((__builtin_expect(!!(tryResult1461.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, self.mParams.objectStoreId()))\", tryResult1461.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19159, mozilla::dom::quota::Severity::Error); return tryResult1461.propagateErr(); }}; {auto tryResult1462 = (ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))); static_assert(std::is_empty_v<typename decltype(tryResult1462)::ok_type>); if ((__builtin_expect(!!(tryResult1462.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(self.mResponse.BindToStatement(&stmt, kStmtParamNameKey))\", tryResult1462.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19162, mozilla::dom::quota::Severity::Error); return tryResult1462.propagateErr(); }}; return Ok{}; })" , tryResult1463.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19165, mozilla::dom::quota::Severity::Error); return tryResult1463 .propagateErr(); } const auto& indexValuesStmt = tryResult1463 .inspect();; | ||||
| 19166 | |||||
| 19167 | if (indexValuesStmt) { | ||||
| 19168 | QM_TRY_INSPECT(const auto& existingIndexValues,auto tryResult1464 = (ReadCompressedIndexDataValues(**indexValuesStmt , 0)); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)" , tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19169, mozilla::dom::quota::Severity::Error); return tryResult1464 .propagateErr(); } const auto& existingIndexValues = tryResult1464 .inspect(); | ||||
| 19169 | ReadCompressedIndexDataValues(**indexValuesStmt, 0))auto tryResult1464 = (ReadCompressedIndexDataValues(**indexValuesStmt , 0)); if ((__builtin_expect(!!(tryResult1464.isErr()), 0))) { mozilla::dom::quota::HandleError("ReadCompressedIndexDataValues(**indexValuesStmt, 0)" , tryResult1464.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19169, mozilla::dom::quota::Severity::Error); return tryResult1464 .propagateErr(); } const auto& existingIndexValues = tryResult1464 .inspect();; | ||||
| 19170 | |||||
| 19171 | QM_TRY(MOZ_TO_RESULT({auto tryResult1465 = (ToResult(DeleteIndexDataTableRows(aConnection , mResponse, existingIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))" , tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19172, mozilla::dom::quota::Severity::Error); return tryResult1465 .propagateErr(); }} | ||||
| 19172 | DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))){auto tryResult1465 = (ToResult(DeleteIndexDataTableRows(aConnection , mResponse, existingIndexValues))); static_assert(std::is_empty_v <typename decltype(tryResult1465)::ok_type>); if ((__builtin_expect (!!(tryResult1465.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(DeleteIndexDataTableRows(aConnection, mResponse, existingIndexValues))" , tryResult1465.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19172, mozilla::dom::quota::Severity::Error); return tryResult1465 .propagateErr(); }}; | ||||
| 19173 | } | ||||
| 19174 | |||||
| 19175 | return NS_OK; | ||||
| 19176 | } | ||||
| 19177 | |||||
| 19178 | bool ObjectStoreAddOrPutRequestOp::Init(TransactionBase& aTransaction) { | ||||
| 19179 | AssertIsOnOwningThread(); | ||||
| 19180 | |||||
| 19181 | const nsTArray<IndexUpdateInfo>& indexUpdateInfos = | ||||
| 19182 | mParams.indexUpdateInfos(); | ||||
| 19183 | |||||
| 19184 | if (!indexUpdateInfos.IsEmpty()) { | ||||
| 19185 | mUniqueIndexTable.emplace(); | ||||
| 19186 | |||||
| 19187 | for (const auto& updateInfo : indexUpdateInfos) { | ||||
| 19188 | auto indexMetadata = mMetadata->mIndexes.Lookup(updateInfo.indexId()); | ||||
| 19189 | 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", 19189 ); AnnotateMozCrashReason("MOZ_CRASH(" "indexMetadata" ")"); do { MOZ_CrashSequence(__null, 19189); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } } while (false ); | ||||
| 19190 | |||||
| 19191 | 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" , 19191); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!(*indexMetadata)->mDeleted" ")"); do { MOZ_CrashSequence(__null, 19191); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19192 | |||||
| 19193 | const IndexOrObjectStoreId& indexId = | ||||
| 19194 | (*indexMetadata)->mCommonMetadata.id(); | ||||
| 19195 | const bool& unique = (*indexMetadata)->mCommonMetadata.unique(); | ||||
| 19196 | |||||
| 19197 | 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" , 19197); AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexId == updateInfo.indexId()" ")"); do { MOZ_CrashSequence(__null, 19197); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19198 | 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", 19199 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)" ")"); do { MOZ_CrashSequence(__null, 19199); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 19199 | !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", 19199 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mUniqueIndexTable.ref().Contains(indexId)" ")"); do { MOZ_CrashSequence(__null, 19199); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19200 | |||||
| 19201 | 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", 19202 ) | ||||
| 19202 | fallible))NS_warn_if_impl(!mUniqueIndexTable.ref().InsertOrUpdate(indexId , unique, fallible), "!mUniqueIndexTable.ref().InsertOrUpdate(indexId, unique, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19202 )) { | ||||
| 19203 | return false; | ||||
| 19204 | } | ||||
| 19205 | } | ||||
| 19206 | } else if (mOverwrite) { | ||||
| 19207 | mUniqueIndexTable.emplace(); | ||||
| 19208 | } | ||||
| 19209 | |||||
| 19210 | if (mUniqueIndexTable.isSome()) { | ||||
| 19211 | mUniqueIndexTable.ref().MarkImmutable(); | ||||
| 19212 | } | ||||
| 19213 | |||||
| 19214 | QM_TRY_UNWRAP(auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19215 | mStoredFileInfos,auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19216 | TransformIntoNewArray(auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19217 | mParams.fileAddInfos(),auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19218 | [](const auto& fileAddInfo) {auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19219 | MOZ_ASSERT(fileAddInfo.type() == StructuredCloneFileBase::eBlob ||auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19220 | fileAddInfo.type() ==auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19221 | StructuredCloneFileBase::eMutableFile);auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19222 | |||||
| 19223 | switch (fileAddInfo.type()) {auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19224 | case StructuredCloneFileBase::eBlob: {auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19225 | PBackgroundIDBDatabaseFileParent* file =auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19226 | fileAddInfo.file().AsParent();auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19227 | MOZ_ASSERT(file);auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19228 | |||||
| 19229 | auto* const fileActor = static_cast<DatabaseFile*>(file);auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19230 | MOZ_ASSERT(fileActor);auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19231 | |||||
| 19232 | return StoredFileInfo::CreateForBlob(auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19233 | fileActor->GetFileInfoPtr(), fileActor);auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19234 | }auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19235 | |||||
| 19236 | default:auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19237 | MOZ_CRASH("Should never get here!");auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19238 | }auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19239 | },auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19240 | fallible),auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap (); | ||||
| 19241 | false)auto tryResult1466 = (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", 19221 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile" ")"); do { MOZ_CrashSequence(__null, 19221); __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" , 19227); AnnotateMozCrashReason("MOZ_ASSERT" "(" "file" ")") ; do { MOZ_CrashSequence(__null, 19227); __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" , 19230); AnnotateMozCrashReason("MOZ_ASSERT" "(" "fileActor" ")"); do { MOZ_CrashSequence(__null, 19230); __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" , 19237); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 19237); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } }, fallible )); if ((__builtin_expect(!!(tryResult1466.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1466.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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19241, 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\", 19221); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileAddInfo.type() == StructuredCloneFileBase::eBlob || fileAddInfo.type() == StructuredCloneFileBase::eMutableFile\" \")\"); do { MOZ_CrashSequence(__null, 19221); __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\", 19227); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"file\" \")\"); do { MOZ_CrashSequence(__null, 19227); __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\", 19230); AnnotateMozCrashReason(\"MOZ_ASSERT\" \"(\" \"fileActor\" \")\"); do { MOZ_CrashSequence(__null, 19230); __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\", 19237); AnnotateMozCrashReason(\"MOZ_CRASH(\" \"Should never get here!\" \")\"); do { MOZ_CrashSequence(__null, 19237); __attribute__((nomerge)) ::abort(); } while (false); } while (false); } }, fallible)" , tryTempError, false); } mStoredFileInfos = tryResult1466.unwrap ();; | ||||
| 19242 | |||||
| 19243 | if (mDataOverThreshold) { | ||||
| 19244 | auto fileInfo = | ||||
| 19245 | aTransaction.GetDatabase().GetFileManager().CreateFileInfo(); | ||||
| 19246 | if (NS_WARN_IF(!fileInfo)NS_warn_if_impl(!fileInfo, "!fileInfo", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19246)) { | ||||
| 19247 | return false; | ||||
| 19248 | } | ||||
| 19249 | |||||
| 19250 | mStoredFileInfos.EmplaceBack(StoredFileInfo::CreateForStructuredClone( | ||||
| 19251 | std::move(fileInfo), | ||||
| 19252 | MakeRefPtr<SCInputStream>(mParams.cloneInfo().data().data))); | ||||
| 19253 | } | ||||
| 19254 | |||||
| 19255 | return true; | ||||
| 19256 | } | ||||
| 19257 | |||||
| 19258 | nsresult ObjectStoreAddOrPutRequestOp::DoDatabaseWork( | ||||
| 19259 | DatabaseConnection* aConnection) { | ||||
| 19260 | 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" , 19260); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19260); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19261 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19262 | 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", 19262 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection->HasStorageConnection()" ")"); do { MOZ_CrashSequence(__null, 19262); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19263 | |||||
| 19264 | AUTO_PROFILER_LABEL("ObjectStoreAddOrPutRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19264( "ObjectStoreAddOrPutRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19265 | |||||
| 19266 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 19267 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1467 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467 .isErr()), 0))) { auto tryTempError = tryResult1467.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19272, 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)); }} | ||||
| 19268 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1467 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467 .isErr()), 0))) { auto tryTempError = tryResult1467.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19272, 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)); }} | ||||
| 19269 | ,{auto tryResult1467 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467 .isErr()), 0))) { auto tryTempError = tryResult1467.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19272, 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)); }} | ||||
| 19270 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1467 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467 .isErr()), 0))) { auto tryTempError = tryResult1467.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19272, 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)); }} | ||||
| 19271 | #endif{auto tryResult1467 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467 .isErr()), 0))) { auto tryTempError = tryResult1467.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19272, 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)); }} | ||||
| 19272 | ){auto tryResult1467 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1467)::ok_type>); if ((__builtin_expect(!!(tryResult1467 .isErr()), 0))) { auto tryTempError = tryResult1467.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19272, 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)); }}; | ||||
| 19273 | |||||
| 19274 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1468 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19276, mozilla::dom::quota::Severity::Error); return tryResult1468 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1468 .inspect(); | ||||
| 19275 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1468 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19276, mozilla::dom::quota::Severity::Error); return tryResult1468 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1468 .inspect(); | ||||
| 19276 | mObjectStoreMayHaveIndexes))auto tryResult1468 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1468.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1468.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19276, mozilla::dom::quota::Severity::Error); return tryResult1468 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1468 .inspect();; | ||||
| 19277 | |||||
| 19278 | // This will be the final key we use. | ||||
| 19279 | Key& key = mResponse; | ||||
| 19280 | key = mParams.key(); | ||||
| 19281 | |||||
| 19282 | const bool keyUnset = key.IsUnset(); | ||||
| 19283 | const IndexOrObjectStoreId osid = mParams.objectStoreId(); | ||||
| 19284 | |||||
| 19285 | // First delete old index_data_values if we're overwriting something and we | ||||
| 19286 | // have indexes. | ||||
| 19287 | if (mOverwrite && !keyUnset && objectStoreHasIndexes) { | ||||
| 19288 | QM_TRY(MOZ_TO_RESULT(RemoveOldIndexDataValues(aConnection))){auto tryResult1469 = (ToResult(RemoveOldIndexDataValues(aConnection ))); static_assert(std::is_empty_v<typename decltype(tryResult1469 )::ok_type>); if ((__builtin_expect(!!(tryResult1469.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(RemoveOldIndexDataValues(aConnection))" , tryResult1469.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19288, mozilla::dom::quota::Severity::Error); return tryResult1469 .propagateErr(); }}; | ||||
| 19289 | } | ||||
| 19290 | |||||
| 19291 | int64_t autoIncrementNum = 0; | ||||
| 19292 | |||||
| 19293 | { | ||||
| 19294 | // The "|| keyUnset" here is mostly a debugging tool. If a key isn't | ||||
| 19295 | // specified we should never have a collision and so it shouldn't matter | ||||
| 19296 | // if we allow overwrite or not. By not allowing overwrite we raise | ||||
| 19297 | // detectable errors rather than corrupting data. | ||||
| 19298 | const auto optReplaceDirective = | ||||
| 19299 | (!mOverwrite || keyUnset) ? ""_ns : "OR REPLACE "_ns; | ||||
| 19300 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect (); | ||||
| 19301 | aConnection->BorrowCachedStatement(auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect (); | ||||
| 19302 | "INSERT "_ns + optReplaceDirective +auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect (); | ||||
| 19303 | "INTO object_data "auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect (); | ||||
| 19304 | "(object_store_id, key, file_ids, data) "auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect (); | ||||
| 19305 | "VALUES (:"_ns +auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect (); | ||||
| 19306 | kStmtParamNameObjectStoreId + ", :"_ns +auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect (); | ||||
| 19307 | kStmtParamNameKey + ", :"_ns + kStmtParamNameFileIds +auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect (); | ||||
| 19308 | ", :"_ns + kStmtParamNameData + ");"_ns))auto tryResult1470 = (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(!!(tryResult1470.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)" , tryResult1470.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19308, mozilla::dom::quota::Severity::Error); return tryResult1470 .propagateErr(); } const auto& stmt = tryResult1470.inspect ();; | ||||
| 19309 | |||||
| 19310 | QM_TRY(MOZ_TO_RESULT({auto tryResult1471 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , osid))); static_assert(std::is_empty_v<typename decltype (tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))" , tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19311, mozilla::dom::quota::Severity::Error); return tryResult1471 .propagateErr(); }} | ||||
| 19311 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))){auto tryResult1471 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , osid))); static_assert(std::is_empty_v<typename decltype (tryResult1471)::ok_type>); if ((__builtin_expect(!!(tryResult1471 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, osid))" , tryResult1471.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19311, mozilla::dom::quota::Severity::Error); return tryResult1471 .propagateErr(); }}; | ||||
| 19312 | |||||
| 19313 | const SerializedStructuredCloneWriteInfo& cloneInfo = mParams.cloneInfo(); | ||||
| 19314 | const JSStructuredCloneData& cloneData = cloneInfo.data().data; | ||||
| 19315 | const size_t cloneDataSize = cloneData.Size(); | ||||
| 19316 | |||||
| 19317 | 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" , 19318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" ") (" "Should have key unless autoIncrement" ")"); do { MOZ_CrashSequence (__null, 19318); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false) | ||||
| 19318 | "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" , 19318); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset || mMetadata->mCommonMetadata.autoIncrement()" ") (" "Should have key unless autoIncrement" ")"); do { MOZ_CrashSequence (__null, 19318); __attribute__((nomerge)) ::abort(); } while ( false); } } while (false); | ||||
| 19319 | |||||
| 19320 | if (mMetadata->mCommonMetadata.autoIncrement()) { | ||||
| 19321 | if (keyUnset) { | ||||
| 19322 | { | ||||
| 19323 | const auto&& lockedAutoIncrementIds = | ||||
| 19324 | mMetadata->mAutoIncrementIds.Lock(); | ||||
| 19325 | |||||
| 19326 | autoIncrementNum = lockedAutoIncrementIds->next; | ||||
| 19327 | } | ||||
| 19328 | |||||
| 19329 | 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", 19329 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "autoIncrementNum > 0" ")"); do { MOZ_CrashSequence(__null, 19329); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19330 | |||||
| 19331 | if (autoIncrementNum > (1LL << 53)) { | ||||
| 19332 | return NS_ERROR_DOM_INDEXEDDB_CONSTRAINT_ERR; | ||||
| 19333 | } | ||||
| 19334 | |||||
| 19335 | QM_TRY(key.SetFromInteger(autoIncrementNum)){auto tryResult1472 = (key.SetFromInteger(autoIncrementNum)); static_assert(std::is_empty_v<typename decltype(tryResult1472 )::ok_type>); if ((__builtin_expect(!!(tryResult1472.isErr ()), 0))) { mozilla::dom::quota::HandleError("key.SetFromInteger(autoIncrementNum)" , tryResult1472.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19335, mozilla::dom::quota::Severity::Error); return tryResult1472 .propagateErr(); }}; | ||||
| 19336 | |||||
| 19337 | // Update index keys if primary key is preserved in child. | ||||
| 19338 | for (auto& updateInfo : mParams.indexUpdateInfos()) { | ||||
| 19339 | QM_TRY({auto tryResult1473 = (updateInfo.value().MaybeUpdateAutoIncrementKey (autoIncrementNum)); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect (!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)" , tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19340, mozilla::dom::quota::Severity::Error); return tryResult1473 .propagateErr(); }} | ||||
| 19340 | updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)){auto tryResult1473 = (updateInfo.value().MaybeUpdateAutoIncrementKey (autoIncrementNum)); static_assert(std::is_empty_v<typename decltype(tryResult1473)::ok_type>); if ((__builtin_expect (!!(tryResult1473.isErr()), 0))) { mozilla::dom::quota::HandleError ("updateInfo.value().MaybeUpdateAutoIncrementKey(autoIncrementNum)" , tryResult1473.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19340, mozilla::dom::quota::Severity::Error); return tryResult1473 .propagateErr(); }}; | ||||
| 19341 | } | ||||
| 19342 | } else if (key.IsFloat()) { | ||||
| 19343 | double numericKey = key.ToFloat(); | ||||
| 19344 | numericKey = std::min(numericKey, double(1LL << 53)); | ||||
| 19345 | numericKey = floor(numericKey); | ||||
| 19346 | |||||
| 19347 | const auto&& lockedAutoIncrementIds = | ||||
| 19348 | mMetadata->mAutoIncrementIds.Lock(); | ||||
| 19349 | if (numericKey >= lockedAutoIncrementIds->next) { | ||||
| 19350 | autoIncrementNum = numericKey; | ||||
| 19351 | } | ||||
| 19352 | } | ||||
| 19353 | |||||
| 19354 | if (keyUnset && mMetadata->mCommonMetadata.keyPath().IsValid()) { | ||||
| 19355 | const SerializedStructuredCloneWriteInfo& cloneInfo = | ||||
| 19356 | mParams.cloneInfo(); | ||||
| 19357 | 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", 19357 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp()" ")"); do { MOZ_CrashSequence(__null, 19357); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19358 | 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" , 19358); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneDataSize > sizeof(uint64_t)" ")"); do { MOZ_CrashSequence(__null, 19358); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19359 | 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", 19360 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 19360); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19360 | (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", 19360 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "cloneInfo.offsetToKeyProp() <= (cloneDataSize - sizeof(uint64_t))" ")"); do { MOZ_CrashSequence(__null, 19360); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19361 | |||||
| 19362 | // Special case where someone put an object into an autoIncrement'ing | ||||
| 19363 | // objectStore with no key in its keyPath set. We needed to figure out | ||||
| 19364 | // which row id we would get above before we could set that properly. | ||||
| 19365 | uint64_t keyPropValue = | ||||
| 19366 | ReinterpretDoubleAsUInt64(static_cast<double>(autoIncrementNum)); | ||||
| 19367 | |||||
| 19368 | static const size_t keyPropSize = sizeof(uint64_t); | ||||
| 19369 | |||||
| 19370 | char keyPropBuffer[keyPropSize]; | ||||
| 19371 | LittleEndian::writeUint64(keyPropBuffer, keyPropValue); | ||||
| 19372 | |||||
| 19373 | auto iter = cloneData.Start(); | ||||
| 19374 | 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", 19374 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.Advance(iter, cloneInfo.offsetToKeyProp())" ")"); do { MOZ_CrashSequence(__null, 19374); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 19375 | 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", 19376 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" ")"); do { MOZ_CrashSequence(__null, 19376); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 19376 | 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", 19376 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.UpdateBytes(iter, keyPropBuffer, keyPropSize)" ")"); do { MOZ_CrashSequence(__null, 19376); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 19377 | } | ||||
| 19378 | } | ||||
| 19379 | |||||
| 19380 | key.BindToStatement(&*stmt, kStmtParamNameKey); | ||||
| 19381 | |||||
| 19382 | if (mDataOverThreshold) { | ||||
| 19383 | // The data we store in the SQLite database is a (signed) 64-bit integer. | ||||
| 19384 | // The flags are left-shifted 32 bits so the max value is 0xFFFFFFFF. | ||||
| 19385 | // The file_ids index occupies the lower 32 bits and its max is | ||||
| 19386 | // 0xFFFFFFFF. | ||||
| 19387 | static const uint32_t kCompressedFlag = (1 << 0); | ||||
| 19388 | |||||
| 19389 | uint32_t flags = 0; | ||||
| 19390 | flags |= kCompressedFlag; | ||||
| 19391 | |||||
| 19392 | const uint32_t index = mStoredFileInfos.Length() - 1; | ||||
| 19393 | |||||
| 19394 | const int64_t data = (uint64_t(flags) << 32) | index; | ||||
| 19395 | |||||
| 19396 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameData, data))){auto tryResult1474 = (ToResult(stmt->BindInt64ByName(kStmtParamNameData , data))); static_assert(std::is_empty_v<typename decltype (tryResult1474)::ok_type>); if ((__builtin_expect(!!(tryResult1474 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindInt64ByName(kStmtParamNameData, data))" , tryResult1474.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19396, mozilla::dom::quota::Severity::Error); return tryResult1474 .propagateErr(); }}; | ||||
| 19397 | } else { | ||||
| 19398 | AutoTArray<char, 4096> flatCloneData; // 4096 from JSStructuredCloneData | ||||
| 19399 | QM_TRY(OkIf(flatCloneData.SetLength(cloneDataSize, fallible)),{auto tryResult1475 = (OkIf(flatCloneData.SetLength(cloneDataSize , fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1475 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19400, 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)); }} | ||||
| 19400 | Err(NS_ERROR_OUT_OF_MEMORY)){auto tryResult1475 = (OkIf(flatCloneData.SetLength(cloneDataSize , fallible))); static_assert(std::is_empty_v<typename decltype (tryResult1475)::ok_type>); if ((__builtin_expect(!!(tryResult1475 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1475 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(flatCloneData.SetLength(cloneDataSize, fallible))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19400, 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)); }}; | ||||
| 19401 | |||||
| 19402 | { | ||||
| 19403 | auto iter = cloneData.Start(); | ||||
| 19404 | 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", 19405 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" ")"); do { MOZ_CrashSequence(__null, 19405); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 19405 | 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", 19405 ); AnnotateMozCrashReason("MOZ_CRASH(" "cloneData.ReadBytes(iter, flatCloneData.Elements(), cloneDataSize)" ")"); do { MOZ_CrashSequence(__null, 19405); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 19406 | } | ||||
| 19407 | |||||
| 19408 | // Compress the bytes before adding into the database. | ||||
| 19409 | const char* const uncompressed = flatCloneData.Elements(); | ||||
| 19410 | const size_t uncompressedLength = cloneDataSize; | ||||
| 19411 | |||||
| 19412 | size_t compressedLength = snappy::MaxCompressedLength(uncompressedLength); | ||||
| 19413 | |||||
| 19414 | UniqueFreePtr<char> compressed( | ||||
| 19415 | static_cast<char*>(malloc(compressedLength))); | ||||
| 19416 | if (NS_WARN_IF(!compressed)NS_warn_if_impl(!compressed, "!compressed", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19416)) { | ||||
| 19417 | return NS_ERROR_OUT_OF_MEMORY; | ||||
| 19418 | } | ||||
| 19419 | |||||
| 19420 | snappy::RawCompress(uncompressed, uncompressedLength, compressed.get(), | ||||
| 19421 | &compressedLength); | ||||
| 19422 | |||||
| 19423 | uint8_t* const dataBuffer = | ||||
| 19424 | reinterpret_cast<uint8_t*>(compressed.release()); | ||||
| 19425 | const size_t dataBufferLength = compressedLength; | ||||
| 19426 | |||||
| 19427 | QM_TRY(MOZ_TO_RESULT(stmt->BindAdoptedBlobByName({auto tryResult1476 = (ToResult(stmt->BindAdoptedBlobByName ( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert (std::is_empty_v<typename decltype(tryResult1476)::ok_type >); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))" , tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19428, mozilla::dom::quota::Severity::Error); return tryResult1476 .propagateErr(); }} | ||||
| 19428 | kStmtParamNameData, dataBuffer, dataBufferLength))){auto tryResult1476 = (ToResult(stmt->BindAdoptedBlobByName ( kStmtParamNameData, dataBuffer, dataBufferLength))); static_assert (std::is_empty_v<typename decltype(tryResult1476)::ok_type >); if ((__builtin_expect(!!(tryResult1476.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindAdoptedBlobByName( kStmtParamNameData, dataBuffer, dataBufferLength))" , tryResult1476.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19428, mozilla::dom::quota::Severity::Error); return tryResult1476 .propagateErr(); }}; | ||||
| 19429 | } | ||||
| 19430 | |||||
| 19431 | if (!mStoredFileInfos.IsEmpty()) { | ||||
| 19432 | // Moved outside the loop to allow it to be cached when demanded by the | ||||
| 19433 | // first write. (We may have mStoredFileInfos without any required | ||||
| 19434 | // writes.) | ||||
| 19435 | Maybe<FileHelper> fileHelper; | ||||
| 19436 | nsAutoString fileIds; | ||||
| 19437 | |||||
| 19438 | for (auto& storedFileInfo : mStoredFileInfos) { | ||||
| 19439 | 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", 19439 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "storedFileInfo.IsValid()" ")"); do { MOZ_CrashSequence(__null, 19439); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19440 | |||||
| 19441 | QM_TRY_INSPECT(const auto& inputStream,auto tryResult1477 = (storedFileInfo.GetInputStream()); if (( __builtin_expect(!!(tryResult1477.isErr()), 0))) { mozilla::dom ::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1477 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19442, mozilla::dom::quota::Severity::Error); return tryResult1477 .propagateErr(); } const auto& inputStream = tryResult1477 .inspect(); | ||||
| 19442 | storedFileInfo.GetInputStream())auto tryResult1477 = (storedFileInfo.GetInputStream()); if (( __builtin_expect(!!(tryResult1477.isErr()), 0))) { mozilla::dom ::quota::HandleError("storedFileInfo.GetInputStream()", tryResult1477 .inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19442, mozilla::dom::quota::Severity::Error); return tryResult1477 .propagateErr(); } const auto& inputStream = tryResult1477 .inspect();; | ||||
| 19443 | |||||
| 19444 | if (inputStream) { | ||||
| 19445 | if (fileHelper.isNothing()) { | ||||
| 19446 | fileHelper.emplace(Transaction().GetDatabase().GetFileManagerPtr()); | ||||
| 19447 | QM_TRY(MOZ_TO_RESULT(fileHelper->Init()),{auto tryResult1478 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult1478)::ok_type >); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19449 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19449, 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); }} | ||||
| 19448 | NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1478 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult1478)::ok_type >); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19449 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19449, 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); }} | ||||
| 19449 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1478 = (ToResult(fileHelper->Init())); static_assert (std::is_empty_v<typename decltype(tryResult1478)::ok_type >); if ((__builtin_expect(!!(tryResult1478.isErr()), 0))) { auto tryTempError = tryResult1478.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(fileHelper->Init())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19449 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19449, 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); }}; | ||||
| 19450 | } | ||||
| 19451 | |||||
| 19452 | const DatabaseFileInfo& fileInfo = storedFileInfo.GetFileInfo(); | ||||
| 19453 | const DatabaseFileManager& fileManager = fileInfo.Manager(); | ||||
| 19454 | |||||
| 19455 | const auto file = fileHelper->GetFile(fileInfo); | ||||
| 19456 | QM_TRY(OkIf(file), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1479 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { auto tryTempError = tryResult1479 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19457 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19457, 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); }} | ||||
| 19457 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1479 = (OkIf(file)); static_assert(std::is_empty_v <typename decltype(tryResult1479)::ok_type>); if ((__builtin_expect (!!(tryResult1479.isErr()), 0))) { auto tryTempError = tryResult1479 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(file)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19457 , mozilla::dom::quota::Severity::Error); [](const auto&) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s", __func__ ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19457, 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); }}; | ||||
| 19458 | |||||
| 19459 | const auto journalFile = fileHelper->GetJournalFile(fileInfo); | ||||
| 19460 | QM_TRY(OkIf(journalFile), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1480 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError = tryResult1480.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19461, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19461, 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); }} | ||||
| 19461 | IDB_REPORT_INTERNAL_ERR_LAMBDA){auto tryResult1480 = (OkIf(journalFile)); static_assert(std:: is_empty_v<typename decltype(tryResult1480)::ok_type>); if ((__builtin_expect(!!(tryResult1480.isErr()), 0))) { auto tryTempError = tryResult1480.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(journalFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19461, mozilla::dom::quota::Severity::Error); [](const auto &) { do { nsPrintfCString idbInternalErrMsg("UnknownErr in %s" , __func__); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19461, 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); }}; | ||||
| 19462 | |||||
| 19463 | nsCString fileKeyId; | ||||
| 19464 | fileKeyId.AppendInt(fileInfo.Id()); | ||||
| 19465 | |||||
| 19466 | const auto maybeKey = | ||||
| 19467 | fileManager.IsInPrivateBrowsingMode() | ||||
| 19468 | ? fileManager.MutableCipherKeyManagerRef().Get(fileKeyId) | ||||
| 19469 | : Nothing(); | ||||
| 19470 | |||||
| 19471 | QM_TRY(MOZ_TO_RESULT(fileHelper->CreateFileFromStream({auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19472 | *file, *journalFile, *inputStream,{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19473 | storedFileInfo.ShouldCompress(), maybeKey)){auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19474 | .mapErr([](const nsresult rv) {{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19475 | if (NS_ERROR_GET_MODULE(rv) !={auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19476 | NS_ERROR_MODULE_DOM_INDEXEDDB) {{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19477 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19478 | return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR;{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19479 | }{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19480 | return rv;{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19481 | }),{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19482 | QM_PROPAGATE,{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19483 | ([&fileManager, &file = *file,{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19484 | &journalFile = *journalFile](const auto) {{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19485 | // Try to remove the file if the copy failed.{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19486 | QM_TRY(MOZ_TO_RESULT({auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19487 | fileManager.SyncDeleteFile(file, journalFile)),{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19488 | QM_VOID);{auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }} | ||||
| 19489 | })){auto tryResult1482 = (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" , 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR ; } return rv; })); static_assert(std::is_empty_v<typename decltype(tryResult1482)::ok_type>); if ((__builtin_expect (!!(tryResult1482.isErr()), 0))) { auto tryTempError = tryResult1482 .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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19489, mozilla::dom::quota::Severity::Error); ([&fileManager , &file = *file, &journalFile = *journalFile](const auto ) { {auto tryResult1481 = (ToResult(fileManager.SyncDeleteFile (file, journalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1481)::ok_type>); if ((__builtin_expect (!!(tryResult1481.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1481.unwrapErr(); mozilla::dom::quota::HandleError ("ToResult(fileManager.SyncDeleteFile(file, journalFile))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19488 , 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\", 19477, idbInternalErrMsg.get()); } while (0); return NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR; } return rv; })" , tryTempError, Err(tryTempError)); }}; | ||||
| 19490 | |||||
| 19491 | storedFileInfo.NotifyWriteSucceeded(); | ||||
| 19492 | } | ||||
| 19493 | |||||
| 19494 | if (!fileIds.IsEmpty()) { | ||||
| 19495 | fileIds.Append(' '); | ||||
| 19496 | } | ||||
| 19497 | storedFileInfo.Serialize(fileIds); | ||||
| 19498 | } | ||||
| 19499 | |||||
| 19500 | QM_TRY(MOZ_TO_RESULT({auto tryResult1483 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds , fileIds))); static_assert(std::is_empty_v<typename decltype (tryResult1483)::ok_type>); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))" , tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19501, mozilla::dom::quota::Severity::Error); return tryResult1483 .propagateErr(); }} | ||||
| 19501 | stmt->BindStringByName(kStmtParamNameFileIds, fileIds))){auto tryResult1483 = (ToResult(stmt->BindStringByName(kStmtParamNameFileIds , fileIds))); static_assert(std::is_empty_v<typename decltype (tryResult1483)::ok_type>); if ((__builtin_expect(!!(tryResult1483 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindStringByName(kStmtParamNameFileIds, fileIds))" , tryResult1483.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19501, mozilla::dom::quota::Severity::Error); return tryResult1483 .propagateErr(); }}; | ||||
| 19502 | } else { | ||||
| 19503 | QM_TRY(MOZ_TO_RESULT(stmt->BindNullByName(kStmtParamNameFileIds))){auto tryResult1484 = (ToResult(stmt->BindNullByName(kStmtParamNameFileIds ))); static_assert(std::is_empty_v<typename decltype(tryResult1484 )::ok_type>); if ((__builtin_expect(!!(tryResult1484.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt->BindNullByName(kStmtParamNameFileIds))" , tryResult1484.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19503, mozilla::dom::quota::Severity::Error); return tryResult1484 .propagateErr(); }}; | ||||
| 19504 | } | ||||
| 19505 | |||||
| 19506 | QM_TRY(MOZ_TO_RESULT(stmt->Execute()), QM_PROPAGATE,{auto tryResult1485 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1485)::ok_type >); if ((__builtin_expect(!!(tryResult1485.isErr()), 0))) { auto tryTempError = tryResult1485.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19511 , 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", 19509 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19509); __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 )); }} | ||||
| 19507 | [keyUnset = DebugOnly{keyUnset}](const nsresult rv) {{auto tryResult1485 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1485)::ok_type >); if ((__builtin_expect(!!(tryResult1485.isErr()), 0))) { auto tryTempError = tryResult1485.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19511 , 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", 19509 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19509); __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 )); }} | ||||
| 19508 | if (rv == NS_ERROR_STORAGE_CONSTRAINT) {{auto tryResult1485 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1485)::ok_type >); if ((__builtin_expect(!!(tryResult1485.isErr()), 0))) { auto tryTempError = tryResult1485.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19511 , 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", 19509 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19509); __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 )); }} | ||||
| 19509 | MOZ_ASSERT(!keyUnset, "Generated key had a collision!");{auto tryResult1485 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1485)::ok_type >); if ((__builtin_expect(!!(tryResult1485.isErr()), 0))) { auto tryTempError = tryResult1485.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19511 , 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", 19509 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19509); __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 )); }} | ||||
| 19510 | }{auto tryResult1485 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1485)::ok_type >); if ((__builtin_expect(!!(tryResult1485.isErr()), 0))) { auto tryTempError = tryResult1485.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19511 , 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", 19509 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19509); __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 )); }} | ||||
| 19511 | }){auto tryResult1485 = (ToResult(stmt->Execute())); static_assert (std::is_empty_v<typename decltype(tryResult1485)::ok_type >); if ((__builtin_expect(!!(tryResult1485.isErr()), 0))) { auto tryTempError = tryResult1485.unwrapErr(); mozilla::dom:: quota::HandleError("ToResult(stmt->Execute())", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19511 , 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", 19509 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!keyUnset" ") (" "Generated key had a collision!" ")"); do { MOZ_CrashSequence(__null, 19509); __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 )); }}; | ||||
| 19512 | } | ||||
| 19513 | |||||
| 19514 | // Update our indexes if needed. | ||||
| 19515 | if (!mParams.indexUpdateInfos().IsEmpty()) { | ||||
| 19516 | 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", 19516 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mUniqueIndexTable.isSome()" ")"); do { MOZ_CrashSequence(__null, 19516); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19517 | |||||
| 19518 | // Write the index_data_values column. | ||||
| 19519 | QM_TRY_INSPECT(const auto& indexValues,auto tryResult1486 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult1486.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult1486.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19521, mozilla::dom::quota::Severity::Error); return tryResult1486 .propagateErr(); } const auto& indexValues = tryResult1486 .inspect(); | ||||
| 19520 | IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(),auto tryResult1486 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult1486.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult1486.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19521, mozilla::dom::quota::Severity::Error); return tryResult1486 .propagateErr(); } const auto& indexValues = tryResult1486 .inspect(); | ||||
| 19521 | mUniqueIndexTable.ref()))auto tryResult1486 = (IndexDataValuesFromUpdateInfos(mParams. indexUpdateInfos(), mUniqueIndexTable.ref())); if ((__builtin_expect (!!(tryResult1486.isErr()), 0))) { mozilla::dom::quota::HandleError ("IndexDataValuesFromUpdateInfos(mParams.indexUpdateInfos(), mUniqueIndexTable.ref())" , tryResult1486.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19521, mozilla::dom::quota::Severity::Error); return tryResult1486 .propagateErr(); } const auto& indexValues = tryResult1486 .inspect();; | ||||
| 19522 | |||||
| 19523 | QM_TRY({auto tryResult1487 = (ToResult(UpdateIndexValues(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect (!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19524, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }} | ||||
| 19524 | MOZ_TO_RESULT(UpdateIndexValues(aConnection, osid, key, indexValues))){auto tryResult1487 = (ToResult(UpdateIndexValues(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1487)::ok_type>); if ((__builtin_expect (!!(tryResult1487.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(UpdateIndexValues(aConnection, osid, key, indexValues))" , tryResult1487.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19524, mozilla::dom::quota::Severity::Error); return tryResult1487 .propagateErr(); }}; | ||||
| 19525 | |||||
| 19526 | QM_TRY(MOZ_TO_RESULT({auto tryResult1488 = (ToResult(InsertIndexTableRows(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19527, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }} | ||||
| 19527 | InsertIndexTableRows(aConnection, osid, key, indexValues))){auto tryResult1488 = (ToResult(InsertIndexTableRows(aConnection , osid, key, indexValues))); static_assert(std::is_empty_v< typename decltype(tryResult1488)::ok_type>); if ((__builtin_expect (!!(tryResult1488.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(InsertIndexTableRows(aConnection, osid, key, indexValues))" , tryResult1488.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19527, mozilla::dom::quota::Severity::Error); return tryResult1488 .propagateErr(); }}; | ||||
| 19528 | } | ||||
| 19529 | |||||
| 19530 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1489 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1489)::ok_type >); if ((__builtin_expect(!!(tryResult1489.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1489.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19530, mozilla::dom::quota::Severity::Error); return tryResult1489 .propagateErr(); }}; | ||||
| 19531 | |||||
| 19532 | if (autoIncrementNum) { | ||||
| 19533 | { | ||||
| 19534 | auto&& lockedAutoIncrementIds = mMetadata->mAutoIncrementIds.Lock(); | ||||
| 19535 | |||||
| 19536 | lockedAutoIncrementIds->next = autoIncrementNum + 1; | ||||
| 19537 | } | ||||
| 19538 | |||||
| 19539 | Transaction().NoteModifiedAutoIncrementObjectStore(mMetadata); | ||||
| 19540 | } | ||||
| 19541 | |||||
| 19542 | return NS_OK; | ||||
| 19543 | } | ||||
| 19544 | |||||
| 19545 | void ObjectStoreAddOrPutRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 19546 | size_t* aResponseSize) { | ||||
| 19547 | AssertIsOnOwningThread(); | ||||
| 19548 | |||||
| 19549 | if (mOverwrite) { | ||||
| 19550 | aResponse = ObjectStorePutResponse(mResponse); | ||||
| 19551 | *aResponseSize = mResponse.GetBuffer().Length(); | ||||
| 19552 | } else { | ||||
| 19553 | aResponse = ObjectStoreAddResponse(mResponse); | ||||
| 19554 | *aResponseSize = mResponse.GetBuffer().Length(); | ||||
| 19555 | } | ||||
| 19556 | } | ||||
| 19557 | |||||
| 19558 | void ObjectStoreAddOrPutRequestOp::Cleanup() { | ||||
| 19559 | AssertIsOnOwningThread(); | ||||
| 19560 | |||||
| 19561 | mStoredFileInfos.Clear(); | ||||
| 19562 | |||||
| 19563 | NormalTransactionOp::Cleanup(); | ||||
| 19564 | } | ||||
| 19565 | |||||
| 19566 | 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" , 19566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 19566 ); __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" , 19566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 19566); __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" , 19566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 19566 ); __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" , 19566); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"ObjectStoreAddOrPutRequestOp::SCInputStream\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 19566); __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", 19566 ); 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; } | ||||
| 19567 | |||||
| 19568 | NS_IMETHODIMPnsresult | ||||
| 19569 | ObjectStoreAddOrPutRequestOp::SCInputStream::Close() { return NS_OK; } | ||||
| 19570 | |||||
| 19571 | NS_IMETHODIMPnsresult | ||||
| 19572 | ObjectStoreAddOrPutRequestOp::SCInputStream::Available(uint64_t* _retval) { | ||||
| 19573 | return NS_ERROR_NOT_IMPLEMENTED; | ||||
| 19574 | } | ||||
| 19575 | |||||
| 19576 | NS_IMETHODIMPnsresult | ||||
| 19577 | ObjectStoreAddOrPutRequestOp::SCInputStream::StreamStatus() { return NS_OK; } | ||||
| 19578 | |||||
| 19579 | NS_IMETHODIMPnsresult | ||||
| 19580 | ObjectStoreAddOrPutRequestOp::SCInputStream::Read(char* aBuf, uint32_t aCount, | ||||
| 19581 | uint32_t* _retval) { | ||||
| 19582 | return ReadSegments(NS_CopySegmentToBuffer, aBuf, aCount, _retval); | ||||
| 19583 | } | ||||
| 19584 | |||||
| 19585 | NS_IMETHODIMPnsresult | ||||
| 19586 | ObjectStoreAddOrPutRequestOp::SCInputStream::ReadSegments( | ||||
| 19587 | nsWriteSegmentFun aWriter, void* aClosure, uint32_t aCount, | ||||
| 19588 | uint32_t* _retval) { | ||||
| 19589 | *_retval = 0; | ||||
| 19590 | |||||
| 19591 | while (aCount) { | ||||
| 19592 | uint32_t count = std::min(uint32_t(mIter.RemainingInSegment()), aCount); | ||||
| 19593 | if (!count) { | ||||
| 19594 | // We've run out of data in the last segment. | ||||
| 19595 | break; | ||||
| 19596 | } | ||||
| 19597 | |||||
| 19598 | uint32_t written; | ||||
| 19599 | nsresult rv = | ||||
| 19600 | aWriter(this, aClosure, mIter.Data(), *_retval, count, &written); | ||||
| 19601 | 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" , 19601)) { | ||||
| 19602 | // InputStreams do not propagate errors to caller. | ||||
| 19603 | return NS_OK; | ||||
| 19604 | } | ||||
| 19605 | |||||
| 19606 | // Writer should write what we asked it to write. | ||||
| 19607 | 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", 19607 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "written == count" ")"); do { MOZ_CrashSequence(__null, 19607); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19608 | |||||
| 19609 | *_retval += count; | ||||
| 19610 | aCount -= count; | ||||
| 19611 | |||||
| 19612 | 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", 19612 )) { | ||||
| 19613 | // InputStreams do not propagate errors to caller. | ||||
| 19614 | return NS_OK; | ||||
| 19615 | } | ||||
| 19616 | } | ||||
| 19617 | |||||
| 19618 | return NS_OK; | ||||
| 19619 | } | ||||
| 19620 | |||||
| 19621 | NS_IMETHODIMPnsresult | ||||
| 19622 | ObjectStoreAddOrPutRequestOp::SCInputStream::IsNonBlocking(bool* _retval) { | ||||
| 19623 | *_retval = false; | ||||
| 19624 | return NS_OK; | ||||
| 19625 | } | ||||
| 19626 | |||||
| 19627 | ObjectStoreGetRequestOp::ObjectStoreGetRequestOp( | ||||
| 19628 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19629 | const RequestParams& aParams, bool aGetAll) | ||||
| 19630 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19631 | mObjectStoreId(aGetAll | ||||
| 19632 | ? aParams.get_ObjectStoreGetAllParams().objectStoreId() | ||||
| 19633 | : aParams.get_ObjectStoreGetParams().objectStoreId()), | ||||
| 19634 | mDatabase(Transaction().GetDatabasePtr()), | ||||
| 19635 | mOptionalKeyRange( | ||||
| 19636 | aGetAll ? aParams.get_ObjectStoreGetAllParams() | ||||
| 19637 | .options() | ||||
| 19638 | .optionalKeyRange() | ||||
| 19639 | : Some(aParams.get_ObjectStoreGetParams().keyRange())), | ||||
| 19640 | mBackgroundParent(Transaction().GetBackgroundParent()), | ||||
| 19641 | mPreprocessInfoCount(0), | ||||
| 19642 | mLimit(aGetAll ? aParams.get_ObjectStoreGetAllParams().options().limit() | ||||
| 19643 | : 1), | ||||
| 19644 | mDirection( | ||||
| 19645 | aGetAll ? aParams.get_ObjectStoreGetAllParams().options().direction() | ||||
| 19646 | : IDBCursorDirection::Next), | ||||
| 19647 | mGetAll(aGetAll) { | ||||
| 19648 | 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", 19649 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" ")"); do { MOZ_CrashSequence(__null, 19649); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19649 | 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", 19649 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetParams || aParams.type() == RequestParams::TObjectStoreGetAllParams" ")"); do { MOZ_CrashSequence(__null, 19649); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19650 | 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", 19650 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 19650); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 19651 | 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" , 19651); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 19651); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19652 | 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", 19652 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 19652); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19653 | 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", 19653 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 19653); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19654 | } | ||||
| 19655 | |||||
| 19656 | template <typename T> | ||||
| 19657 | Result<T, nsresult> ConvertResponse(const SafeRefPtr<Database>& aDatabase, | ||||
| 19658 | StructuredCloneReadInfoParent&& aInfo) { | ||||
| 19659 | static_assert(std::is_same_v<T, SerializedStructuredCloneReadInfo> || | ||||
| 19660 | std::is_same_v<T, PreprocessInfo>); | ||||
| 19661 | |||||
| 19662 | T result; | ||||
| 19663 | |||||
| 19664 | if constexpr (std::is_same_v<T, SerializedStructuredCloneReadInfo>) { | ||||
| 19665 | result.data().data = aInfo.ReleaseData(); | ||||
| 19666 | result.hasPreprocessInfo() = aInfo.HasPreprocessInfo(); | ||||
| 19667 | } | ||||
| 19668 | |||||
| 19669 | QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1490 = (SerializeStructuredCloneFiles( aDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19671, mozilla::dom::quota::Severity::Error); return tryResult1490 .propagateErr(); } result.files() = tryResult1490.unwrap(); | ||||
| 19670 | aDatabase, aInfo.Files(),auto tryResult1490 = (SerializeStructuredCloneFiles( aDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19671, mozilla::dom::quota::Severity::Error); return tryResult1490 .propagateErr(); } result.files() = tryResult1490.unwrap(); | ||||
| 19671 | std::is_same_v<T, PreprocessInfo>))auto tryResult1490 = (SerializeStructuredCloneFiles( aDatabase , aInfo.Files(), std::is_same_v<T, PreprocessInfo>)); if ((__builtin_expect(!!(tryResult1490.isErr()), 0))) { mozilla ::dom::quota::HandleError("SerializeStructuredCloneFiles( aDatabase, aInfo.Files(), std::is_same_v<T, PreprocessInfo>)" , tryResult1490.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19671, mozilla::dom::quota::Severity::Error); return tryResult1490 .propagateErr(); } result.files() = tryResult1490.unwrap();; | ||||
| 19672 | |||||
| 19673 | return result; | ||||
| 19674 | } | ||||
| 19675 | |||||
| 19676 | nsresult ObjectStoreGetRequestOp::DoDatabaseWork( | ||||
| 19677 | DatabaseConnection* aConnection) { | ||||
| 19678 | 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" , 19678); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19678); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19679 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19680 | 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", 19680 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 19680); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19681 | 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" , 19681); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { MOZ_CrashSequence(__null, 19681); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19682 | 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", 19682 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirection == IDBCursorDirection::Next" ")"); do { MOZ_CrashSequence(__null, 19682); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19683 | |||||
| 19684 | AUTO_PROFILER_LABEL("ObjectStoreGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19684( "ObjectStoreGetRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19685 | |||||
| 19686 | const nsCString query = | ||||
| 19687 | "SELECT file_ids, data " | ||||
| 19688 | "FROM object_data " | ||||
| 19689 | "WHERE object_store_id = :"_ns + | ||||
| 19690 | kStmtParamNameObjectStoreId + | ||||
| 19691 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) + | ||||
| 19692 | MakeDirectionClause(mDirection) + | ||||
| 19693 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 19694 | |||||
| 19695 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1491 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult1491.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult1491.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19695, mozilla::dom::quota::Severity::Error); return tryResult1491 .propagateErr(); } const auto& stmt = tryResult1491.inspect ();; | ||||
| 19696 | |||||
| 19697 | QM_TRY(MOZ_TO_RESULT({auto tryResult1492 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); 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, mObjectStoreId))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19698, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }} | ||||
| 19698 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1492 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); 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, mObjectStoreId))" , tryResult1492.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19698, mozilla::dom::quota::Severity::Error); return tryResult1492 .propagateErr(); }}; | ||||
| 19699 | |||||
| 19700 | if (mOptionalKeyRange.isSome()) { | ||||
| 19701 | QM_TRY(MOZ_TO_RESULT({auto tryResult1493 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19702, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }} | ||||
| 19702 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1493 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1493)::ok_type>); if ((__builtin_expect (!!(tryResult1493.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1493.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19702, mozilla::dom::quota::Severity::Error); return tryResult1493 .propagateErr(); }}; | ||||
| 19703 | } | ||||
| 19704 | |||||
| 19705 | QM_TRY(CollectWhileHasResult({auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19706 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19707 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19708 | GetStructuredCloneReadInfoFromStatement({auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19709 | &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19710 | |||||
| 19711 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19712 | mPreprocessInfoCount++;{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19713 | }{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19714 | |||||
| 19715 | QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19716 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19717 | |||||
| 19718 | return Ok{};{auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }} | ||||
| 19719 | })){auto tryResult1496 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1494.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19709, mozilla::dom::quota::Severity::Error); return tryResult1494 .propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } { auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std ::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect (!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19716, 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(tryResult1496 )::ok_type>); if ((__builtin_expect(!!(tryResult1496.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1494 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1494.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1494.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19709, mozilla::dom::quota::Severity::Error); return tryResult1494.propagateErr(); } auto cloneInfo = tryResult1494.unwrap();; if (cloneInfo.HasPreprocessInfo()) { mPreprocessInfoCount++; } {auto tryResult1495 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1495)::ok_type>); if ((__builtin_expect(!!(tryResult1495.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1495.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19716, 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{}; })" , tryResult1496.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19719, mozilla::dom::quota::Severity::Error); return tryResult1496 .propagateErr(); }}; | ||||
| 19720 | |||||
| 19721 | 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", 19721 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 19721); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19722 | |||||
| 19723 | return NS_OK; | ||||
| 19724 | } | ||||
| 19725 | |||||
| 19726 | bool ObjectStoreGetRequestOp::HasPreprocessInfo() { | ||||
| 19727 | return mPreprocessInfoCount > 0; | ||||
| 19728 | } | ||||
| 19729 | |||||
| 19730 | Result<PreprocessParams, nsresult> | ||||
| 19731 | ObjectStoreGetRequestOp::GetPreprocessParams() { | ||||
| 19732 | AssertIsOnOwningThread(); | ||||
| 19733 | 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", 19733 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponse.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 19733); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19734 | |||||
| 19735 | if (mGetAll) { | ||||
| 19736 | auto params = ObjectStoreGetAllPreprocessParams(); | ||||
| 19737 | |||||
| 19738 | auto& preprocessInfos = params.preprocessInfos(); | ||||
| 19739 | if (NS_WARN_IF(NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount , fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19740 ) | ||||
| 19740 | !preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible))NS_warn_if_impl(!preprocessInfos.SetCapacity(mPreprocessInfoCount , fallible), "!preprocessInfos.SetCapacity(mPreprocessInfoCount, fallible)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19740 )) { | ||||
| 19741 | return Err(NS_ERROR_OUT_OF_MEMORY); | ||||
| 19742 | } | ||||
| 19743 | |||||
| 19744 | QM_TRY(TransformIfAbortOnErr({auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }} | ||||
| 19745 | std::make_move_iterator(mResponse.begin()),{auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }} | ||||
| 19746 | std::make_move_iterator(mResponse.end()),{auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }} | ||||
| 19747 | MakeBackInserter(preprocessInfos),{auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }} | ||||
| 19748 | [](const auto& info) { return info.HasPreprocessInfo(); },{auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }} | ||||
| 19749 | [&self = *this](StructuredCloneReadInfoParent&& info) {{auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }} | ||||
| 19750 | return ConvertResponse<PreprocessInfo>(self.mDatabase,{auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }} | ||||
| 19751 | std::move(info));{auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }} | ||||
| 19752 | })){auto tryResult1497 = (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(tryResult1497)::ok_type>); if ((__builtin_expect (!!(tryResult1497.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)); })" , tryResult1497.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19752, mozilla::dom::quota::Severity::Error); return tryResult1497 .propagateErr(); }}; | ||||
| 19753 | |||||
| 19754 | return PreprocessParams{std::move(params)}; | ||||
| 19755 | } | ||||
| 19756 | |||||
| 19757 | auto params = ObjectStoreGetPreprocessParams(); | ||||
| 19758 | |||||
| 19759 | QM_TRY_UNWRAP(auto tryResult1498 = (ConvertResponse<PreprocessInfo>(mDatabase , std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1498 .isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19761, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); } params.preprocessInfo() = tryResult1498.unwrap (); | ||||
| 19760 | params.preprocessInfo(),auto tryResult1498 = (ConvertResponse<PreprocessInfo>(mDatabase , std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1498 .isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19761, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); } params.preprocessInfo() = tryResult1498.unwrap (); | ||||
| 19761 | ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0])))auto tryResult1498 = (ConvertResponse<PreprocessInfo>(mDatabase , std::move(mResponse[0]))); if ((__builtin_expect(!!(tryResult1498 .isErr()), 0))) { mozilla::dom::quota::HandleError("ConvertResponse<PreprocessInfo>(mDatabase, std::move(mResponse[0]))" , tryResult1498.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19761, mozilla::dom::quota::Severity::Error); return tryResult1498 .propagateErr(); } params.preprocessInfo() = tryResult1498.unwrap ();; | ||||
| 19762 | |||||
| 19763 | return PreprocessParams{std::move(params)}; | ||||
| 19764 | } | ||||
| 19765 | |||||
| 19766 | void ObjectStoreGetRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 19767 | size_t* aResponseSize) { | ||||
| 19768 | 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" , 19768); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit" ")"); do { MOZ_CrashSequence(__null, 19768); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19769 | |||||
| 19770 | if (mGetAll) { | ||||
| 19771 | aResponse = ObjectStoreGetAllResponse(); | ||||
| 19772 | *aResponseSize = 0; | ||||
| 19773 | |||||
| 19774 | if (!mResponse.IsEmpty()) { | ||||
| 19775 | QM_TRY_UNWRAP(auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19776 | aResponse.get_ObjectStoreGetAllResponse().cloneInfos(),auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19777 | TransformIntoNewArrayAbortOnErr(auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19778 | std::make_move_iterator(mResponse.begin()),auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19779 | std::make_move_iterator(mResponse.end()),auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19780 | [this, &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19781 | *aResponseSize += info.Size();auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19782 | return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19783 | mDatabase, std::move(info));auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19784 | },auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19785 | fallible),auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19786 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19787 | aResponse = TransactionOpResult(result);auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap(); | ||||
| 19788 | })auto tryResult1499 = (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(!!(tryResult1499 .isErr()), 0))) { auto tryTempError = tryResult1499.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" , 19788, 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() = tryResult1499.unwrap();; | ||||
| 19789 | } | ||||
| 19790 | |||||
| 19791 | return; | ||||
| 19792 | } | ||||
| 19793 | |||||
| 19794 | aResponse = ObjectStoreGetResponse(); | ||||
| 19795 | *aResponseSize = 0; | ||||
| 19796 | |||||
| 19797 | if (!mResponse.IsEmpty()) { | ||||
| 19798 | SerializedStructuredCloneReadInfo& serializedInfo = | ||||
| 19799 | aResponse.get_ObjectStoreGetResponse().cloneInfo(); | ||||
| 19800 | |||||
| 19801 | *aResponseSize += mResponse[0].Size(); | ||||
| 19802 | QM_TRY_UNWRAP(serializedInfo,auto tryResult1500 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1500.isErr()), 0))) { auto tryTempError = tryResult1500 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19807, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1500.unwrap (); | ||||
| 19803 | ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1500 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1500.isErr()), 0))) { auto tryTempError = tryResult1500 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19807, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1500.unwrap (); | ||||
| 19804 | mDatabase, std::move(mResponse[0])),auto tryResult1500 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1500.isErr()), 0))) { auto tryTempError = tryResult1500 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19807, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1500.unwrap (); | ||||
| 19805 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1500 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1500.isErr()), 0))) { auto tryTempError = tryResult1500 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19807, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1500.unwrap (); | ||||
| 19806 | aResponse = TransactionOpResult(result);auto tryResult1500 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1500.isErr()), 0))) { auto tryTempError = tryResult1500 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19807, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1500.unwrap (); | ||||
| 19807 | })auto tryResult1500 = (ConvertResponse<SerializedStructuredCloneReadInfo >( mDatabase, std::move(mResponse[0]))); if ((__builtin_expect (!!(tryResult1500.isErr()), 0))) { auto tryTempError = tryResult1500 .unwrapErr(); mozilla::dom::quota::HandleError("ConvertResponse<SerializedStructuredCloneReadInfo>( mDatabase, std::move(mResponse[0]))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19807, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1500.unwrap ();; | ||||
| 19808 | } | ||||
| 19809 | } | ||||
| 19810 | |||||
| 19811 | ObjectStoreGetKeyRequestOp::ObjectStoreGetKeyRequestOp( | ||||
| 19812 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19813 | const RequestParams& aParams, bool aGetAll) | ||||
| 19814 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19815 | mObjectStoreId( | ||||
| 19816 | aGetAll ? aParams.get_ObjectStoreGetAllKeysParams().objectStoreId() | ||||
| 19817 | : aParams.get_ObjectStoreGetKeyParams().objectStoreId()), | ||||
| 19818 | mOptionalKeyRange( | ||||
| 19819 | aGetAll ? aParams.get_ObjectStoreGetAllKeysParams() | ||||
| 19820 | .options() | ||||
| 19821 | .optionalKeyRange() | ||||
| 19822 | : Some(aParams.get_ObjectStoreGetKeyParams().keyRange())), | ||||
| 19823 | mLimit(aGetAll | ||||
| 19824 | ? aParams.get_ObjectStoreGetAllKeysParams().options().limit() | ||||
| 19825 | : 1), | ||||
| 19826 | mDirection( | ||||
| 19827 | aGetAll | ||||
| 19828 | ? aParams.get_ObjectStoreGetAllKeysParams().options().direction() | ||||
| 19829 | : IDBCursorDirection::Next), | ||||
| 19830 | mGetAll(aGetAll) { | ||||
| 19831 | 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", 19832 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" ")"); do { MOZ_CrashSequence(__null, 19832); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 19832 | 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", 19832 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetKeyParams || aParams.type() == RequestParams::TObjectStoreGetAllKeysParams" ")"); do { MOZ_CrashSequence(__null, 19832); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19833 | 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", 19833 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 19833); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 19834 | 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", 19834 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 19834); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19835 | } | ||||
| 19836 | |||||
| 19837 | nsresult ObjectStoreGetKeyRequestOp::DoDatabaseWork( | ||||
| 19838 | DatabaseConnection* aConnection) { | ||||
| 19839 | 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" , 19839); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19839); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19840 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19841 | |||||
| 19842 | AUTO_PROFILER_LABEL("ObjectStoreGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19842( "ObjectStoreGetKeyRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19843 | |||||
| 19844 | const nsCString query = | ||||
| 19845 | "SELECT key " | ||||
| 19846 | "FROM object_data " | ||||
| 19847 | "WHERE object_store_id = :"_ns + | ||||
| 19848 | kStmtParamNameObjectStoreId + | ||||
| 19849 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) + | ||||
| 19850 | MakeDirectionClause(mDirection) + | ||||
| 19851 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 19852 | |||||
| 19853 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1501 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult1501.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult1501.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19853, mozilla::dom::quota::Severity::Error); return tryResult1501 .propagateErr(); } const auto& stmt = tryResult1501.inspect ();; | ||||
| 19854 | |||||
| 19855 | nsresult rv = | ||||
| 19856 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId); | ||||
| 19857 | 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" , 19857)) { | ||||
| 19858 | return rv; | ||||
| 19859 | } | ||||
| 19860 | |||||
| 19861 | if (mOptionalKeyRange.isSome()) { | ||||
| 19862 | rv = BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt); | ||||
| 19863 | 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" , 19863)) { | ||||
| 19864 | return rv; | ||||
| 19865 | } | ||||
| 19866 | } | ||||
| 19867 | |||||
| 19868 | QM_TRY(CollectWhileHasResult({auto tryResult1504 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19871 , 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 tryResult1503 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19872, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1504)::ok_type>); if ((__builtin_expect (!!(tryResult1504.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19871, 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 tryResult1503 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1503.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19872, mozilla::dom::quota::Severity::Error); return tryResult1503.propagateErr(); }}; return Ok{}; })" , tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19875, mozilla::dom::quota::Severity::Error); return tryResult1504 .propagateErr(); }} | ||||
| 19869 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1504 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19871 , 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 tryResult1503 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19872, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1504)::ok_type>); if ((__builtin_expect (!!(tryResult1504.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19871, 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 tryResult1503 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1503.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19872, mozilla::dom::quota::Severity::Error); return tryResult1503.propagateErr(); }}; return Ok{}; })" , tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19875, mozilla::dom::quota::Severity::Error); return tryResult1504 .propagateErr(); }} | ||||
| 19870 | Key* const key = mResponse.AppendElement(fallible);{auto tryResult1504 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19871 , 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 tryResult1503 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19872, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1504)::ok_type>); if ((__builtin_expect (!!(tryResult1504.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19871, 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 tryResult1503 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1503.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19872, mozilla::dom::quota::Severity::Error); return tryResult1503.propagateErr(); }}; return Ok{}; })" , tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19875, mozilla::dom::quota::Severity::Error); return tryResult1504 .propagateErr(); }} | ||||
| 19871 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1504 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19871 , 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 tryResult1503 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19872, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1504)::ok_type>); if ((__builtin_expect (!!(tryResult1504.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19871, 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 tryResult1503 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1503.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19872, mozilla::dom::quota::Severity::Error); return tryResult1503.propagateErr(); }}; return Ok{}; })" , tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19875, mozilla::dom::quota::Severity::Error); return tryResult1504 .propagateErr(); }} | ||||
| 19872 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1504 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19871 , 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 tryResult1503 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19872, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1504)::ok_type>); if ((__builtin_expect (!!(tryResult1504.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19871, 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 tryResult1503 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1503.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19872, mozilla::dom::quota::Severity::Error); return tryResult1503.propagateErr(); }}; return Ok{}; })" , tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19875, mozilla::dom::quota::Severity::Error); return tryResult1504 .propagateErr(); }} | ||||
| 19873 | |||||
| 19874 | return Ok{};{auto tryResult1504 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19871 , 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 tryResult1503 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19872, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1504)::ok_type>); if ((__builtin_expect (!!(tryResult1504.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19871, 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 tryResult1503 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1503.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19872, mozilla::dom::quota::Severity::Error); return tryResult1503.propagateErr(); }}; return Ok{}; })" , tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19875, mozilla::dom::quota::Severity::Error); return tryResult1504 .propagateErr(); }} | ||||
| 19875 | })){auto tryResult1504 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 19871 , 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 tryResult1503 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1503.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19872, mozilla::dom::quota::Severity::Error); return tryResult1503 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1504)::ok_type>); if ((__builtin_expect (!!(tryResult1504.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1502 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1502)::ok_type>); if ((__builtin_expect(!!(tryResult1502.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1502.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19871, 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 tryResult1503 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1503)::ok_type>); if ((__builtin_expect(!!(tryResult1503.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1503.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19872, mozilla::dom::quota::Severity::Error); return tryResult1503.propagateErr(); }}; return Ok{}; })" , tryResult1504.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19875, mozilla::dom::quota::Severity::Error); return tryResult1504 .propagateErr(); }}; | ||||
| 19876 | |||||
| 19877 | 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", 19877 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 19877); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19878 | |||||
| 19879 | return NS_OK; | ||||
| 19880 | } | ||||
| 19881 | |||||
| 19882 | void ObjectStoreGetKeyRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 19883 | size_t* aResponseSize) { | ||||
| 19884 | 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" , 19884); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= mLimit" ")"); do { MOZ_CrashSequence(__null, 19884); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 19885 | |||||
| 19886 | if (mGetAll) { | ||||
| 19887 | aResponse = ObjectStoreGetAllKeysResponse(); | ||||
| 19888 | *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u, | ||||
| 19889 | [](size_t old, const auto& entry) { | ||||
| 19890 | return old + entry.GetBuffer().Length(); | ||||
| 19891 | }); | ||||
| 19892 | |||||
| 19893 | aResponse.get_ObjectStoreGetAllKeysResponse().keys() = std::move(mResponse); | ||||
| 19894 | |||||
| 19895 | return; | ||||
| 19896 | } | ||||
| 19897 | |||||
| 19898 | aResponse = ObjectStoreGetKeyResponse(); | ||||
| 19899 | *aResponseSize = 0; | ||||
| 19900 | |||||
| 19901 | if (!mResponse.IsEmpty()) { | ||||
| 19902 | *aResponseSize = mResponse[0].GetBuffer().Length(); | ||||
| 19903 | aResponse.get_ObjectStoreGetKeyResponse().key() = std::move(mResponse[0]); | ||||
| 19904 | } | ||||
| 19905 | } | ||||
| 19906 | |||||
| 19907 | ObjectStoreDeleteRequestOp::ObjectStoreDeleteRequestOp( | ||||
| 19908 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19909 | const ObjectStoreDeleteParams& aParams) | ||||
| 19910 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19911 | mParams(aParams), | ||||
| 19912 | mObjectStoreMayHaveIndexes(false) { | ||||
| 19913 | AssertIsOnBackgroundThread(); | ||||
| 19914 | |||||
| 19915 | SafeRefPtr<FullObjectStoreMetadata> metadata = | ||||
| 19916 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | ||||
| 19917 | 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" , 19917); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 19917); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 19918 | |||||
| 19919 | mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes(); | ||||
| 19920 | } | ||||
| 19921 | |||||
| 19922 | nsresult ObjectStoreDeleteRequestOp::DoDatabaseWork( | ||||
| 19923 | DatabaseConnection* aConnection) { | ||||
| 19924 | 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" , 19924); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19924); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19925 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19926 | AUTO_PROFILER_LABEL("ObjectStoreDeleteRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19926( "ObjectStoreDeleteRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19927 | |||||
| 19928 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 19929 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1505 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1505)::ok_type>); if ((__builtin_expect(!!(tryResult1505 .isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19934, 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)); }} | ||||
| 19930 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1505 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1505)::ok_type>); if ((__builtin_expect(!!(tryResult1505 .isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19934, 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)); }} | ||||
| 19931 | ,{auto tryResult1505 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1505)::ok_type>); if ((__builtin_expect(!!(tryResult1505 .isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19934, 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)); }} | ||||
| 19932 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1505 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1505)::ok_type>); if ((__builtin_expect(!!(tryResult1505 .isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19934, 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)); }} | ||||
| 19933 | #endif{auto tryResult1505 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1505)::ok_type>); if ((__builtin_expect(!!(tryResult1505 .isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19934, 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)); }} | ||||
| 19934 | ){auto tryResult1505 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1505)::ok_type>); if ((__builtin_expect(!!(tryResult1505 .isErr()), 0))) { auto tryTempError = tryResult1505.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19934, 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)); }}; | ||||
| 19935 | |||||
| 19936 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1506 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1506.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1506.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19938, mozilla::dom::quota::Severity::Error); return tryResult1506 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1506 .inspect(); | ||||
| 19937 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1506 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1506.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1506.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19938, mozilla::dom::quota::Severity::Error); return tryResult1506 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1506 .inspect(); | ||||
| 19938 | mObjectStoreMayHaveIndexes))auto tryResult1506 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1506.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1506.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19938, mozilla::dom::quota::Severity::Error); return tryResult1506 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1506 .inspect();; | ||||
| 19939 | |||||
| 19940 | if (objectStoreHasIndexes) { | ||||
| 19941 | QM_TRY(MOZ_TO_RESULT(DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1507 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Some(mParams.keyRange ())))); static_assert(std::is_empty_v<typename decltype(tryResult1507 )::ok_type>); if ((__builtin_expect(!!(tryResult1507.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))" , tryResult1507.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19942, mozilla::dom::quota::Severity::Error); return tryResult1507 .propagateErr(); }} | ||||
| 19942 | aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))){auto tryResult1507 = (ToResult(DeleteObjectStoreDataTableRowsWithIndexes ( aConnection, mParams.objectStoreId(), Some(mParams.keyRange ())))); static_assert(std::is_empty_v<typename decltype(tryResult1507 )::ok_type>); if ((__builtin_expect(!!(tryResult1507.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DeleteObjectStoreDataTableRowsWithIndexes( aConnection, mParams.objectStoreId(), Some(mParams.keyRange())))" , tryResult1507.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19942, mozilla::dom::quota::Severity::Error); return tryResult1507 .propagateErr(); }}; | ||||
| 19943 | } else { | ||||
| 19944 | const auto keyRangeClause = | ||||
| 19945 | GetBindingClauseForKeyRange(mParams.keyRange(), kColumnNameKey); | ||||
| 19946 | |||||
| 19947 | QM_TRY(MOZ_TO_RESULT(aConnection->ExecuteCachedStatement({auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19948 | "DELETE FROM object_data "{auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19949 | "WHERE object_store_id = :"_ns +{auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19950 | kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns,{auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19951 | [¶ms = mParams]({auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19952 | mozIStorageStatement& stmt) -> mozilla::Result<Ok, nsresult> {{auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19953 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(kStmtParamNameObjectStoreId,{auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19954 | params.objectStoreId())));{auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19955 | |||||
| 19956 | QM_TRY({auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19957 | MOZ_TO_RESULT(BindKeyRangeToStatement(params.keyRange(), &stmt)));{auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19958 | |||||
| 19959 | return Ok{};{auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }} | ||||
| 19960 | }))){auto tryResult1510 = (ToResult(aConnection->ExecuteCachedStatement ( "DELETE FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause + ";"_ns, [& params = mParams]( mozIStorageStatement& stmt) -> mozilla ::Result<Ok, nsresult> { {auto tryResult1508 = (ToResult (stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId ()))); static_assert(std::is_empty_v<typename decltype(tryResult1508 )::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1508.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19954, mozilla::dom::quota::Severity::Error); return tryResult1508 .propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement (params.keyRange(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect (!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))" , tryResult1509.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19957, mozilla::dom::quota::Severity::Error); return tryResult1509 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1510)::ok_type>); if ((__builtin_expect (!!(tryResult1510.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 tryResult1508 = (ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1508)::ok_type>); if ((__builtin_expect(!!(tryResult1508.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName(kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1508.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19954, mozilla::dom::quota::Severity::Error); return tryResult1508.propagateErr(); }}; {auto tryResult1509 = (ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1509)::ok_type>); if ((__builtin_expect(!!(tryResult1509.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement(params.keyRange(), &stmt))\", tryResult1509.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 19957, mozilla::dom::quota::Severity::Error); return tryResult1509.propagateErr(); }}; return Ok{}; }))" , tryResult1510.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19960, mozilla::dom::quota::Severity::Error); return tryResult1510 .propagateErr(); }}; | ||||
| 19961 | } | ||||
| 19962 | |||||
| 19963 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1511 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1511)::ok_type >); if ((__builtin_expect(!!(tryResult1511.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1511.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19963, mozilla::dom::quota::Severity::Error); return tryResult1511 .propagateErr(); }}; | ||||
| 19964 | |||||
| 19965 | return NS_OK; | ||||
| 19966 | } | ||||
| 19967 | |||||
| 19968 | ObjectStoreClearRequestOp::ObjectStoreClearRequestOp( | ||||
| 19969 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 19970 | const ObjectStoreClearParams& aParams) | ||||
| 19971 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 19972 | mParams(aParams), | ||||
| 19973 | mObjectStoreMayHaveIndexes(false) { | ||||
| 19974 | AssertIsOnBackgroundThread(); | ||||
| 19975 | |||||
| 19976 | SafeRefPtr<FullObjectStoreMetadata> metadata = | ||||
| 19977 | Transaction().GetMetadataForObjectStoreId(mParams.objectStoreId()); | ||||
| 19978 | 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" , 19978); AnnotateMozCrashReason("MOZ_ASSERT" "(" "metadata" ")" ); do { MOZ_CrashSequence(__null, 19978); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 19979 | |||||
| 19980 | mObjectStoreMayHaveIndexes = metadata->HasLiveIndexes(); | ||||
| 19981 | } | ||||
| 19982 | |||||
| 19983 | nsresult ObjectStoreClearRequestOp::DoDatabaseWork( | ||||
| 19984 | DatabaseConnection* aConnection) { | ||||
| 19985 | 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" , 19985); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 19985); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 19986 | aConnection->AssertIsOnConnectionThread(); | ||||
| 19987 | |||||
| 19988 | AUTO_PROFILER_LABEL("ObjectStoreClearRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject19988( "ObjectStoreClearRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 19989 | |||||
| 19990 | DatabaseConnection::AutoSavepoint autoSave; | ||||
| 19991 | QM_TRY(MOZ_TO_RESULT(autoSave.Start(Transaction())){auto tryResult1512 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1512)::ok_type>); if ((__builtin_expect(!!(tryResult1512 .isErr()), 0))) { auto tryTempError = tryResult1512.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19996, 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)); }} | ||||
| 19992 | #ifdef MOZ_DIAGNOSTIC_ASSERT_ENABLED{auto tryResult1512 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1512)::ok_type>); if ((__builtin_expect(!!(tryResult1512 .isErr()), 0))) { auto tryTempError = tryResult1512.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19996, 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)); }} | ||||
| 19993 | ,{auto tryResult1512 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1512)::ok_type>); if ((__builtin_expect(!!(tryResult1512 .isErr()), 0))) { auto tryTempError = tryResult1512.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19996, 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)); }} | ||||
| 19994 | QM_PROPAGATE, MakeAutoSavepointCleanupHandler(*aConnection){auto tryResult1512 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1512)::ok_type>); if ((__builtin_expect(!!(tryResult1512 .isErr()), 0))) { auto tryTempError = tryResult1512.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19996, 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)); }} | ||||
| 19995 | #endif{auto tryResult1512 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1512)::ok_type>); if ((__builtin_expect(!!(tryResult1512 .isErr()), 0))) { auto tryTempError = tryResult1512.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19996, 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)); }} | ||||
| 19996 | ){auto tryResult1512 = (ToResult(autoSave.Start(Transaction()) )ifdef 1); static_assert(std::is_empty_v<typename decltype (tryResult1512)::ok_type>); if ((__builtin_expect(!!(tryResult1512 .isErr()), 0))) { auto tryTempError = tryResult1512.unwrapErr (); mozilla::dom::quota::HandleError("ToResult(autoSave.Start(Transaction()))ifdef 1" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 19996, 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)); }}; | ||||
| 19997 | |||||
| 19998 | QM_TRY_INSPECT(const bool& objectStoreHasIndexes,auto tryResult1513 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1513.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1513.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20000, mozilla::dom::quota::Severity::Error); return tryResult1513 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1513 .inspect(); | ||||
| 19999 | ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(),auto tryResult1513 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1513.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1513.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20000, mozilla::dom::quota::Severity::Error); return tryResult1513 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1513 .inspect(); | ||||
| 20000 | mObjectStoreMayHaveIndexes))auto tryResult1513 = (ObjectStoreHasIndexes(*aConnection, mParams .objectStoreId(), mObjectStoreMayHaveIndexes)); if ((__builtin_expect (!!(tryResult1513.isErr()), 0))) { mozilla::dom::quota::HandleError ("ObjectStoreHasIndexes(*aConnection, mParams.objectStoreId(), mObjectStoreMayHaveIndexes)" , tryResult1513.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20000, mozilla::dom::quota::Severity::Error); return tryResult1513 .propagateErr(); } const bool& objectStoreHasIndexes = tryResult1513 .inspect();; | ||||
| 20001 | |||||
| 20002 | // The parameter names are not used, parameters are bound by index only | ||||
| 20003 | // locally in the same function. | ||||
| 20004 | QM_TRY(MOZ_TO_RESULT({auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20005 | objectStoreHasIndexes{auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20006 | ? DeleteObjectStoreDataTableRowsWithIndexes({auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20007 | aConnection, mParams.objectStoreId(), Nothing()){auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20008 | : aConnection->ExecuteCachedStatement({auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20009 | "DELETE FROM object_data "{auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20010 | "WHERE object_store_id = :object_store_id;"_ns,{auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20011 | [objectStoreId ={auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20012 | mParams.objectStoreId()](mozIStorageStatement& stmt){auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20013 | -> mozilla::Result<Ok, nsresult> {{auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20014 | QM_TRY({auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20015 | MOZ_TO_RESULT(stmt.BindInt64ByIndex(0, objectStoreId)));{auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20016 | |||||
| 20017 | return Ok{};{auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }} | ||||
| 20018 | }))){auto tryResult1515 = (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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId ))); static_assert(std::is_empty_v<typename decltype(tryResult1514 )::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(stmt.BindInt64ByIndex(0, objectStoreId))" , tryResult1514.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20015, mozilla::dom::quota::Severity::Error); return tryResult1514 .propagateErr(); }}; return Ok{}; }))); static_assert(std::is_empty_v <typename decltype(tryResult1515)::ok_type>); if ((__builtin_expect (!!(tryResult1515.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 tryResult1514 = (ToResult(stmt.BindInt64ByIndex(0, objectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1514)::ok_type>); if ((__builtin_expect(!!(tryResult1514.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByIndex(0, objectStoreId))\", tryResult1514.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20015, mozilla::dom::quota::Severity::Error); return tryResult1514.propagateErr(); }}; return Ok{}; }))" , tryResult1515.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20018, mozilla::dom::quota::Severity::Error); return tryResult1515 .propagateErr(); }}; | ||||
| 20019 | |||||
| 20020 | QM_TRY(MOZ_TO_RESULT(autoSave.Commit())){auto tryResult1516 = (ToResult(autoSave.Commit())); static_assert (std::is_empty_v<typename decltype(tryResult1516)::ok_type >); if ((__builtin_expect(!!(tryResult1516.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(autoSave.Commit())" , tryResult1516.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20020, mozilla::dom::quota::Severity::Error); return tryResult1516 .propagateErr(); }}; | ||||
| 20021 | |||||
| 20022 | return NS_OK; | ||||
| 20023 | } | ||||
| 20024 | |||||
| 20025 | nsresult ObjectStoreCountRequestOp::DoDatabaseWork( | ||||
| 20026 | DatabaseConnection* aConnection) { | ||||
| 20027 | 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" , 20027); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20027); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20028 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20029 | |||||
| 20030 | AUTO_PROFILER_LABEL("ObjectStoreCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20030( "ObjectStoreCountRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20031 | |||||
| 20032 | const auto keyRangeClause = MaybeGetBindingClauseForKeyRange( | ||||
| 20033 | mParams.optionalKeyRange(), kColumnNameKey); | ||||
| 20034 | |||||
| 20035 | QM_TRY_INSPECT(auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20036 | const auto& maybeStmt,auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20037 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20038 | "SELECT count(*) "auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20039 | "FROM object_data "auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20040 | "WHERE object_store_id = :"_ns +auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20041 | kStmtParamNameObjectStoreId + keyRangeClause,auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20042 | [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20043 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20044 | kStmtParamNameObjectStoreId, params.objectStoreId())));auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20045 | |||||
| 20046 | if (params.optionalKeyRange().isSome()) {auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20047 | QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20048 | params.optionalKeyRange().ref(), &stmt)));auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20049 | }auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20050 | |||||
| 20051 | return Ok{};auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect(); | ||||
| 20052 | }))auto tryResult1519 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM object_data " "WHERE object_store_id = :"_ns + kStmtParamNameObjectStoreId + keyRangeClause, [¶ms = mParams](auto& stmt) -> mozilla::Result<Ok, nsresult > { {auto tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId , params.objectStoreId()))); static_assert(std::is_empty_v< typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect (!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))" , tryResult1517.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20044, mozilla::dom::quota::Severity::Error); return tryResult1517 .propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params .optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v <typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect (!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))" , tryResult1518.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20048, mozilla::dom::quota::Severity::Error); return tryResult1518 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1519.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 tryResult1517 = (ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))); static_assert(std::is_empty_v<typename decltype(tryResult1517)::ok_type>); if ((__builtin_expect(!!(tryResult1517.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameObjectStoreId, params.objectStoreId()))\", tryResult1517.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20044, mozilla::dom::quota::Severity::Error); return tryResult1517.propagateErr(); }}; if (params.optionalKeyRange().isSome()) { {auto tryResult1518 = (ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1518)::ok_type>); if ((__builtin_expect(!!(tryResult1518.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( params.optionalKeyRange().ref(), &stmt))\", tryResult1518.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20048, mozilla::dom::quota::Severity::Error); return tryResult1518.propagateErr(); }}; } return Ok{}; })" , tryResult1519.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20052, mozilla::dom::quota::Severity::Error); return tryResult1519 .propagateErr(); } const auto& maybeStmt = tryResult1519. inspect();; | ||||
| 20053 | |||||
| 20054 | QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1520 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1520)::ok_type >); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { auto tryTempError = tryResult1520.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20060, 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", 20058 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20058); __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" , 20059, 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); }} | ||||
| 20055 | [](const auto) {{auto tryResult1520 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1520)::ok_type >); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { auto tryTempError = tryResult1520.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20060, 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", 20058 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20058); __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" , 20059, 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); }} | ||||
| 20056 | // XXX Why do we have an assertion here, but not at most other{auto tryResult1520 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1520)::ok_type >); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { auto tryTempError = tryResult1520.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20060, 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", 20058 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20058); __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" , 20059, 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); }} | ||||
| 20057 | // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1520 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1520)::ok_type >); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { auto tryTempError = tryResult1520.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20060, 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", 20058 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20058); __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" , 20059, 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); }} | ||||
| 20058 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1520 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1520)::ok_type >); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { auto tryTempError = tryResult1520.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20060, 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", 20058 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20058); __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" , 20059, 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); }} | ||||
| 20059 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1520 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1520)::ok_type >); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { auto tryTempError = tryResult1520.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20060, 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", 20058 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20058); __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" , 20059, 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); }} | ||||
| 20060 | }){auto tryResult1520 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1520)::ok_type >); if ((__builtin_expect(!!(tryResult1520.isErr()), 0))) { auto tryTempError = tryResult1520.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20060, 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", 20058 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20058); __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" , 20059, 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); }}; | ||||
| 20061 | |||||
| 20062 | const auto& stmt = *maybeStmt; | ||||
| 20063 | |||||
| 20064 | const int64_t count = stmt->AsInt64(0); | ||||
| 20065 | QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1521 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1521)::ok_type> ); if ((__builtin_expect(!!(tryResult1521.isErr()), 0))) { auto tryTempError = tryResult1521.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20070, 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", 20068 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20068); __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" , 20069, 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); }} | ||||
| 20066 | // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1521 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1521)::ok_type> ); if ((__builtin_expect(!!(tryResult1521.isErr()), 0))) { auto tryTempError = tryResult1521.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20070, 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", 20068 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20068); __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" , 20069, 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); }} | ||||
| 20067 | // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1521 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1521)::ok_type> ); if ((__builtin_expect(!!(tryResult1521.isErr()), 0))) { auto tryTempError = tryResult1521.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20070, 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", 20068 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20068); __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" , 20069, 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); }} | ||||
| 20068 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1521 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1521)::ok_type> ); if ((__builtin_expect(!!(tryResult1521.isErr()), 0))) { auto tryTempError = tryResult1521.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20070, 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", 20068 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20068); __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" , 20069, 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); }} | ||||
| 20069 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1521 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1521)::ok_type> ); if ((__builtin_expect(!!(tryResult1521.isErr()), 0))) { auto tryTempError = tryResult1521.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20070, 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", 20068 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20068); __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" , 20069, 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); }} | ||||
| 20070 | }){auto tryResult1521 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1521)::ok_type> ); if ((__builtin_expect(!!(tryResult1521.isErr()), 0))) { auto tryTempError = tryResult1521.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20070, 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", 20068 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20068); __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" , 20069, 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); }}; | ||||
| 20071 | |||||
| 20072 | mResponse.count() = count; | ||||
| 20073 | |||||
| 20074 | return NS_OK; | ||||
| 20075 | } | ||||
| 20076 | |||||
| 20077 | // static | ||||
| 20078 | SafeRefPtr<FullIndexMetadata> IndexRequestOpBase::IndexMetadataForParams( | ||||
| 20079 | const TransactionBase& aTransaction, const RequestParams& aParams) { | ||||
| 20080 | AssertIsOnBackgroundThread(); | ||||
| 20081 | 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", 20086 ); 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, 20086); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20082 | 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", 20086 ); 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, 20086); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20083 | 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", 20086 ); 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, 20086); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20084 | 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", 20086 ); 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, 20086); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20085 | 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", 20086 ); 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, 20086); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20086 | 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", 20086 ); 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, 20086); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20087 | |||||
| 20088 | IndexOrObjectStoreId objectStoreId; | ||||
| 20089 | IndexOrObjectStoreId indexId; | ||||
| 20090 | |||||
| 20091 | switch (aParams.type()) { | ||||
| 20092 | case RequestParams::TIndexGetParams: { | ||||
| 20093 | const IndexGetParams& params = aParams.get_IndexGetParams(); | ||||
| 20094 | objectStoreId = params.objectStoreId(); | ||||
| 20095 | indexId = params.indexId(); | ||||
| 20096 | break; | ||||
| 20097 | } | ||||
| 20098 | |||||
| 20099 | case RequestParams::TIndexGetKeyParams: { | ||||
| 20100 | const IndexGetKeyParams& params = aParams.get_IndexGetKeyParams(); | ||||
| 20101 | objectStoreId = params.objectStoreId(); | ||||
| 20102 | indexId = params.indexId(); | ||||
| 20103 | break; | ||||
| 20104 | } | ||||
| 20105 | |||||
| 20106 | case RequestParams::TIndexGetAllParams: { | ||||
| 20107 | const IndexGetAllParams& params = aParams.get_IndexGetAllParams(); | ||||
| 20108 | objectStoreId = params.objectStoreId(); | ||||
| 20109 | indexId = params.indexId(); | ||||
| 20110 | break; | ||||
| 20111 | } | ||||
| 20112 | |||||
| 20113 | case RequestParams::TIndexGetAllKeysParams: { | ||||
| 20114 | const IndexGetAllKeysParams& params = aParams.get_IndexGetAllKeysParams(); | ||||
| 20115 | objectStoreId = params.objectStoreId(); | ||||
| 20116 | indexId = params.indexId(); | ||||
| 20117 | break; | ||||
| 20118 | } | ||||
| 20119 | |||||
| 20120 | case RequestParams::TIndexGetAllRecordsParams: { | ||||
| 20121 | const IndexGetAllRecordsParams& params = | ||||
| 20122 | aParams.get_IndexGetAllRecordsParams(); | ||||
| 20123 | objectStoreId = params.objectStoreId(); | ||||
| 20124 | indexId = params.indexId(); | ||||
| 20125 | break; | ||||
| 20126 | } | ||||
| 20127 | |||||
| 20128 | case RequestParams::TIndexCountParams: { | ||||
| 20129 | const IndexCountParams& params = aParams.get_IndexCountParams(); | ||||
| 20130 | objectStoreId = params.objectStoreId(); | ||||
| 20131 | indexId = params.indexId(); | ||||
| 20132 | break; | ||||
| 20133 | } | ||||
| 20134 | |||||
| 20135 | default: | ||||
| 20136 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20136 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 20136); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 20137 | } | ||||
| 20138 | |||||
| 20139 | const SafeRefPtr<FullObjectStoreMetadata> objectStoreMetadata = | ||||
| 20140 | aTransaction.GetMetadataForObjectStoreId(objectStoreId); | ||||
| 20141 | 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", 20141 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "objectStoreMetadata" ")"); do { MOZ_CrashSequence(__null, 20141); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20142 | |||||
| 20143 | SafeRefPtr<FullIndexMetadata> indexMetadata = | ||||
| 20144 | aTransaction.GetMetadataForIndexId(*objectStoreMetadata, indexId); | ||||
| 20145 | 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", 20145) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "indexMetadata" ")" ); do { MOZ_CrashSequence(__null, 20145); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20146 | |||||
| 20147 | return indexMetadata; | ||||
| 20148 | } | ||||
| 20149 | |||||
| 20150 | IndexGetRequestOp::IndexGetRequestOp(SafeRefPtr<TransactionBase> aTransaction, | ||||
| 20151 | const int64_t aRequestId, | ||||
| 20152 | const RequestParams& aParams, bool aGetAll) | ||||
| 20153 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | ||||
| 20154 | mDatabase(Transaction().GetDatabasePtr()), | ||||
| 20155 | mOptionalKeyRange( | ||||
| 20156 | aGetAll ? aParams.get_IndexGetAllParams().options().optionalKeyRange() | ||||
| 20157 | : Some(aParams.get_IndexGetParams().keyRange())), | ||||
| 20158 | mBackgroundParent(Transaction().GetBackgroundParent()), | ||||
| 20159 | mLimit(aGetAll ? aParams.get_IndexGetAllParams().options().limit() : 1), | ||||
| 20160 | mDirection(aGetAll ? aParams.get_IndexGetAllParams().options().direction() | ||||
| 20161 | : IDBCursorDirection::Next), | ||||
| 20162 | mGetAll(aGetAll) { | ||||
| 20163 | 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", 20164 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" ")"); do { MOZ_CrashSequence(__null, 20164); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20164 | 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", 20164 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetParams || aParams.type() == RequestParams::TIndexGetAllParams" ")"); do { MOZ_CrashSequence(__null, 20164); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20165 | 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" , 20165); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 20165); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20166 | 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", 20166 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 20166); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20167 | 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", 20167 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 20167); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20168 | } | ||||
| 20169 | |||||
| 20170 | nsCString IndexGetRequestOp::MakeQuery() const { | ||||
| 20171 | const auto indexTable = mMetadata->mCommonMetadata.unique() | ||||
| 20172 | ? "unique_index_data "_ns | ||||
| 20173 | : "index_data "_ns; | ||||
| 20174 | if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) { | ||||
| 20175 | // For nextunique/prevunique on a non-unique index, deduplicate by index key | ||||
| 20176 | // by selecting only the record with the minimum primary key for each index | ||||
| 20177 | // key. unique_index_data (mMetadata->mCommonMetadata.unique()) already | ||||
| 20178 | // enforces one record per index key, so this is only needed for | ||||
| 20179 | // index_data. | ||||
| 20180 | // Note we always use MIN regardless of the direction because we always | ||||
| 20181 | // walk the items in the same order: the difference is that prevunique | ||||
| 20182 | // prepend record while nextunique append it. See step 3 at | ||||
| 20183 | // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index | ||||
| 20184 | // nextunique: "append |rangeRecords[i]| to records." | ||||
| 20185 | // prevunique: "prepend |rangeRecords[i]| to records." | ||||
| 20186 | return "SELECT file_ids, data " | ||||
| 20187 | "FROM object_data " | ||||
| 20188 | "INNER JOIN (" | ||||
| 20189 | "SELECT object_store_id, MIN(object_data_key) AS object_data_key, " | ||||
| 20190 | "value " | ||||
| 20191 | "FROM "_ns + | ||||
| 20192 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | ||||
| 20193 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, | ||||
| 20194 | kColumnNameValue) + | ||||
| 20195 | " GROUP BY value, object_store_id) AS index_table " | ||||
| 20196 | "ON object_data.object_store_id = " | ||||
| 20197 | "index_table.object_store_id " | ||||
| 20198 | "AND object_data.key = " | ||||
| 20199 | "index_table.object_data_key"_ns + | ||||
| 20200 | MakeDirectionClause(mDirection, "index_table.value"_ns) + | ||||
| 20201 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20202 | } | ||||
| 20203 | return "SELECT file_ids, data " | ||||
| 20204 | "FROM object_data " | ||||
| 20205 | "INNER JOIN "_ns + | ||||
| 20206 | indexTable + | ||||
| 20207 | "AS index_table " | ||||
| 20208 | "ON object_data.object_store_id = " | ||||
| 20209 | "index_table.object_store_id " | ||||
| 20210 | "AND object_data.key = " | ||||
| 20211 | "index_table.object_data_key " | ||||
| 20212 | "WHERE index_id = :"_ns + | ||||
| 20213 | kStmtParamNameIndexId + | ||||
| 20214 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + | ||||
| 20215 | MakeDirectionClause(mDirection, "index_table.value"_ns) + | ||||
| 20216 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20217 | } | ||||
| 20218 | |||||
| 20219 | nsresult IndexGetRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 20220 | 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" , 20220); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20220); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20221 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20222 | 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", 20222 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 20222); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20223 | 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" , 20223); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { MOZ_CrashSequence(__null, 20223); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20224 | 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", 20224 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDirection == IDBCursorDirection::Next" ")"); do { MOZ_CrashSequence(__null, 20224); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20225 | |||||
| 20226 | AUTO_PROFILER_LABEL("IndexGetRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20226( "IndexGetRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20227 | |||||
| 20228 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1522 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20229, mozilla::dom::quota::Severity::Error); return tryResult1522 .propagateErr(); } const auto& stmt = tryResult1522.inspect (); | ||||
| 20229 | aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1522 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1522.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1522.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20229, mozilla::dom::quota::Severity::Error); return tryResult1522 .propagateErr(); } const auto& stmt = tryResult1522.inspect ();; | ||||
| 20230 | |||||
| 20231 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1523 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect (!!(tryResult1523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1523.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20232, mozilla::dom::quota::Severity::Error); return tryResult1523 .propagateErr(); }} | ||||
| 20232 | mMetadata->mCommonMetadata.id()))){auto tryResult1523 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1523)::ok_type>); if ((__builtin_expect (!!(tryResult1523.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1523.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20232, mozilla::dom::quota::Severity::Error); return tryResult1523 .propagateErr(); }}; | ||||
| 20233 | |||||
| 20234 | if (mOptionalKeyRange.isSome()) { | ||||
| 20235 | QM_TRY(MOZ_TO_RESULT({auto tryResult1524 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect (!!(tryResult1524.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20236, mozilla::dom::quota::Severity::Error); return tryResult1524 .propagateErr(); }} | ||||
| 20236 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1524 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1524)::ok_type>); if ((__builtin_expect (!!(tryResult1524.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1524.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20236, mozilla::dom::quota::Severity::Error); return tryResult1524 .propagateErr(); }}; | ||||
| 20237 | } | ||||
| 20238 | |||||
| 20239 | QM_TRY(CollectWhileHasResult({auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20240 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20241 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20242 | GetStructuredCloneReadInfoFromStatement({auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20243 | &stmt, 1, 0, mDatabase->GetFileManager()));{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20244 | |||||
| 20245 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20246 | IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20247 | return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20248 | }{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20249 | |||||
| 20250 | QM_TRY(OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20251 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20252 | |||||
| 20253 | return Ok{};{auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }} | ||||
| 20254 | })){auto tryResult1527 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())" , tryResult1525.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20243, mozilla::dom::quota::Severity::Error); return tryResult1525 .propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20246 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move (cloneInfo)))); static_assert(std::is_empty_v<typename decltype (tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20251, 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(tryResult1527 )::ok_type>); if ((__builtin_expect(!!(tryResult1527.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { auto tryResult1525 = (GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1525.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 1, 0, mDatabase->GetFileManager())\", tryResult1525.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20243, mozilla::dom::quota::Severity::Error); return tryResult1525.propagateErr(); } auto cloneInfo = tryResult1525.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20246); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1526 = (OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1526)::ok_type>); if ((__builtin_expect(!!(tryResult1526.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1526.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mResponse.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20251, 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{}; })" , tryResult1527.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20254, mozilla::dom::quota::Severity::Error); return tryResult1527 .propagateErr(); }}; | ||||
| 20255 | |||||
| 20256 | 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", 20256 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 20256); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20257 | |||||
| 20258 | return NS_OK; | ||||
| 20259 | } | ||||
| 20260 | |||||
| 20261 | // XXX This is more or less a duplicate of ObjectStoreGetRequestOp::GetResponse | ||||
| 20262 | void IndexGetRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 20263 | size_t* aResponseSize) { | ||||
| 20264 | 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", 20264 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 20264); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20265 | |||||
| 20266 | auto convertResponse = [this](StructuredCloneReadInfoParent&& info) | ||||
| 20267 | -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> { | ||||
| 20268 | SerializedStructuredCloneReadInfo result; | ||||
| 20269 | |||||
| 20270 | result.data().data = info.ReleaseData(); | ||||
| 20271 | |||||
| 20272 | QM_TRY_UNWRAP(result.files(), SerializeStructuredCloneFiles(auto tryResult1528 = (SerializeStructuredCloneFiles( mDatabase , info.Files(), false)); if ((__builtin_expect(!!(tryResult1528 .isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20273, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); } result.files() = tryResult1528.unwrap(); | ||||
| 20273 | mDatabase, info.Files(), false))auto tryResult1528 = (SerializeStructuredCloneFiles( mDatabase , info.Files(), false)); if ((__builtin_expect(!!(tryResult1528 .isErr()), 0))) { mozilla::dom::quota::HandleError("SerializeStructuredCloneFiles( mDatabase, info.Files(), false)" , tryResult1528.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20273, mozilla::dom::quota::Severity::Error); return tryResult1528 .propagateErr(); } result.files() = tryResult1528.unwrap();; | ||||
| 20274 | |||||
| 20275 | return result; | ||||
| 20276 | }; | ||||
| 20277 | |||||
| 20278 | if (mGetAll) { | ||||
| 20279 | aResponse = IndexGetAllResponse(); | ||||
| 20280 | *aResponseSize = 0; | ||||
| 20281 | |||||
| 20282 | if (!mResponse.IsEmpty()) { | ||||
| 20283 | QM_TRY_UNWRAP(aResponse.get_IndexGetAllResponse().cloneInfos(),auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20284 | TransformIntoNewArrayAbortOnErr(auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20285 | std::make_move_iterator(mResponse.begin()),auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20286 | std::make_move_iterator(mResponse.end()),auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20287 | [convertResponse,auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20288 | &aResponseSize](StructuredCloneReadInfoParent&& info) {auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20289 | *aResponseSize += info.Size();auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20290 | return convertResponse(std::move(info));auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20291 | },auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20292 | fallible),auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20293 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20294 | aResponse = TransactionOpResult(result);auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap(); | ||||
| 20295 | })auto tryResult1529 = (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(!!(tryResult1529 .isErr()), 0))) { auto tryTempError = tryResult1529.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" , 20295, 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() = tryResult1529.unwrap();; | ||||
| 20296 | } | ||||
| 20297 | |||||
| 20298 | return; | ||||
| 20299 | } | ||||
| 20300 | |||||
| 20301 | aResponse = IndexGetResponse(); | ||||
| 20302 | *aResponseSize = 0; | ||||
| 20303 | |||||
| 20304 | if (!mResponse.IsEmpty()) { | ||||
| 20305 | SerializedStructuredCloneReadInfo& serializedInfo = | ||||
| 20306 | aResponse.get_IndexGetResponse().cloneInfo(); | ||||
| 20307 | |||||
| 20308 | *aResponseSize += mResponse[0].Size(); | ||||
| 20309 | QM_TRY_UNWRAP(serializedInfo, convertResponse(std::move(mResponse[0])),auto tryResult1530 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20312 , mozilla::dom::quota::Severity::Error); [&aResponse](const nsresult result) { aResponse = TransactionOpResult(result); } (tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1530.unwrap (); | ||||
| 20310 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1530 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20312 , mozilla::dom::quota::Severity::Error); [&aResponse](const nsresult result) { aResponse = TransactionOpResult(result); } (tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1530.unwrap (); | ||||
| 20311 | aResponse = TransactionOpResult(result);auto tryResult1530 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20312 , mozilla::dom::quota::Severity::Error); [&aResponse](const nsresult result) { aResponse = TransactionOpResult(result); } (tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1530.unwrap (); | ||||
| 20312 | })auto tryResult1530 = (convertResponse(std::move(mResponse[0]) )); if ((__builtin_expect(!!(tryResult1530.isErr()), 0))) { auto tryTempError = tryResult1530.unwrapErr(); mozilla::dom::quota ::HandleError("convertResponse(std::move(mResponse[0]))", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20312 , mozilla::dom::quota::Severity::Error); [&aResponse](const nsresult result) { aResponse = TransactionOpResult(result); } (tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } serializedInfo = tryResult1530.unwrap ();; | ||||
| 20313 | } | ||||
| 20314 | } | ||||
| 20315 | |||||
| 20316 | nsCString IndexGetKeyRequestOp::MakeQuery() const { | ||||
| 20317 | const auto indexTable = mMetadata->mCommonMetadata.unique() | ||||
| 20318 | ? "unique_index_data "_ns | ||||
| 20319 | : "index_data "_ns; | ||||
| 20320 | |||||
| 20321 | if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) { | ||||
| 20322 | // For nextunique/prevunique on a non-unique index, deduplicate by index key | ||||
| 20323 | // by selecting only the record with the minimum primary key for each index | ||||
| 20324 | // key. unique_index_data (mMetadata->mCommonMetadata.unique()) already | ||||
| 20325 | // enforces one record per index key, so this is only needed for | ||||
| 20326 | // index_data. | ||||
| 20327 | // Note we always use MIN regardless of the direction because we always | ||||
| 20328 | // walk the items in the same order: the difference is that prevunique | ||||
| 20329 | // prepend record while nextunique append it. See step 3 at | ||||
| 20330 | // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index | ||||
| 20331 | // nextunique: "append |rangeRecords[i]| to records." | ||||
| 20332 | // prevunique: "prepend |rangeRecords[i]| to records." | ||||
| 20333 | return "SELECT MIN(object_data_key) " | ||||
| 20334 | "FROM "_ns + | ||||
| 20335 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | ||||
| 20336 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, | ||||
| 20337 | kColumnNameValue) + | ||||
| 20338 | " GROUP BY value"_ns + | ||||
| 20339 | MakeDirectionClause(mDirection, kColumnNameValue) + | ||||
| 20340 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20341 | } | ||||
| 20342 | return "SELECT object_data_key " | ||||
| 20343 | "FROM "_ns + | ||||
| 20344 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | ||||
| 20345 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + | ||||
| 20346 | MakeDirectionClause(mDirection, kColumnNameValue) + | ||||
| 20347 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20348 | } | ||||
| 20349 | |||||
| 20350 | IndexGetKeyRequestOp::IndexGetKeyRequestOp( | ||||
| 20351 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 20352 | const RequestParams& aParams, bool aGetAll) | ||||
| 20353 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | ||||
| 20354 | mOptionalKeyRange( | ||||
| 20355 | aGetAll | ||||
| 20356 | ? aParams.get_IndexGetAllKeysParams().options().optionalKeyRange() | ||||
| 20357 | : Some(aParams.get_IndexGetKeyParams().keyRange())), | ||||
| 20358 | mLimit(aGetAll ? aParams.get_IndexGetAllKeysParams().options().limit() | ||||
| 20359 | : 1), | ||||
| 20360 | mDirection(aGetAll | ||||
| 20361 | ? aParams.get_IndexGetAllKeysParams().options().direction() | ||||
| 20362 | : IDBCursorDirection::Next), | ||||
| 20363 | mGetAll(aGetAll) { | ||||
| 20364 | 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", 20365 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" ")"); do { MOZ_CrashSequence(__null, 20365); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 20365 | 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", 20365 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetKeyParams || aParams.type() == RequestParams::TIndexGetAllKeysParams" ")"); do { MOZ_CrashSequence(__null, 20365); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20366 | 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", 20366 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 20366); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20367 | } | ||||
| 20368 | |||||
| 20369 | nsresult IndexGetKeyRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 20370 | 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" , 20370); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20370); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20371 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20372 | 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", 20372 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOptionalKeyRange.isSome()" ")"); do { MOZ_CrashSequence(__null, 20372); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20373 | 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" , 20373); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mLimit == 1" ")"); do { MOZ_CrashSequence(__null, 20373); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20374 | |||||
| 20375 | AUTO_PROFILER_LABEL("IndexGetKeyRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20375( "IndexGetKeyRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20376 | |||||
| 20377 | const bool hasKeyRange = mOptionalKeyRange.isSome(); | ||||
| 20378 | |||||
| 20379 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1531 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20380, mozilla::dom::quota::Severity::Error); return tryResult1531 .propagateErr(); } const auto& stmt = tryResult1531.inspect (); | ||||
| 20380 | aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1531 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1531.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1531.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20380, mozilla::dom::quota::Severity::Error); return tryResult1531 .propagateErr(); } const auto& stmt = tryResult1531.inspect ();; | ||||
| 20381 | |||||
| 20382 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1532 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect (!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20383, mozilla::dom::quota::Severity::Error); return tryResult1532 .propagateErr(); }} | ||||
| 20383 | mMetadata->mCommonMetadata.id()))){auto tryResult1532 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1532)::ok_type>); if ((__builtin_expect (!!(tryResult1532.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1532.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20383, mozilla::dom::quota::Severity::Error); return tryResult1532 .propagateErr(); }}; | ||||
| 20384 | |||||
| 20385 | if (hasKeyRange) { | ||||
| 20386 | QM_TRY(MOZ_TO_RESULT({auto tryResult1533 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect (!!(tryResult1533.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1533.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20387, mozilla::dom::quota::Severity::Error); return tryResult1533 .propagateErr(); }} | ||||
| 20387 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1533 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1533)::ok_type>); if ((__builtin_expect (!!(tryResult1533.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1533.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20387, mozilla::dom::quota::Severity::Error); return tryResult1533 .propagateErr(); }}; | ||||
| 20388 | } | ||||
| 20389 | |||||
| 20390 | QM_TRY(CollectWhileHasResult({auto tryResult1536 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20393 , 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 tryResult1535 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult1535 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect (!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20393, 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 tryResult1535 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1535.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20394, mozilla::dom::quota::Severity::Error); return tryResult1535.propagateErr(); }}; return Ok{}; })" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20397, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }} | ||||
| 20391 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1536 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20393 , 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 tryResult1535 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult1535 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect (!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20393, 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 tryResult1535 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1535.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20394, mozilla::dom::quota::Severity::Error); return tryResult1535.propagateErr(); }}; return Ok{}; })" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20397, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }} | ||||
| 20392 | Key* const key = mResponse.AppendElement(fallible);{auto tryResult1536 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20393 , 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 tryResult1535 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult1535 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect (!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20393, 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 tryResult1535 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1535.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20394, mozilla::dom::quota::Severity::Error); return tryResult1535.propagateErr(); }}; return Ok{}; })" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20397, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }} | ||||
| 20393 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1536 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20393 , 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 tryResult1535 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult1535 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect (!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20393, 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 tryResult1535 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1535.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20394, mozilla::dom::quota::Severity::Error); return tryResult1535.propagateErr(); }}; return Ok{}; })" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20397, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }} | ||||
| 20394 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1536 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20393 , 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 tryResult1535 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult1535 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect (!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20393, 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 tryResult1535 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1535.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20394, mozilla::dom::quota::Severity::Error); return tryResult1535.propagateErr(); }}; return Ok{}; })" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20397, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }} | ||||
| 20395 | |||||
| 20396 | return Ok{};{auto tryResult1536 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20393 , 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 tryResult1535 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult1535 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect (!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20393, 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 tryResult1535 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1535.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20394, mozilla::dom::quota::Severity::Error); return tryResult1535.propagateErr(); }}; return Ok{}; })" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20397, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }} | ||||
| 20397 | })){auto tryResult1536 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20393 , 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 tryResult1535 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1535.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20394, mozilla::dom::quota::Severity::Error); return tryResult1535 .propagateErr(); }}; return Ok{}; })); static_assert(std::is_empty_v <typename decltype(tryResult1536)::ok_type>); if ((__builtin_expect (!!(tryResult1536.isErr()), 0))) { mozilla::dom::quota::HandleError ("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mResponse.AppendElement(fallible); {auto tryResult1534 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1534)::ok_type>); if ((__builtin_expect(!!(tryResult1534.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1534.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20393, 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 tryResult1535 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1535)::ok_type>); if ((__builtin_expect(!!(tryResult1535.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1535.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20394, mozilla::dom::quota::Severity::Error); return tryResult1535.propagateErr(); }}; return Ok{}; })" , tryResult1536.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20397, mozilla::dom::quota::Severity::Error); return tryResult1536 .propagateErr(); }}; | ||||
| 20398 | |||||
| 20399 | 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", 20399 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 20399); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20400 | |||||
| 20401 | return NS_OK; | ||||
| 20402 | } | ||||
| 20403 | |||||
| 20404 | void IndexGetKeyRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 20405 | size_t* aResponseSize) { | ||||
| 20406 | 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", 20406 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.Length() <= 1" ")"); do { MOZ_CrashSequence(__null, 20406); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20407 | |||||
| 20408 | if (mGetAll) { | ||||
| 20409 | aResponse = IndexGetAllKeysResponse(); | ||||
| 20410 | *aResponseSize = std::accumulate(mResponse.begin(), mResponse.end(), 0u, | ||||
| 20411 | [](size_t old, const auto& entry) { | ||||
| 20412 | return old + entry.GetBuffer().Length(); | ||||
| 20413 | }); | ||||
| 20414 | |||||
| 20415 | aResponse.get_IndexGetAllKeysResponse().keys() = std::move(mResponse); | ||||
| 20416 | |||||
| 20417 | return; | ||||
| 20418 | } | ||||
| 20419 | |||||
| 20420 | aResponse = IndexGetKeyResponse(); | ||||
| 20421 | *aResponseSize = 0; | ||||
| 20422 | |||||
| 20423 | if (!mResponse.IsEmpty()) { | ||||
| 20424 | *aResponseSize = mResponse[0].GetBuffer().Length(); | ||||
| 20425 | aResponse.get_IndexGetKeyResponse().key() = std::move(mResponse[0]); | ||||
| 20426 | } | ||||
| 20427 | } | ||||
| 20428 | |||||
| 20429 | ObjectStoreGetAllRecordsRequestOp::ObjectStoreGetAllRecordsRequestOp( | ||||
| 20430 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 20431 | const RequestParams& aParams) | ||||
| 20432 | : NormalTransactionOp(std::move(aTransaction), aRequestId), | ||||
| 20433 | mObjectStoreId( | ||||
| 20434 | aParams.get_ObjectStoreGetAllRecordsParams().objectStoreId()), | ||||
| 20435 | mDatabase(Transaction().GetDatabasePtr()), | ||||
| 20436 | mOptionalKeyRange(aParams.get_ObjectStoreGetAllRecordsParams() | ||||
| 20437 | .options() | ||||
| 20438 | .optionalKeyRange()), | ||||
| 20439 | mBackgroundParent(Transaction().GetBackgroundParent()), | ||||
| 20440 | mLimit(aParams.get_ObjectStoreGetAllRecordsParams().options().limit()), | ||||
| 20441 | mDirection( | ||||
| 20442 | aParams.get_ObjectStoreGetAllRecordsParams().options().direction()) { | ||||
| 20443 | 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", 20443 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TObjectStoreGetAllRecordsParams" ")"); do { MOZ_CrashSequence(__null, 20443); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20444 | 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", 20444 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mObjectStoreId" ")" ); do { MOZ_CrashSequence(__null, 20444); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20445 | 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" , 20445); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 20445); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20446 | 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", 20446 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 20446); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20447 | } | ||||
| 20448 | |||||
| 20449 | nsresult ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork( | ||||
| 20450 | DatabaseConnection* aConnection) { | ||||
| 20451 | 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" , 20451); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20451); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20452 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20453 | |||||
| 20454 | AUTO_PROFILER_LABEL("ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20454( "ObjectStoreGetAllRecordsRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20455 | |||||
| 20456 | const nsCString query = | ||||
| 20457 | "SELECT key, file_ids, data " | ||||
| 20458 | "FROM object_data " | ||||
| 20459 | "WHERE object_store_id = :"_ns + | ||||
| 20460 | kStmtParamNameObjectStoreId + | ||||
| 20461 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameKey) + | ||||
| 20462 | MakeDirectionClause(mDirection) + | ||||
| 20463 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20464 | |||||
| 20465 | QM_TRY_INSPECT(const auto& stmt, aConnection->BorrowCachedStatement(query))auto tryResult1537 = (aConnection->BorrowCachedStatement(query )); if ((__builtin_expect(!!(tryResult1537.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(query)" , tryResult1537.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20465, mozilla::dom::quota::Severity::Error); return tryResult1537 .propagateErr(); } const auto& stmt = tryResult1537.inspect ();; | ||||
| 20466 | |||||
| 20467 | QM_TRY(MOZ_TO_RESULT({auto tryResult1538 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20468, mozilla::dom::quota::Severity::Error); return tryResult1538 .propagateErr(); }} | ||||
| 20468 | stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))){auto tryResult1538 = (ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId , mObjectStoreId))); static_assert(std::is_empty_v<typename decltype(tryResult1538)::ok_type>); if ((__builtin_expect (!!(tryResult1538.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameObjectStoreId, mObjectStoreId))" , tryResult1538.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20468, mozilla::dom::quota::Severity::Error); return tryResult1538 .propagateErr(); }}; | ||||
| 20469 | |||||
| 20470 | if (mOptionalKeyRange.isSome()) { | ||||
| 20471 | QM_TRY(MOZ_TO_RESULT({auto tryResult1539 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1539)::ok_type>); if ((__builtin_expect (!!(tryResult1539.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20472, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }} | ||||
| 20472 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1539 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1539)::ok_type>); if ((__builtin_expect (!!(tryResult1539.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1539.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20472, mozilla::dom::quota::Severity::Error); return tryResult1539 .propagateErr(); }}; | ||||
| 20473 | } | ||||
| 20474 | |||||
| 20475 | QM_TRY(CollectWhileHasResult({auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20476 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20477 | Key* const key = mKeys.AppendElement(fallible);{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20478 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20479 | |||||
| 20480 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20481 | |||||
| 20482 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20483 | GetStructuredCloneReadInfoFromStatement({auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20484 | &stmt, 2, 1, mDatabase->GetFileManager()));{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20485 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20486 | // Bug 1942995: not implemented yet{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20487 | IDB_WARNING("Preprocessing for getAllRecords not yet implemented!");{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20488 | return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20489 | }{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20490 | QM_TRY(OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20491 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20492 | |||||
| 20493 | return Ok{};{auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }} | ||||
| 20494 | })){auto tryResult1544 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20478 , 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 tryResult1541 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1541.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20480, mozilla::dom::quota::Severity::Error); return tryResult1541 .propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())" , tryResult1542.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20484, mozilla::dom::quota::Severity::Error); return tryResult1542 .propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for getAllRecords not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20487 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect (!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20491, 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(tryResult1544 )::ok_type>); if ((__builtin_expect(!!(tryResult1544.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1540 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1540)::ok_type>); if ((__builtin_expect(!!(tryResult1540.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1540.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20478, 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 tryResult1541 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1541)::ok_type>); if ((__builtin_expect(!!(tryResult1541.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1541.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20480, mozilla::dom::quota::Severity::Error); return tryResult1541.propagateErr(); }}; auto tryResult1542 = (GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1542.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 2, 1, mDatabase->GetFileManager())\", tryResult1542.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20484, mozilla::dom::quota::Severity::Error); return tryResult1542.propagateErr(); } auto cloneInfo = tryResult1542.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for getAllRecords not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20487); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1543 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1543)::ok_type>); if ((__builtin_expect(!!(tryResult1543.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1543.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20491, 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{}; })" , tryResult1544.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20494, mozilla::dom::quota::Severity::Error); return tryResult1544 .propagateErr(); }}; | ||||
| 20495 | |||||
| 20496 | return NS_OK; | ||||
| 20497 | } | ||||
| 20498 | |||||
| 20499 | void ObjectStoreGetAllRecordsRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 20500 | size_t* aResponseSize) { | ||||
| 20501 | 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", 20501 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mCloneInfos.Length()" ")"); do { MOZ_CrashSequence(__null, 20501); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20502 | 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", 20502 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() <= mLimit" ")"); do { MOZ_CrashSequence(__null, 20502); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20503 | |||||
| 20504 | aResponse = ObjectStoreGetAllRecordsResponse(); | ||||
| 20505 | *aResponseSize = 0; | ||||
| 20506 | |||||
| 20507 | if (mKeys.IsEmpty()) { | ||||
| 20508 | return; | ||||
| 20509 | } | ||||
| 20510 | |||||
| 20511 | auto& resp = aResponse.get_ObjectStoreGetAllRecordsResponse(); | ||||
| 20512 | |||||
| 20513 | for (const auto& key : mKeys) { | ||||
| 20514 | *aResponseSize += key.GetBuffer().Length(); | ||||
| 20515 | } | ||||
| 20516 | resp.keys() = std::move(mKeys); | ||||
| 20517 | |||||
| 20518 | QM_TRY_UNWRAP(auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20519 | resp.cloneInfos(),auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20520 | TransformIntoNewArrayAbortOnErr(auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20521 | std::make_move_iterator(mCloneInfos.begin()),auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20522 | std::make_move_iterator(mCloneInfos.end()),auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20523 | [this, &aResponseSize](StructuredCloneReadInfoParent&& info)auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20524 | -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20525 | *aResponseSize += info.Size();auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20526 | return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20527 | mDatabase, std::move(info));auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20528 | },auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20529 | fallible),auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20530 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20531 | aResponse = TransactionOpResult(result);auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap(); | ||||
| 20532 | })auto tryResult1545 = (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(!!(tryResult1545 .isErr()), 0))) { auto tryTempError = tryResult1545.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" , 20532, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1545 .unwrap();; | ||||
| 20533 | } | ||||
| 20534 | |||||
| 20535 | IndexGetAllRecordsRequestOp::IndexGetAllRecordsRequestOp( | ||||
| 20536 | SafeRefPtr<TransactionBase> aTransaction, const int64_t aRequestId, | ||||
| 20537 | const RequestParams& aParams) | ||||
| 20538 | : IndexRequestOpBase(std::move(aTransaction), aRequestId, aParams), | ||||
| 20539 | mDatabase(Transaction().GetDatabasePtr()), | ||||
| 20540 | mOptionalKeyRange( | ||||
| 20541 | aParams.get_IndexGetAllRecordsParams().options().optionalKeyRange()), | ||||
| 20542 | mBackgroundParent(Transaction().GetBackgroundParent()), | ||||
| 20543 | mLimit(aParams.get_IndexGetAllRecordsParams().options().limit()), | ||||
| 20544 | mDirection(aParams.get_IndexGetAllRecordsParams().options().direction()) { | ||||
| 20545 | 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", 20545) ; AnnotateMozCrashReason("MOZ_ASSERT" "(" "aParams.type() == RequestParams::TIndexGetAllRecordsParams" ")"); do { MOZ_CrashSequence(__null, 20545); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20546 | 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" , 20546); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mDatabase" ")"); do { MOZ_CrashSequence(__null, 20546); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20547 | 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", 20547 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mBackgroundParent" ")"); do { MOZ_CrashSequence(__null, 20547); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20548 | } | ||||
| 20549 | |||||
| 20550 | nsCString IndexGetAllRecordsRequestOp::MakeQuery() const { | ||||
| 20551 | const auto indexTable = mMetadata->mCommonMetadata.unique() | ||||
| 20552 | ? "unique_index_data "_ns | ||||
| 20553 | : "index_data "_ns; | ||||
| 20554 | |||||
| 20555 | if (IsUnique(mDirection) && !mMetadata->mCommonMetadata.unique()) { | ||||
| 20556 | // For nextunique/prevunique on a non-unique index, deduplicate by index | ||||
| 20557 | // key by selecting only the record with the minimum primary key for each | ||||
| 20558 | // index key. | ||||
| 20559 | // Note we always use MIN regardless of the direction because we always | ||||
| 20560 | // walk the items in the same order: the difference is that prevunique | ||||
| 20561 | // prepend record while nextunique append it. See step 3 at | ||||
| 20562 | // https://w3c.github.io/IndexedDB/#retrieve-multiple-items-from-an-index | ||||
| 20563 | // nextunique: "append |rangeRecords[i]| to records." | ||||
| 20564 | // prevunique: "prepend |rangeRecords[i]| to records." | ||||
| 20565 | return "SELECT index_table.value, object_data.key, " | ||||
| 20566 | "object_data.file_ids, object_data.data " | ||||
| 20567 | "FROM object_data " | ||||
| 20568 | "INNER JOIN (" | ||||
| 20569 | "SELECT object_store_id, MIN(object_data_key) AS object_data_key, " | ||||
| 20570 | "value " | ||||
| 20571 | "FROM "_ns + | ||||
| 20572 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + | ||||
| 20573 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, | ||||
| 20574 | kColumnNameValue) + | ||||
| 20575 | " GROUP BY value, object_store_id) AS index_table " | ||||
| 20576 | "ON object_data.object_store_id = " | ||||
| 20577 | "index_table.object_store_id " | ||||
| 20578 | "AND object_data.key = " | ||||
| 20579 | "index_table.object_data_key"_ns + | ||||
| 20580 | MakeDirectionClause(mDirection, "index_table.value"_ns) + | ||||
| 20581 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20582 | } | ||||
| 20583 | return "SELECT index_table.value, object_data.key, " | ||||
| 20584 | "object_data.file_ids, object_data.data " | ||||
| 20585 | "FROM object_data " | ||||
| 20586 | "INNER JOIN "_ns + | ||||
| 20587 | indexTable + | ||||
| 20588 | "AS index_table " | ||||
| 20589 | "ON object_data.object_store_id = " | ||||
| 20590 | "index_table.object_store_id " | ||||
| 20591 | "AND object_data.key = " | ||||
| 20592 | "index_table.object_data_key " | ||||
| 20593 | "WHERE index_id = :"_ns + | ||||
| 20594 | kStmtParamNameIndexId + | ||||
| 20595 | MaybeGetBindingClauseForKeyRange(mOptionalKeyRange, kColumnNameValue) + | ||||
| 20596 | MakeDirectionClause(mDirection, "index_table.value"_ns) + | ||||
| 20597 | (mLimit ? " LIMIT "_ns + IntToCString(mLimit) : EmptyCString()); | ||||
| 20598 | } | ||||
| 20599 | |||||
| 20600 | nsresult IndexGetAllRecordsRequestOp::DoDatabaseWork( | ||||
| 20601 | DatabaseConnection* aConnection) { | ||||
| 20602 | 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" , 20602); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20602); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20603 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20604 | |||||
| 20605 | AUTO_PROFILER_LABEL("IndexGetAllRecordsRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20605( "IndexGetAllRecordsRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20606 | |||||
| 20607 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1546 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20608, mozilla::dom::quota::Severity::Error); return tryResult1546 .propagateErr(); } const auto& stmt = tryResult1546.inspect (); | ||||
| 20608 | aConnection->BorrowCachedStatement(MakeQuery()))auto tryResult1546 = (aConnection->BorrowCachedStatement(MakeQuery ())); if ((__builtin_expect(!!(tryResult1546.isErr()), 0))) { mozilla::dom::quota::HandleError("aConnection->BorrowCachedStatement(MakeQuery())" , tryResult1546.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20608, mozilla::dom::quota::Severity::Error); return tryResult1546 .propagateErr(); } const auto& stmt = tryResult1546.inspect ();; | ||||
| 20609 | |||||
| 20610 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameIndexId,{auto tryResult1547 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1547)::ok_type>); if ((__builtin_expect (!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20611, mozilla::dom::quota::Severity::Error); return tryResult1547 .propagateErr(); }} | ||||
| 20611 | mMetadata->mCommonMetadata.id()))){auto tryResult1547 = (ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId , mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v <typename decltype(tryResult1547)::ok_type>); if ((__builtin_expect (!!(tryResult1547.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameIndexId, mMetadata->mCommonMetadata.id()))" , tryResult1547.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20611, mozilla::dom::quota::Severity::Error); return tryResult1547 .propagateErr(); }}; | ||||
| 20612 | |||||
| 20613 | if (mOptionalKeyRange.isSome()) { | ||||
| 20614 | QM_TRY(MOZ_TO_RESULT({auto tryResult1548 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1548)::ok_type>); if ((__builtin_expect (!!(tryResult1548.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1548.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20615, mozilla::dom::quota::Severity::Error); return tryResult1548 .propagateErr(); }} | ||||
| 20615 | BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))){auto tryResult1548 = (ToResult(BindKeyRangeToStatement(mOptionalKeyRange .ref(), &*stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1548)::ok_type>); if ((__builtin_expect (!!(tryResult1548.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(BindKeyRangeToStatement(mOptionalKeyRange.ref(), &*stmt))" , tryResult1548.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20615, mozilla::dom::quota::Severity::Error); return tryResult1548 .propagateErr(); }}; | ||||
| 20616 | } | ||||
| 20617 | |||||
| 20618 | QM_TRY(CollectWhileHasResult({auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20619 | *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> {{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20620 | Key* const key = mKeys.AppendElement(fallible);{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20621 | QM_TRY(OkIf(key), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20622 | |||||
| 20623 | QM_TRY(MOZ_TO_RESULT(key->SetFromStatement(&stmt, 0)));{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20624 | |||||
| 20625 | Key* const primaryKey = mPrimaryKeys.AppendElement(fallible);{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20626 | QM_TRY(OkIf(primaryKey), Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20627 | |||||
| 20628 | QM_TRY(MOZ_TO_RESULT(primaryKey->SetFromStatement(&stmt, 1)));{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20629 | |||||
| 20630 | QM_TRY_UNWRAP(auto cloneInfo,{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20631 | GetStructuredCloneReadInfoFromStatement({auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20632 | &stmt, 3, 2, mDatabase->GetFileManager()));{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20633 | |||||
| 20634 | if (cloneInfo.HasPreprocessInfo()) {{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20635 | // Bug 1942995: not implemented yet{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20636 | IDB_WARNING("Preprocessing for indexes not yet implemented!");{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20637 | return Err(NS_ERROR_NOT_IMPLEMENTED);{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20638 | }{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20639 | |||||
| 20640 | QM_TRY(OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo))),{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20641 | Err(NS_ERROR_OUT_OF_MEMORY));{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20642 | |||||
| 20643 | return Ok{};{auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }} | ||||
| 20644 | })){auto tryResult1555 = (CollectWhileHasResult( *stmt, [this](auto & stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype (tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549 .isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549 .unwrapErr(); mozilla::dom::quota::HandleError("OkIf(key)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20621 , 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 tryResult1550 = (ToResult(key->SetFromStatement (&stmt, 0))); static_assert(std::is_empty_v<typename decltype (tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550 .isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(key->SetFromStatement(&stmt, 0))" , tryResult1550.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20623, mozilla::dom::quota::Severity::Error); return tryResult1550 .propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement (fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert (std::is_empty_v<typename decltype(tryResult1551)::ok_type >); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr (); mozilla::dom::quota::HandleError("OkIf(primaryKey)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20626 , 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 tryResult1552 = (ToResult (primaryKey->SetFromStatement(&stmt, 1))); static_assert (std::is_empty_v<typename decltype(tryResult1552)::ok_type >); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(primaryKey->SetFromStatement(&stmt, 1))" , tryResult1552.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20628, mozilla::dom::quota::Severity::Error); return tryResult1552 .propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement ( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect (!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError ("GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())" , tryResult1553.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20632, mozilla::dom::quota::Severity::Error); return tryResult1553 .propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s("Preprocessing for indexes not yet implemented!" ); mozilla::dom::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 20636 ); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std:: move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect (!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20641, 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(tryResult1555 )::ok_type>); if ((__builtin_expect(!!(tryResult1555.isErr ()), 0))) { mozilla::dom::quota::HandleError("CollectWhileHasResult( *stmt, [this](auto& stmt) mutable -> mozilla::Result<Ok, nsresult> { Key* const key = mKeys.AppendElement(fallible); {auto tryResult1549 = (OkIf(key)); static_assert(std::is_empty_v<typename decltype(tryResult1549)::ok_type>); if ((__builtin_expect(!!(tryResult1549.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1549.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(key)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20621, 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 tryResult1550 = (ToResult(key->SetFromStatement(&stmt, 0))); static_assert(std::is_empty_v<typename decltype(tryResult1550)::ok_type>); if ((__builtin_expect(!!(tryResult1550.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(key->SetFromStatement(&stmt, 0))\", tryResult1550.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20623, mozilla::dom::quota::Severity::Error); return tryResult1550.propagateErr(); }}; Key* const primaryKey = mPrimaryKeys.AppendElement(fallible); {auto tryResult1551 = (OkIf(primaryKey)); static_assert(std::is_empty_v<typename decltype(tryResult1551)::ok_type>); if ((__builtin_expect(!!(tryResult1551.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1551.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(primaryKey)\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20626, 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 tryResult1552 = (ToResult(primaryKey->SetFromStatement(&stmt, 1))); static_assert(std::is_empty_v<typename decltype(tryResult1552)::ok_type>); if ((__builtin_expect(!!(tryResult1552.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(primaryKey->SetFromStatement(&stmt, 1))\", tryResult1552.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20628, mozilla::dom::quota::Severity::Error); return tryResult1552.propagateErr(); }}; auto tryResult1553 = (GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())); if ((__builtin_expect(!!(tryResult1553.isErr()), 0))) { mozilla::dom::quota::HandleError(\"GetStructuredCloneReadInfoFromStatement( &stmt, 3, 2, mDatabase->GetFileManager())\", tryResult1553.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20632, mozilla::dom::quota::Severity::Error); return tryResult1553.propagateErr(); } auto cloneInfo = tryResult1553.unwrap();; if (cloneInfo.HasPreprocessInfo()) { do { nsPrintfCString s(\"Preprocessing for indexes not yet implemented!\"); mozilla::dom::indexedDB::ReportInternalError(\"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20636); } while (0); return Err(NS_ERROR_NOT_IMPLEMENTED); } {auto tryResult1554 = (OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))); static_assert(std::is_empty_v<typename decltype(tryResult1554)::ok_type>); if ((__builtin_expect(!!(tryResult1554.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1554.unwrapErr(); mozilla::dom::quota::HandleError(\"OkIf(mCloneInfos.EmplaceBack(fallible, std::move(cloneInfo)))\", tryTempError, \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20641, 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{}; })" , tryResult1555.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20644, mozilla::dom::quota::Severity::Error); return tryResult1555 .propagateErr(); }}; | ||||
| 20645 | |||||
| 20646 | return NS_OK; | ||||
| 20647 | } | ||||
| 20648 | |||||
| 20649 | void IndexGetAllRecordsRequestOp::GetResponse(RequestResponse& aResponse, | ||||
| 20650 | size_t* aResponseSize) { | ||||
| 20651 | 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", 20651 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mPrimaryKeys.Length()" ")"); do { MOZ_CrashSequence(__null, 20651); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20652 | 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", 20652 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() == mCloneInfos.Length()" ")"); do { MOZ_CrashSequence(__null, 20652); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20653 | 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", 20653 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mKeys.Length() <= mLimit" ")"); do { MOZ_CrashSequence(__null, 20653); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20654 | |||||
| 20655 | aResponse = IndexGetAllRecordsResponse(); | ||||
| 20656 | *aResponseSize = 0; | ||||
| 20657 | |||||
| 20658 | if (mKeys.IsEmpty()) { | ||||
| 20659 | return; | ||||
| 20660 | } | ||||
| 20661 | |||||
| 20662 | auto& resp = aResponse.get_IndexGetAllRecordsResponse(); | ||||
| 20663 | |||||
| 20664 | for (size_t i = 0; i < mKeys.Length(); i++) { | ||||
| 20665 | *aResponseSize += | ||||
| 20666 | mKeys[i].GetBuffer().Length() + mPrimaryKeys[i].GetBuffer().Length(); | ||||
| 20667 | } | ||||
| 20668 | resp.keys() = std::move(mKeys); | ||||
| 20669 | resp.primaryKeys() = std::move(mPrimaryKeys); | ||||
| 20670 | |||||
| 20671 | QM_TRY_UNWRAP(auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20672 | resp.cloneInfos(),auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20673 | TransformIntoNewArrayAbortOnErr(auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20674 | std::make_move_iterator(mCloneInfos.begin()),auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20675 | std::make_move_iterator(mCloneInfos.end()),auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20676 | [&database = mDatabase,auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20677 | &aResponseSize](StructuredCloneReadInfoParent&& info)auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20678 | -> mozilla::Result<SerializedStructuredCloneReadInfo, nsresult> {auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20679 | *aResponseSize += info.Size();auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20680 | return ConvertResponse<SerializedStructuredCloneReadInfo>(auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20681 | database, std::move(info));auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20682 | },auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20683 | fallible),auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20684 | QM_VOID, [&aResponse](const nsresult result) {auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20685 | aResponse = TransactionOpResult(result);auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap(); | ||||
| 20686 | })auto tryResult1556 = (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(!!(tryResult1556 .isErr()), 0))) { auto tryTempError = tryResult1556.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" , 20686, mozilla::dom::quota::Severity::Error); [&aResponse ](const nsresult result) { aResponse = TransactionOpResult(result ); }(tryTempError); [[maybe_unused]] constexpr const auto& func = __func__; return ; } resp.cloneInfos() = tryResult1556 .unwrap();; | ||||
| 20687 | } | ||||
| 20688 | |||||
| 20689 | nsresult IndexCountRequestOp::DoDatabaseWork(DatabaseConnection* aConnection) { | ||||
| 20690 | 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" , 20690); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 20690); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20691 | aConnection->AssertIsOnConnectionThread(); | ||||
| 20692 | |||||
| 20693 | AUTO_PROFILER_LABEL("IndexCountRequestOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject20693( "IndexCountRequestOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 20694 | |||||
| 20695 | const auto indexTable = mMetadata->mCommonMetadata.unique() | ||||
| 20696 | ? "unique_index_data "_ns | ||||
| 20697 | : "index_data "_ns; | ||||
| 20698 | |||||
| 20699 | const auto keyRangeClause = MaybeGetBindingClauseForKeyRange( | ||||
| 20700 | mParams.optionalKeyRange(), kColumnNameValue); | ||||
| 20701 | |||||
| 20702 | QM_TRY_INSPECT(auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20703 | const auto& maybeStmt,auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20704 | aConnection->BorrowAndExecuteSingleStepStatement(auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20705 | "SELECT count(*) "auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20706 | "FROM "_ns +auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20707 | indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId +auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20708 | keyRangeClause,auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20709 | [&self = *this](auto& stmt) -> mozilla::Result<Ok, nsresult> {auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20710 | QM_TRY(MOZ_TO_RESULT(stmt.BindInt64ByName(auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20711 | kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id())));auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20712 | |||||
| 20713 | if (self.mParams.optionalKeyRange().isSome()) {auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20714 | QM_TRY(MOZ_TO_RESULT(BindKeyRangeToStatement(auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20715 | self.mParams.optionalKeyRange().ref(), &stmt)));auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20716 | }auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20717 | |||||
| 20718 | return Ok{};auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect(); | ||||
| 20719 | }))auto tryResult1559 = (aConnection->BorrowAndExecuteSingleStepStatement ( "SELECT count(*) " "FROM "_ns + indexTable + "WHERE index_id = :"_ns + kStmtParamNameIndexId + keyRangeClause, [&self = *this ](auto& stmt) -> mozilla::Result<Ok, nsresult> { {auto tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId , self.mMetadata->mCommonMetadata.id()))); static_assert(std ::is_empty_v<typename decltype(tryResult1557)::ok_type> ); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))" , tryResult1557.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20711, mozilla::dom::quota::Severity::Error); return tryResult1557 .propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome ()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement ( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert (std::is_empty_v<typename decltype(tryResult1558)::ok_type >); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError("ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))" , tryResult1558.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20715, mozilla::dom::quota::Severity::Error); return tryResult1558 .propagateErr(); }}; } return Ok{}; })); if ((__builtin_expect (!!(tryResult1559.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 tryResult1557 = (ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))); static_assert(std::is_empty_v<typename decltype(tryResult1557)::ok_type>); if ((__builtin_expect(!!(tryResult1557.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(stmt.BindInt64ByName( kStmtParamNameIndexId, self.mMetadata->mCommonMetadata.id()))\", tryResult1557.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20711, mozilla::dom::quota::Severity::Error); return tryResult1557.propagateErr(); }}; if (self.mParams.optionalKeyRange().isSome()) { {auto tryResult1558 = (ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))); static_assert(std::is_empty_v<typename decltype(tryResult1558)::ok_type>); if ((__builtin_expect(!!(tryResult1558.isErr()), 0))) { mozilla::dom::quota::HandleError(\"ToResult(BindKeyRangeToStatement( self.mParams.optionalKeyRange().ref(), &stmt))\", tryResult1558.inspectErr(), \"/root/firefox-clang/dom/indexedDB/ActorsParent.cpp\", 20715, mozilla::dom::quota::Severity::Error); return tryResult1558.propagateErr(); }}; } return Ok{}; })" , tryResult1559.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20719, mozilla::dom::quota::Severity::Error); return tryResult1559 .propagateErr(); } const auto& maybeStmt = tryResult1559. inspect();; | ||||
| 20720 | |||||
| 20721 | QM_TRY(OkIf(maybeStmt.isSome()), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR,{auto tryResult1560 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1560)::ok_type >); if ((__builtin_expect(!!(tryResult1560.isErr()), 0))) { auto tryTempError = tryResult1560.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20727, 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", 20725 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20725); __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" , 20726, 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); }} | ||||
| 20722 | [](const auto) {{auto tryResult1560 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1560)::ok_type >); if ((__builtin_expect(!!(tryResult1560.isErr()), 0))) { auto tryTempError = tryResult1560.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20727, 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", 20725 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20725); __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" , 20726, 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); }} | ||||
| 20723 | // XXX Why do we have an assertion here, but not at most other{auto tryResult1560 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1560)::ok_type >); if ((__builtin_expect(!!(tryResult1560.isErr()), 0))) { auto tryTempError = tryResult1560.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20727, 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", 20725 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20725); __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" , 20726, 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); }} | ||||
| 20724 | // places using IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1560 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1560)::ok_type >); if ((__builtin_expect(!!(tryResult1560.isErr()), 0))) { auto tryTempError = tryResult1560.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20727, 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", 20725 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20725); __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" , 20726, 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); }} | ||||
| 20725 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1560 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1560)::ok_type >); if ((__builtin_expect(!!(tryResult1560.isErr()), 0))) { auto tryTempError = tryResult1560.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20727, 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", 20725 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20725); __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" , 20726, 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); }} | ||||
| 20726 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1560 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1560)::ok_type >); if ((__builtin_expect(!!(tryResult1560.isErr()), 0))) { auto tryTempError = tryResult1560.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20727, 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", 20725 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20725); __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" , 20726, 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); }} | ||||
| 20727 | }){auto tryResult1560 = (OkIf(maybeStmt.isSome())); static_assert (std::is_empty_v<typename decltype(tryResult1560)::ok_type >); if ((__builtin_expect(!!(tryResult1560.isErr()), 0))) { auto tryTempError = tryResult1560.unwrapErr(); mozilla::dom:: quota::HandleError("OkIf(maybeStmt.isSome())", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20727, 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", 20725 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20725); __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" , 20726, 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); }}; | ||||
| 20728 | |||||
| 20729 | const auto& stmt = *maybeStmt; | ||||
| 20730 | |||||
| 20731 | const int64_t count = stmt->AsInt64(0); | ||||
| 20732 | QM_TRY(OkIf(count >= 0), NS_ERROR_DOM_INDEXEDDB_UNKNOWN_ERR, [](const auto) {{auto tryResult1561 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1561)::ok_type> ); if ((__builtin_expect(!!(tryResult1561.isErr()), 0))) { auto tryTempError = tryResult1561.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20737, 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", 20735 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20735); __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" , 20736, 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); }} | ||||
| 20733 | // XXX Why do we have an assertion here, but not at most other places using{auto tryResult1561 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1561)::ok_type> ); if ((__builtin_expect(!!(tryResult1561.isErr()), 0))) { auto tryTempError = tryResult1561.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20737, 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", 20735 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20735); __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" , 20736, 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); }} | ||||
| 20734 | // IDB_REPORT_INTERNAL_ERR(_LAMBDA)?{auto tryResult1561 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1561)::ok_type> ); if ((__builtin_expect(!!(tryResult1561.isErr()), 0))) { auto tryTempError = tryResult1561.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20737, 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", 20735 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20735); __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" , 20736, 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); }} | ||||
| 20735 | MOZ_ASSERT(false, "This should never be possible!");{auto tryResult1561 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1561)::ok_type> ); if ((__builtin_expect(!!(tryResult1561.isErr()), 0))) { auto tryTempError = tryResult1561.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20737, 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", 20735 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20735); __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" , 20736, 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); }} | ||||
| 20736 | IDB_REPORT_INTERNAL_ERR();{auto tryResult1561 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1561)::ok_type> ); if ((__builtin_expect(!!(tryResult1561.isErr()), 0))) { auto tryTempError = tryResult1561.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20737, 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", 20735 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20735); __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" , 20736, 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); }} | ||||
| 20737 | }){auto tryResult1561 = (OkIf(count >= 0)); static_assert(std ::is_empty_v<typename decltype(tryResult1561)::ok_type> ); if ((__builtin_expect(!!(tryResult1561.isErr()), 0))) { auto tryTempError = tryResult1561.unwrapErr(); mozilla::dom::quota ::HandleError("OkIf(count >= 0)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20737, 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", 20735 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "false" ") (" "This should never be possible!" ")"); do { MOZ_CrashSequence(__null, 20735); __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" , 20736, 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); }}; | ||||
| 20738 | |||||
| 20739 | mResponse.count() = count; | ||||
| 20740 | |||||
| 20741 | return NS_OK; | ||||
| 20742 | } | ||||
| 20743 | |||||
| 20744 | template <IDBCursorType CursorType> | ||||
| 20745 | bool Cursor<CursorType>::CursorOpBase::SendFailureResult( | ||||
| 20746 | const TransactionOpResult& aResult) { | ||||
| 20747 | AssertIsOnOwningThread(); | ||||
| 20748 | 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", 20748 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(NS_FAILED_impl(aResult.mCode)), 0)))" ")"); do { MOZ_CrashSequence(__null, 20748); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20749 | 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" , 20749); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 20749); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20750 | 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", 20750 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this" ")"); do { MOZ_CrashSequence(__null, 20750); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 20751 | 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", 20751 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mResponseSent" ")" ); do { MOZ_CrashSequence(__null, 20751); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20752 | |||||
| 20753 | if (!IsActorDestroyed()) { | ||||
| 20754 | mResponse = aResult.mCode; | ||||
| 20755 | |||||
| 20756 | // This is an expected race when the transaction is invalidated after | ||||
| 20757 | // data is retrieved from database. | ||||
| 20758 | // | ||||
| 20759 | // TODO: There seem to be other cases when mFiles is non-empty here, which | ||||
| 20760 | // have been present before adding cursor preloading, but with cursor | ||||
| 20761 | // preloading they have become more frequent (also during startup). One | ||||
| 20762 | // possible cause with cursor preloading is to be addressed by Bug 1597191. | ||||
| 20763 | 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", 20765 ); } } while (false) | ||||
| 20764 | !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", 20765 ); } } while (false) | ||||
| 20765 | "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", 20765 ); } } while (false); | ||||
| 20766 | |||||
| 20767 | // SendResponseInternal will assert when mResponse.type() is | ||||
| 20768 | // CursorResponse::Tnsresult and mFiles is non-empty, so we clear mFiles | ||||
| 20769 | // here. | ||||
| 20770 | mFiles.Clear(); | ||||
| 20771 | |||||
| 20772 | mCursor->SendResponseInternal(mResponse, mFiles); | ||||
| 20773 | } | ||||
| 20774 | |||||
| 20775 | #ifdef DEBUG1 | ||||
| 20776 | mResponseSent = true; | ||||
| 20777 | #endif | ||||
| 20778 | return false; | ||||
| 20779 | } | ||||
| 20780 | |||||
| 20781 | template <IDBCursorType CursorType> | ||||
| 20782 | void Cursor<CursorType>::CursorOpBase::Cleanup() { | ||||
| 20783 | AssertIsOnOwningThread(); | ||||
| 20784 | 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" , 20784); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 20784); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20785 | 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" , 20785); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponseSent" ")"); do { MOZ_CrashSequence(__null, 20785); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20786 | |||||
| 20787 | mCursor = nullptr; | ||||
| 20788 | |||||
| 20789 | #ifdef DEBUG1 | ||||
| 20790 | // A bit hacky but the CursorOp request is not generated in response to a | ||||
| 20791 | // child request like most other database operations. Do this to make our | ||||
| 20792 | // assertions happy. | ||||
| 20793 | NoteActorDestroyed(); | ||||
| 20794 | #endif | ||||
| 20795 | |||||
| 20796 | TransactionDatabaseOperationBase::Cleanup(); | ||||
| 20797 | } | ||||
| 20798 | |||||
| 20799 | template <IDBCursorType CursorType> | ||||
| 20800 | ResponseSizeOrError | ||||
| 20801 | CursorOpBaseHelperBase<CursorType>::PopulateResponseFromStatement( | ||||
| 20802 | mozIStorageStatement* const aStmt, const bool aInitializeResponse, | ||||
| 20803 | Key* const aOptOutSortKey) { | ||||
| 20804 | mOp.Transaction().AssertIsOnConnectionThread(); | ||||
| 20805 | 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" , 20806); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 20806); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20806 | 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" , 20806); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() == CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 20806); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20807 | 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" , 20808); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 20808); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20808 | 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" , 20808); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mOp.mResponse.type() != CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 20808); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20809 | 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", 20814 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20814); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20810 | 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", 20814 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20814); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20811 | (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", 20814 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20814); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20812 | 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", 20814 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20814); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20813 | 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", 20814 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20814); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 20814 | 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", 20814 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aInitializeResponse" ")"); do { MOZ_CrashSequence(__null, 20814); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 20815 | |||||
| 20816 | auto populateResponseHelper = PopulateResponseHelper<CursorType>{mOp}; | ||||
| 20817 | auto previousKey = aOptOutSortKey
| ||||
| |||||
| 20818 | |||||
| 20819 | QM_TRY(MOZ_TO_RESULT(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))){auto tryResult1562 = (ToResult(populateResponseHelper.GetKeys (aStmt, aOptOutSortKey))); static_assert(std::is_empty_v<typename decltype(tryResult1562)::ok_type>); if ((__builtin_expect (!!(tryResult1562.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.GetKeys(aStmt, aOptOutSortKey))" , tryResult1562.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20819, mozilla::dom::quota::Severity::Error); return tryResult1562 .propagateErr(); }}; | ||||
| 20820 | |||||
| 20821 | // aOptOutSortKey must be set iff the cursor is a unique cursor. For unique | ||||
| 20822 | // cursors, we need to skip records with the same key. The SQL queries | ||||
| 20823 | // currently do not filter these out. | ||||
| 20824 | if (aOptOutSortKey
| ||||
| 20825 | previousKey == *aOptOutSortKey) { | ||||
| 20826 | return 0; | ||||
| 20827 | } | ||||
| 20828 | |||||
| 20829 | QM_TRY(MOZ_TO_RESULT({auto tryResult1563 = (ToResult(populateResponseHelper.MaybeGetCloneInfo (aStmt, GetCursor()))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect (!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))" , tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20830, mozilla::dom::quota::Severity::Error); return tryResult1563 .propagateErr(); }} | ||||
| 20830 | populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))){auto tryResult1563 = (ToResult(populateResponseHelper.MaybeGetCloneInfo (aStmt, GetCursor()))); static_assert(std::is_empty_v<typename decltype(tryResult1563)::ok_type>); if ((__builtin_expect (!!(tryResult1563.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(populateResponseHelper.MaybeGetCloneInfo(aStmt, GetCursor()))" , tryResult1563.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20830, mozilla::dom::quota::Severity::Error); return tryResult1563 .propagateErr(); }}; | ||||
| 20831 | |||||
| 20832 | // CAUTION: It is important that only the part of the function above this | ||||
| 20833 | // comment may fail, and modifications to the data structure (in particular | ||||
| 20834 | // mResponse and mFiles) may only be made below. This is necessary to allow to | ||||
| 20835 | // discard entries that were attempted to be preloaded without causing an | ||||
| 20836 | // inconsistent state. | ||||
| 20837 | |||||
| 20838 | if (aInitializeResponse) { | ||||
| 20839 | mOp.mResponse = std::remove_reference_t< | ||||
| 20840 | decltype(populateResponseHelper.GetTypedResponse(&mOp.mResponse))>(); | ||||
| 20841 | } | ||||
| 20842 | |||||
| 20843 | auto& responses = populateResponseHelper.GetTypedResponse(&mOp.mResponse); | ||||
| 20844 | auto& response = *responses.AppendElement(); | ||||
| 20845 | |||||
| 20846 | populateResponseHelper.FillKeys(response); | ||||
| 20847 | if constexpr (!CursorTypeTraits<CursorType>::IsKeyOnlyCursor) { | ||||
| 20848 | populateResponseHelper.MaybeFillCloneInfo(response, &mOp.mFiles); | ||||
| 20849 | } | ||||
| 20850 | |||||
| 20851 | return populateResponseHelper.GetKeySize(response) + | ||||
| 20852 | populateResponseHelper.MaybeGetCloneInfoSize(response); | ||||
| 20853 | } | ||||
| 20854 | |||||
| 20855 | template <IDBCursorType CursorType> | ||||
| 20856 | void CursorOpBaseHelperBase<CursorType>::PopulateExtraResponses( | ||||
| 20857 | mozIStorageStatement* const aStmt, const uint32_t aMaxExtraCount, | ||||
| 20858 | const size_t aInitialResponseSize, const nsACString& aOperation, | ||||
| 20859 | Key* const aOptPreviousSortKey) { | ||||
| 20860 | mOp.AssertIsOnConnectionThread(); | ||||
| 20861 | |||||
| 20862 | const auto extraCount = [&]() -> uint32_t { | ||||
| 20863 | auto accumulatedResponseSize = aInitialResponseSize; | ||||
| 20864 | uint32_t extraCount = 0; | ||||
| 20865 | |||||
| 20866 | do { | ||||
| 20867 | bool hasResult; | ||||
| 20868 | nsresult rv = aStmt->ExecuteStep(&hasResult); | ||||
| 20869 | 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" , 20869)) { | ||||
| 20870 | // In case of a failure on one step, do not attempt to execute further | ||||
| 20871 | // steps, but use the results already populated. | ||||
| 20872 | |||||
| 20873 | break; | ||||
| 20874 | } | ||||
| 20875 | |||||
| 20876 | if (!hasResult) { | ||||
| 20877 | break; | ||||
| 20878 | } | ||||
| 20879 | |||||
| 20880 | // PopulateResponseFromStatement does not modify the data in case of | ||||
| 20881 | // failure, so we can just use the results already populated, and discard | ||||
| 20882 | // any remaining entries, and signal overall success. Probably, future | ||||
| 20883 | // attempts to access the same entry will fail as well, but it might never | ||||
| 20884 | // be accessed by the application. | ||||
| 20885 | QM_TRY_INSPECT(auto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20886 | const auto& responseSize,auto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20887 | PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey),auto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20888 | extraCount, [](const auto&) {auto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20889 | // TODO: Maybe disable preloading for this cursor? The problem willauto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20890 | // probably reoccur on the next attempt, and disabling preloadingauto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20891 | // will reduce latency. However, if some problematic entry will beauto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20892 | // skipped over, after that it might be fine again. To judge this,auto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20893 | // the causes for such failures would need to be analyzed moreauto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20894 | // thoroughly. Since this seems to be rare, maybe no further actionauto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20895 | // is necessary at all.auto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect(); | ||||
| 20896 | })auto tryResult1564 = (PopulateResponseFromStatement(aStmt, false , aOptPreviousSortKey)); if ((__builtin_expect(!!(tryResult1564 .isErr()), 0))) { auto tryTempError = tryResult1564.unwrapErr (); mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, false, aOptPreviousSortKey)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20896, 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 = tryResult1564.inspect();; | ||||
| 20897 | |||||
| 20898 | // Check accumulated size of individual responses and maybe break early. | ||||
| 20899 | accumulatedResponseSize += responseSize; | ||||
| 20900 | if (accumulatedResponseSize > IPC::Channel::kMaximumMessageSize / 2) { | ||||
| 20901 | 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) | ||||
| 20902 | "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) | ||||
| 20903 | "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) | ||||
| 20904 | "%.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) | ||||
| 20905 | 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) | ||||
| 20906 | 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) | ||||
| 20907 | 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) | ||||
| 20908 | 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); | ||||
| 20909 | |||||
| 20910 | break; | ||||
| 20911 | } | ||||
| 20912 | |||||
| 20913 | // TODO: Do not count entries skipped for unique cursors. | ||||
| 20914 | ++extraCount; | ||||
| 20915 | } while (true); | ||||
| 20916 | |||||
| 20917 | return extraCount; | ||||
| 20918 | }(); | ||||
| 20919 | |||||
| 20920 | 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) | ||||
| 20921 | "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) | ||||
| 20922 | "%.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) | ||||
| 20923 | 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) | ||||
| 20924 | 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) | ||||
| 20925 | 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); | ||||
| 20926 | } | ||||
| 20927 | |||||
| 20928 | template <IDBCursorType CursorType> | ||||
| 20929 | void Cursor<CursorType>::SetOptionalKeyRange( | ||||
| 20930 | const Maybe<SerializedKeyRange>& aOptionalKeyRange, bool* const aOpen) { | ||||
| 20931 | 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" , 20931); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aOpen" ")" ); do { MOZ_CrashSequence(__null, 20931); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 20932 | |||||
| 20933 | Key localeAwareRangeBound; | ||||
| 20934 | |||||
| 20935 | if (aOptionalKeyRange.isSome()) { | ||||
| 20936 | const SerializedKeyRange& range = aOptionalKeyRange.ref(); | ||||
| 20937 | |||||
| 20938 | const bool lowerBound = !IsIncreasingOrder(mDirection); | ||||
| 20939 | *aOpen = | ||||
| 20940 | !range.isOnly() && (lowerBound ? range.lowerOpen() : range.upperOpen()); | ||||
| 20941 | |||||
| 20942 | const auto& bound = | ||||
| 20943 | (range.isOnly() || lowerBound) ? range.lower() : range.upper(); | ||||
| 20944 | if constexpr (IsIndexCursor) { | ||||
| 20945 | if (this->IsLocaleAware()) { | ||||
| 20946 | // XXX Don't we need to propagate the error? | ||||
| 20947 | QM_TRY_UNWRAP(localeAwareRangeBound,auto tryResult1565 = (bound.ToLocaleAwareKey(this->mLocale )); if ((__builtin_expect(!!(tryResult1565.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1565.unwrapErr() ; mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } localeAwareRangeBound = tryResult1565.unwrap(); | ||||
| 20948 | bound.ToLocaleAwareKey(this->mLocale), QM_VOID)auto tryResult1565 = (bound.ToLocaleAwareKey(this->mLocale )); if ((__builtin_expect(!!(tryResult1565.isErr()), 0))) { [ [maybe_unused]] auto tryTempError = tryResult1565.unwrapErr() ; mozilla::dom::quota::HandleError("bound.ToLocaleAwareKey(this->mLocale)" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 20948, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return ; } localeAwareRangeBound = tryResult1565.unwrap();; | ||||
| 20949 | } else { | ||||
| 20950 | localeAwareRangeBound = bound; | ||||
| 20951 | } | ||||
| 20952 | } else { | ||||
| 20953 | localeAwareRangeBound = bound; | ||||
| 20954 | } | ||||
| 20955 | } else { | ||||
| 20956 | *aOpen = false; | ||||
| 20957 | } | ||||
| 20958 | |||||
| 20959 | this->mLocaleAwareRangeBound.init(std::move(localeAwareRangeBound)); | ||||
| 20960 | } | ||||
| 20961 | |||||
| 20962 | template <IDBCursorType CursorType> | ||||
| 20963 | void ObjectStoreOpenOpHelper<CursorType>::PrepareKeyConditionClauses( | ||||
| 20964 | const nsACString& aDirectionClause, const nsACString& aQueryStart) { | ||||
| 20965 | const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection); | ||||
| 20966 | |||||
| 20967 | nsAutoCString keyRangeClause; | ||||
| 20968 | nsAutoCString continueToKeyRangeClause; | ||||
| 20969 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey, | ||||
| 20970 | !isIncreasingOrder, false, keyRangeClause); | ||||
| 20971 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameCurrentKey, | ||||
| 20972 | !isIncreasingOrder, true, continueToKeyRangeClause); | ||||
| 20973 | |||||
| 20974 | { | ||||
| 20975 | bool open; | ||||
| 20976 | GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open); | ||||
| 20977 | |||||
| 20978 | if (GetOptionalKeyRange().isSome() && | ||||
| 20979 | !GetCursor().mLocaleAwareRangeBound->IsUnset()) { | ||||
| 20980 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound, | ||||
| 20981 | isIncreasingOrder, !open, keyRangeClause); | ||||
| 20982 | AppendConditionClause(kStmtParamNameKey, kStmtParamNameRangeBound, | ||||
| 20983 | isIncreasingOrder, !open, continueToKeyRangeClause); | ||||
| 20984 | } | ||||
| 20985 | } | ||||
| 20986 | |||||
| 20987 | const nsAutoCString suffix = | ||||
| 20988 | aDirectionClause + " LIMIT :"_ns + kStmtParamNameLimit; | ||||
| 20989 | |||||
| 20990 | GetCursor().mContinueQueries.init( | ||||
| 20991 | aQueryStart + keyRangeClause + suffix, | ||||
| 20992 | aQueryStart + continueToKeyRangeClause + suffix); | ||||
| 20993 | } | ||||
| 20994 | |||||
| 20995 | template <IDBCursorType CursorType> | ||||
| 20996 | void IndexOpenOpHelper<CursorType>::PrepareIndexKeyConditionClause( | ||||
| 20997 | const nsACString& aDirectionClause, | ||||
| 20998 | const nsLiteralCString& aObjectDataKeyPrefix, nsAutoCString aQueryStart) { | ||||
| 20999 | const bool isIncreasingOrder = IsIncreasingOrder(GetCursor().mDirection); | ||||
| 21000 | |||||
| 21001 | { | ||||
| 21002 | bool open; | ||||
| 21003 | GetCursor().SetOptionalKeyRange(GetOptionalKeyRange(), &open); | ||||
| 21004 | if (GetOptionalKeyRange().isSome() && | ||||
| 21005 | !GetCursor().mLocaleAwareRangeBound->IsUnset()) { | ||||
| 21006 | AppendConditionClause(kColumnNameAliasSortKey, kStmtParamNameRangeBound, | ||||
| 21007 | isIncreasingOrder, !open, aQueryStart); | ||||
| 21008 | } | ||||
| 21009 | } | ||||
| 21010 | |||||
| 21011 | nsCString continueQuery, continueToQuery, continuePrimaryKeyQuery; | ||||
| 21012 | |||||
| 21013 | const ComparisonOperator comparisonOperatorStrict = | ||||
| 21014 | isIncreasingOrder ? ComparisonOperator::GreaterThan | ||||
| 21015 | : ComparisonOperator::LessThan; | ||||
| 21016 | const ComparisonOperator comparisonOperatorNonStrict = | ||||
| 21017 | isIncreasingOrder ? ComparisonOperator::GreaterOrEquals | ||||
| 21018 | : ComparisonOperator::LessOrEquals; | ||||
| 21019 | |||||
| 21020 | continueToQuery = | ||||
| 21021 | aQueryStart + " AND "_ns + | ||||
| 21022 | GetSortKeyClause(comparisonOperatorNonStrict, kStmtParamNameCurrentKey); | ||||
| 21023 | |||||
| 21024 | switch (GetCursor().mDirection) { | ||||
| 21025 | case IDBCursorDirection::Next: | ||||
| 21026 | case IDBCursorDirection::Prev: | ||||
| 21027 | continueQuery = | ||||
| 21028 | aQueryStart + " AND "_ns + | ||||
| 21029 | GetRowValueClause(kColumnNameAliasSortKey, | ||||
| 21030 | aObjectDataKeyPrefix + "object_data_key"_ns, | ||||
| 21031 | comparisonOperatorStrict, kStmtParamNameCurrentKey, | ||||
| 21032 | kStmtParamNameObjectStorePosition); | ||||
| 21033 | |||||
| 21034 | continuePrimaryKeyQuery = | ||||
| 21035 | aQueryStart + " AND "_ns + | ||||
| 21036 | GetRowValueClause(kColumnNameAliasSortKey, | ||||
| 21037 | aObjectDataKeyPrefix + "object_data_key"_ns, | ||||
| 21038 | comparisonOperatorNonStrict, | ||||
| 21039 | kStmtParamNameCurrentKey, | ||||
| 21040 | kStmtParamNameObjectStorePosition); | ||||
| 21041 | break; | ||||
| 21042 | |||||
| 21043 | case IDBCursorDirection::Nextunique: | ||||
| 21044 | case IDBCursorDirection::Prevunique: | ||||
| 21045 | continueQuery = | ||||
| 21046 | aQueryStart + " AND "_ns + | ||||
| 21047 | GetSortKeyClause(comparisonOperatorStrict, kStmtParamNameCurrentKey); | ||||
| 21048 | break; | ||||
| 21049 | |||||
| 21050 | default: | ||||
| 21051 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21051 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 21051); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 21052 | } | ||||
| 21053 | |||||
| 21054 | const nsAutoCString suffix = | ||||
| 21055 | aDirectionClause + " LIMIT :"_ns + kStmtParamNameLimit; | ||||
| 21056 | continueQuery += suffix; | ||||
| 21057 | continueToQuery += suffix; | ||||
| 21058 | if (!continuePrimaryKeyQuery.IsEmpty()) { | ||||
| 21059 | continuePrimaryKeyQuery += suffix; | ||||
| 21060 | } | ||||
| 21061 | |||||
| 21062 | GetCursor().mContinueQueries.init(std::move(continueQuery), | ||||
| 21063 | std::move(continueToQuery), | ||||
| 21064 | std::move(continuePrimaryKeyQuery)); | ||||
| 21065 | } | ||||
| 21066 | |||||
| 21067 | template <IDBCursorType CursorType> | ||||
| 21068 | nsresult CommonOpenOpHelper<CursorType>::ProcessStatementSteps( | ||||
| 21069 | mozIStorageStatement* const aStmt) { | ||||
| 21070 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult1566 = (::mozilla::ToResultInvokeMember( (aStmt ), &::mozilla::detail::DerefedType<decltype(aStmt)> ::ExecuteStep )); if ((__builtin_expect(!!(tryResult1566.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep )" , tryResult1566.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21071, mozilla::dom::quota::Severity::Error); return tryResult1566 .propagateErr(); } const bool& hasResult = tryResult1566. inspect(); | ||||
| 21071 | MOZ_TO_RESULT_INVOKE_MEMBER(aStmt, ExecuteStep))auto tryResult1566 = (::mozilla::ToResultInvokeMember( (aStmt ), &::mozilla::detail::DerefedType<decltype(aStmt)> ::ExecuteStep )); if ((__builtin_expect(!!(tryResult1566.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aStmt), &::mozilla::detail::DerefedType<decltype(aStmt)>::ExecuteStep )" , tryResult1566.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21071, mozilla::dom::quota::Severity::Error); return tryResult1566 .propagateErr(); } const bool& hasResult = tryResult1566. inspect();; | ||||
| 21072 | |||||
| 21073 | if (!hasResult) { | ||||
| 21074 | SetResponse(void_t{}); | ||||
| 21075 | return NS_OK; | ||||
| 21076 | } | ||||
| 21077 | |||||
| 21078 | Key previousKey; | ||||
| 21079 | auto* optPreviousKey = | ||||
| 21080 | IsUnique(GetCursor().mDirection) ? &previousKey : nullptr; | ||||
| 21081 | |||||
| 21082 | QM_TRY_INSPECT(const auto& responseSize,auto tryResult1567 = (PopulateResponseFromStatement(aStmt, true , optPreviousKey)); if ((__builtin_expect(!!(tryResult1567.isErr ()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)" , tryResult1567.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21083, mozilla::dom::quota::Severity::Error); return tryResult1567 .propagateErr(); } const auto& responseSize = tryResult1567 .inspect(); | ||||
| 21083 | PopulateResponseFromStatement(aStmt, true, optPreviousKey))auto tryResult1567 = (PopulateResponseFromStatement(aStmt, true , optPreviousKey)); if ((__builtin_expect(!!(tryResult1567.isErr ()), 0))) { mozilla::dom::quota::HandleError("PopulateResponseFromStatement(aStmt, true, optPreviousKey)" , tryResult1567.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21083, mozilla::dom::quota::Severity::Error); return tryResult1567 .propagateErr(); } const auto& responseSize = tryResult1567 .inspect();; | ||||
| 21084 | |||||
| 21085 | // The degree to which extra responses on OpenOp can actually be used depends | ||||
| 21086 | // on the parameters of subsequent ContinueOp operations, see also comment in | ||||
| 21087 | // ContinueOp::DoDatabaseWork. | ||||
| 21088 | // | ||||
| 21089 | // TODO: We should somehow evaluate the effects of this. Maybe use a smaller | ||||
| 21090 | // extra count than for ContinueOp? | ||||
| 21091 | PopulateExtraResponses(aStmt, GetCursor().mMaxExtraCount, responseSize, | ||||
| 21092 | "OpenOp"_ns, optPreviousKey); | ||||
| 21093 | |||||
| 21094 | return NS_OK; | ||||
| 21095 | } | ||||
| 21096 | |||||
| 21097 | nsresult OpenOpHelper<IDBCursorType::ObjectStore>::DoDatabaseWork( | ||||
| 21098 | DatabaseConnection* aConnection) { | ||||
| 21099 | 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" , 21099); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21099); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21100 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21101 | 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", 21101 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21101); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21102 | |||||
| 21103 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21103( "Cursor::OpenOp::DoObjectStoreDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21104 | |||||
| 21105 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | ||||
| 21106 | |||||
| 21107 | const nsCString queryStart = "SELECT "_ns + kColumnNameKey + | ||||
| 21108 | ", file_ids, data " | ||||
| 21109 | "FROM object_data " | ||||
| 21110 | "WHERE object_store_id = :"_ns + | ||||
| 21111 | kStmtParamNameId; | ||||
| 21112 | |||||
| 21113 | const auto keyRangeClause = | ||||
| 21114 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 21115 | GetOptionalKeyRange(), kColumnNameKey); | ||||
| 21116 | |||||
| 21117 | const auto& directionClause = MakeDirectionClause(GetCursor().mDirection); | ||||
| 21118 | |||||
| 21119 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21120 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21121 | const nsCString firstQuery = queryStart + keyRangeClause + directionClause + | ||||
| 21122 | " LIMIT "_ns + | ||||
| 21123 | IntToCString(1 + GetCursor().mMaxExtraCount); | ||||
| 21124 | |||||
| 21125 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1568 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1568.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21126, mozilla::dom::quota::Severity::Error); return tryResult1568 .propagateErr(); } const auto& stmt = tryResult1568.inspect (); | ||||
| 21126 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult1568 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1568.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1568.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21126, mozilla::dom::quota::Severity::Error); return tryResult1568 .propagateErr(); } const auto& stmt = tryResult1568.inspect ();; | ||||
| 21127 | |||||
| 21128 | QM_TRY(MOZ_TO_RESULT({auto tryResult1569 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect (!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21129, mozilla::dom::quota::Severity::Error); return tryResult1569 .propagateErr(); }} | ||||
| 21129 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1569 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult1569)::ok_type>); if ((__builtin_expect (!!(tryResult1569.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult1569.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21129, mozilla::dom::quota::Severity::Error); return tryResult1569 .propagateErr(); }}; | ||||
| 21130 | |||||
| 21131 | if (usingKeyRange) { | ||||
| 21132 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1570 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1570)::ok_type> ); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21133, mozilla::dom::quota::Severity::Error); return tryResult1570 .propagateErr(); }} | ||||
| 21133 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1570 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1570)::ok_type> ); if ((__builtin_expect(!!(tryResult1570.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1570.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21133, mozilla::dom::quota::Severity::Error); return tryResult1570 .propagateErr(); }}; | ||||
| 21134 | } | ||||
| 21135 | |||||
| 21136 | // Now we need to make the query for ContinueOp. | ||||
| 21137 | PrepareKeyConditionClauses(directionClause, queryStart); | ||||
| 21138 | |||||
| 21139 | return ProcessStatementSteps(&*stmt); | ||||
| 21140 | } | ||||
| 21141 | |||||
| 21142 | nsresult OpenOpHelper<IDBCursorType::ObjectStoreKey>::DoDatabaseWork( | ||||
| 21143 | DatabaseConnection* aConnection) { | ||||
| 21144 | 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" , 21144); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21144); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21145 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21146 | 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", 21146 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21146); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21147 | |||||
| 21148 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoObjectStoreKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21148( "Cursor::OpenOp::DoObjectStoreKeyDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21149 | |||||
| 21150 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | ||||
| 21151 | |||||
| 21152 | const nsCString queryStart = "SELECT "_ns + kColumnNameKey + | ||||
| 21153 | " FROM object_data " | ||||
| 21154 | "WHERE object_store_id = :"_ns + | ||||
| 21155 | kStmtParamNameId; | ||||
| 21156 | |||||
| 21157 | const auto keyRangeClause = | ||||
| 21158 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 21159 | GetOptionalKeyRange(), kColumnNameKey); | ||||
| 21160 | |||||
| 21161 | const auto& directionClause = MakeDirectionClause(GetCursor().mDirection); | ||||
| 21162 | |||||
| 21163 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21164 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21165 | const nsCString firstQuery = | ||||
| 21166 | queryStart + keyRangeClause + directionClause + " LIMIT 1"_ns; | ||||
| 21167 | |||||
| 21168 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1571 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1571.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21169, mozilla::dom::quota::Severity::Error); return tryResult1571 .propagateErr(); } const auto& stmt = tryResult1571.inspect (); | ||||
| 21169 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult1571 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1571.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1571.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21169, mozilla::dom::quota::Severity::Error); return tryResult1571 .propagateErr(); } const auto& stmt = tryResult1571.inspect ();; | ||||
| 21170 | |||||
| 21171 | QM_TRY(MOZ_TO_RESULT({auto tryResult1572 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult1572)::ok_type>); if ((__builtin_expect (!!(tryResult1572.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21172, mozilla::dom::quota::Severity::Error); return tryResult1572 .propagateErr(); }} | ||||
| 21172 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))){auto tryResult1572 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mObjectStoreId))); static_assert(std::is_empty_v <typename decltype(tryResult1572)::ok_type>); if ((__builtin_expect (!!(tryResult1572.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mObjectStoreId))" , tryResult1572.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21172, mozilla::dom::quota::Severity::Error); return tryResult1572 .propagateErr(); }}; | ||||
| 21173 | |||||
| 21174 | if (usingKeyRange) { | ||||
| 21175 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1573 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1573)::ok_type> ); if ((__builtin_expect(!!(tryResult1573.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1573.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21176, mozilla::dom::quota::Severity::Error); return tryResult1573 .propagateErr(); }} | ||||
| 21176 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1573 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1573)::ok_type> ); if ((__builtin_expect(!!(tryResult1573.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1573.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21176, mozilla::dom::quota::Severity::Error); return tryResult1573 .propagateErr(); }}; | ||||
| 21177 | } | ||||
| 21178 | |||||
| 21179 | // Now we need to make the query to get the next match. | ||||
| 21180 | PrepareKeyConditionClauses(directionClause, queryStart); | ||||
| 21181 | |||||
| 21182 | return ProcessStatementSteps(&*stmt); | ||||
| 21183 | } | ||||
| 21184 | |||||
| 21185 | nsresult OpenOpHelper<IDBCursorType::Index>::DoDatabaseWork( | ||||
| 21186 | DatabaseConnection* aConnection) { | ||||
| 21187 | 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" , 21187); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21187); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21188 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21189 | 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", 21189 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21189); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21190 | 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", 21190 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId" ")"); do { MOZ_CrashSequence(__null, 21190); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21191 | |||||
| 21192 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21192( "Cursor::OpenOp::DoIndexDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21193 | |||||
| 21194 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | ||||
| 21195 | |||||
| 21196 | const auto indexTable = | ||||
| 21197 | GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns; | ||||
| 21198 | |||||
| 21199 | // The result of MakeColumnPairSelectionList is stored in a local variable, | ||||
| 21200 | // since inlining it into the next statement causes a crash on some Mac OS X | ||||
| 21201 | // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110). | ||||
| 21202 | const auto columnPairSelectionList = MakeColumnPairSelectionList( | ||||
| 21203 | "index_table.value"_ns, "index_table.value_locale"_ns, | ||||
| 21204 | kColumnNameAliasSortKey, GetCursor().IsLocaleAware()); | ||||
| 21205 | const nsCString sortColumnAlias = | ||||
| 21206 | "SELECT "_ns + columnPairSelectionList + ", "_ns; | ||||
| 21207 | |||||
| 21208 | const nsAutoCString queryStart = sortColumnAlias + | ||||
| 21209 | "index_table.object_data_key, " | ||||
| 21210 | "object_data.file_ids, " | ||||
| 21211 | "object_data.data " | ||||
| 21212 | "FROM "_ns + | ||||
| 21213 | indexTable + | ||||
| 21214 | " AS index_table " | ||||
| 21215 | "JOIN object_data " | ||||
| 21216 | "ON index_table.object_store_id = " | ||||
| 21217 | "object_data.object_store_id " | ||||
| 21218 | "AND index_table.object_data_key = " | ||||
| 21219 | "object_data.key " | ||||
| 21220 | "WHERE index_table.index_id = :"_ns + | ||||
| 21221 | kStmtParamNameId; | ||||
| 21222 | |||||
| 21223 | const auto keyRangeClause = | ||||
| 21224 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 21225 | GetOptionalKeyRange(), kColumnNameAliasSortKey); | ||||
| 21226 | |||||
| 21227 | nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey; | ||||
| 21228 | |||||
| 21229 | switch (GetCursor().mDirection) { | ||||
| 21230 | case IDBCursorDirection::Next: | ||||
| 21231 | case IDBCursorDirection::Nextunique: | ||||
| 21232 | directionClause.AppendLiteral(" ASC, index_table.object_data_key ASC"); | ||||
| 21233 | break; | ||||
| 21234 | |||||
| 21235 | case IDBCursorDirection::Prev: | ||||
| 21236 | directionClause.AppendLiteral(" DESC, index_table.object_data_key DESC"); | ||||
| 21237 | break; | ||||
| 21238 | |||||
| 21239 | case IDBCursorDirection::Prevunique: | ||||
| 21240 | directionClause.AppendLiteral(" DESC, index_table.object_data_key ASC"); | ||||
| 21241 | break; | ||||
| 21242 | |||||
| 21243 | default: | ||||
| 21244 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21244 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 21244); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 21245 | } | ||||
| 21246 | |||||
| 21247 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21248 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21249 | const nsCString firstQuery = queryStart + keyRangeClause + directionClause + | ||||
| 21250 | " LIMIT "_ns + | ||||
| 21251 | IntToCString(1 + GetCursor().mMaxExtraCount); | ||||
| 21252 | |||||
| 21253 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1574 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1574.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1574.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21254, mozilla::dom::quota::Severity::Error); return tryResult1574 .propagateErr(); } const auto& stmt = tryResult1574.inspect (); | ||||
| 21254 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult1574 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1574.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1574.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21254, mozilla::dom::quota::Severity::Error); return tryResult1574 .propagateErr(); } const auto& stmt = tryResult1574.inspect ();; | ||||
| 21255 | |||||
| 21256 | QM_TRY(MOZ_TO_RESULT({auto tryResult1575 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1575)::ok_type>); if ((__builtin_expect (!!(tryResult1575.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult1575.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21257, mozilla::dom::quota::Severity::Error); return tryResult1575 .propagateErr(); }} | ||||
| 21257 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1575 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1575)::ok_type>); if ((__builtin_expect (!!(tryResult1575.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult1575.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21257, mozilla::dom::quota::Severity::Error); return tryResult1575 .propagateErr(); }}; | ||||
| 21258 | |||||
| 21259 | if (usingKeyRange) { | ||||
| 21260 | if (GetCursor().IsLocaleAware()) { | ||||
| 21261 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1576 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1576 )::ok_type>); if ((__builtin_expect(!!(tryResult1576.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult1576.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21262, mozilla::dom::quota::Severity::Error); return tryResult1576 .propagateErr(); }} | ||||
| 21262 | GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1576 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1576 )::ok_type>); if ((__builtin_expect(!!(tryResult1576.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult1576.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21262, mozilla::dom::quota::Severity::Error); return tryResult1576 .propagateErr(); }}; | ||||
| 21263 | } else { | ||||
| 21264 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1577 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1577)::ok_type> ); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1577.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21265, mozilla::dom::quota::Severity::Error); return tryResult1577 .propagateErr(); }} | ||||
| 21265 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1577 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1577)::ok_type> ); if ((__builtin_expect(!!(tryResult1577.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1577.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21265, mozilla::dom::quota::Severity::Error); return tryResult1577 .propagateErr(); }}; | ||||
| 21266 | } | ||||
| 21267 | } | ||||
| 21268 | |||||
| 21269 | // TODO: At least the last two statements are almost the same in all | ||||
| 21270 | // DoDatabaseWork variants, consider removing this duplication. | ||||
| 21271 | |||||
| 21272 | // Now we need to make the query to get the next match. | ||||
| 21273 | PrepareKeyConditionClauses(directionClause, std::move(queryStart)); | ||||
| 21274 | |||||
| 21275 | return ProcessStatementSteps(&*stmt); | ||||
| 21276 | } | ||||
| 21277 | |||||
| 21278 | nsresult OpenOpHelper<IDBCursorType::IndexKey>::DoDatabaseWork( | ||||
| 21279 | DatabaseConnection* aConnection) { | ||||
| 21280 | 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" , 21280); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21280); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21281 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21282 | 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", 21282 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21282); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21283 | 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", 21283 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "GetCursor().mIndexId" ")"); do { MOZ_CrashSequence(__null, 21283); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21284 | |||||
| 21285 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoIndexKeyDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21285( "Cursor::OpenOp::DoIndexKeyDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21286 | |||||
| 21287 | const bool usingKeyRange = GetOptionalKeyRange().isSome(); | ||||
| 21288 | |||||
| 21289 | const auto table = | ||||
| 21290 | GetCursor().mUniqueIndex ? "unique_index_data"_ns : "index_data"_ns; | ||||
| 21291 | |||||
| 21292 | // The result of MakeColumnPairSelectionList is stored in a local variable, | ||||
| 21293 | // since inlining it into the next statement causes a crash on some Mac OS X | ||||
| 21294 | // builds (see https://bugzilla.mozilla.org/show_bug.cgi?id=1168606#c110). | ||||
| 21295 | const auto columnPairSelectionList = MakeColumnPairSelectionList( | ||||
| 21296 | "value"_ns, "value_locale"_ns, kColumnNameAliasSortKey, | ||||
| 21297 | GetCursor().IsLocaleAware()); | ||||
| 21298 | const nsCString sortColumnAlias = | ||||
| 21299 | "SELECT "_ns + columnPairSelectionList + ", "_ns; | ||||
| 21300 | |||||
| 21301 | const nsAutoCString queryStart = sortColumnAlias + | ||||
| 21302 | "object_data_key " | ||||
| 21303 | " FROM "_ns + | ||||
| 21304 | table + " WHERE index_id = :"_ns + | ||||
| 21305 | kStmtParamNameId; | ||||
| 21306 | |||||
| 21307 | const auto keyRangeClause = | ||||
| 21308 | DatabaseOperationBase::MaybeGetBindingClauseForKeyRange( | ||||
| 21309 | GetOptionalKeyRange(), kColumnNameAliasSortKey); | ||||
| 21310 | |||||
| 21311 | nsAutoCString directionClause = " ORDER BY "_ns + kColumnNameAliasSortKey; | ||||
| 21312 | |||||
| 21313 | switch (GetCursor().mDirection) { | ||||
| 21314 | case IDBCursorDirection::Next: | ||||
| 21315 | case IDBCursorDirection::Nextunique: | ||||
| 21316 | directionClause.AppendLiteral(" ASC, object_data_key ASC"); | ||||
| 21317 | break; | ||||
| 21318 | |||||
| 21319 | case IDBCursorDirection::Prev: | ||||
| 21320 | directionClause.AppendLiteral(" DESC, object_data_key DESC"); | ||||
| 21321 | break; | ||||
| 21322 | |||||
| 21323 | case IDBCursorDirection::Prevunique: | ||||
| 21324 | directionClause.AppendLiteral(" DESC, object_data_key ASC"); | ||||
| 21325 | break; | ||||
| 21326 | |||||
| 21327 | default: | ||||
| 21328 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21328 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 21328); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 21329 | } | ||||
| 21330 | |||||
| 21331 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21332 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21333 | const nsCString firstQuery = | ||||
| 21334 | queryStart + keyRangeClause + directionClause + " LIMIT 1"_ns; | ||||
| 21335 | |||||
| 21336 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1578 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21337, mozilla::dom::quota::Severity::Error); return tryResult1578 .propagateErr(); } const auto& stmt = tryResult1578.inspect (); | ||||
| 21337 | aConnection->BorrowCachedStatement(firstQuery))auto tryResult1578 = (aConnection->BorrowCachedStatement(firstQuery )); if ((__builtin_expect(!!(tryResult1578.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement(firstQuery)" , tryResult1578.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21337, mozilla::dom::quota::Severity::Error); return tryResult1578 .propagateErr(); } const auto& stmt = tryResult1578.inspect ();; | ||||
| 21338 | |||||
| 21339 | QM_TRY(MOZ_TO_RESULT({auto tryResult1579 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect (!!(tryResult1579.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult1579.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21340, mozilla::dom::quota::Severity::Error); return tryResult1579 .propagateErr(); }} | ||||
| 21340 | stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))){auto tryResult1579 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , GetCursor().mIndexId))); static_assert(std::is_empty_v<typename decltype(tryResult1579)::ok_type>); if ((__builtin_expect (!!(tryResult1579.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, GetCursor().mIndexId))" , tryResult1579.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21340, mozilla::dom::quota::Severity::Error); return tryResult1579 .propagateErr(); }}; | ||||
| 21341 | |||||
| 21342 | if (usingKeyRange) { | ||||
| 21343 | if (GetCursor().IsLocaleAware()) { | ||||
| 21344 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1580 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1580 )::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21345, mozilla::dom::quota::Severity::Error); return tryResult1580 .propagateErr(); }} | ||||
| 21345 | GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))){auto tryResult1580 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale ))); static_assert(std::is_empty_v<typename decltype(tryResult1580 )::ok_type>); if ((__builtin_expect(!!(tryResult1580.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt, GetCursor().mLocale))" , tryResult1580.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21345, mozilla::dom::quota::Severity::Error); return tryResult1580 .propagateErr(); }}; | ||||
| 21346 | } else { | ||||
| 21347 | QM_TRY(MOZ_TO_RESULT(DatabaseOperationBase::BindKeyRangeToStatement({auto tryResult1581 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1581)::ok_type> ); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21348, mozilla::dom::quota::Severity::Error); return tryResult1581 .propagateErr(); }} | ||||
| 21348 | GetOptionalKeyRange().ref(), &*stmt))){auto tryResult1581 = (ToResult(DatabaseOperationBase::BindKeyRangeToStatement ( GetOptionalKeyRange().ref(), &*stmt))); static_assert(std ::is_empty_v<typename decltype(tryResult1581)::ok_type> ); if ((__builtin_expect(!!(tryResult1581.isErr()), 0))) { mozilla ::dom::quota::HandleError("ToResult(DatabaseOperationBase::BindKeyRangeToStatement( GetOptionalKeyRange().ref(), &*stmt))" , tryResult1581.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21348, mozilla::dom::quota::Severity::Error); return tryResult1581 .propagateErr(); }}; | ||||
| 21349 | } | ||||
| 21350 | } | ||||
| 21351 | |||||
| 21352 | // Now we need to make the query to get the next match. | ||||
| 21353 | PrepareKeyConditionClauses(directionClause, std::move(queryStart)); | ||||
| 21354 | |||||
| 21355 | return ProcessStatementSteps(&*stmt); | ||||
| 21356 | } | ||||
| 21357 | |||||
| 21358 | template <IDBCursorType CursorType> | ||||
| 21359 | nsresult Cursor<CursorType>::OpenOp::DoDatabaseWork( | ||||
| 21360 | DatabaseConnection* aConnection) { | ||||
| 21361 | 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" , 21361); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21361); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| |||||
| 21362 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21363 | 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" , 21363); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 21363); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21364 | 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" , 21364); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries" ")"); do { MOZ_CrashSequence(__null, 21364); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21365 | |||||
| 21366 | AUTO_PROFILER_LABEL("Cursor::OpenOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21366( "Cursor::OpenOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21367 | |||||
| 21368 | auto helper = OpenOpHelper<CursorType>{*this}; | ||||
| 21369 | const auto rv = helper.DoDatabaseWork(aConnection); | ||||
| 21370 | 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" , 21370)) { | ||||
| 21371 | return rv; | ||||
| 21372 | } | ||||
| 21373 | |||||
| 21374 | return NS_OK; | ||||
| 21375 | } | ||||
| 21376 | |||||
| 21377 | template <IDBCursorType CursorType> | ||||
| 21378 | TransactionOpResult Cursor<CursorType>::CursorOpBase::SendSuccessResult() { | ||||
| 21379 | AssertIsOnOwningThread(); | ||||
| 21380 | 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" , 21380); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 21380); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21381 | 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", 21381 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mCurrentlyRunningOp == this" ")"); do { MOZ_CrashSequence(__null, 21381); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21382 | 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", 21382 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mResponse.type() != CursorResponse::T__None" ")"); do { MOZ_CrashSequence(__null, 21382); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21383 | |||||
| 21384 | if (IsActorDestroyed()) { | ||||
| 21385 | return NS_ERROR_DOM_INDEXEDDB_ABORT_ERR; | ||||
| 21386 | } | ||||
| 21387 | |||||
| 21388 | mCursor->SendResponseInternal(mResponse, mFiles); | ||||
| 21389 | |||||
| 21390 | #ifdef DEBUG1 | ||||
| 21391 | mResponseSent = true; | ||||
| 21392 | #endif | ||||
| 21393 | return NS_OK; | ||||
| 21394 | } | ||||
| 21395 | |||||
| 21396 | template <IDBCursorType CursorType> | ||||
| 21397 | nsresult Cursor<CursorType>::ContinueOp::DoDatabaseWork( | ||||
| 21398 | DatabaseConnection* aConnection) { | ||||
| 21399 | 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" , 21399); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aConnection" ")"); do { MOZ_CrashSequence(__null, 21399); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21400 | aConnection->AssertIsOnConnectionThread(); | ||||
| 21401 | 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" , 21401); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor" ")" ); do { MOZ_CrashSequence(__null, 21401); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21402 | 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", 21402 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mObjectStoreId" ")"); do { MOZ_CrashSequence(__null, 21402); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21403 | 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", 21403 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21403); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21404 | 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", 21404 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinueToQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21404); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21405 | 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" , 21405); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21405); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21406 | |||||
| 21407 | if constexpr (IsIndexCursor) { | ||||
| 21408 | 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", 21411 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21411); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 21409 | 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", 21411 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21411); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 21410 | 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", 21411 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21411); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false) | ||||
| 21411 | !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", 21411 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCursor->mContinueQueries->mContinuePrimaryKeyQuery.IsEmpty()" ")"); do { MOZ_CrashSequence(__null, 21411); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); } } while (false); | ||||
| 21412 | 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", 21412 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mIndexId" ")"); do { MOZ_CrashSequence(__null, 21412); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21413 | 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", 21413 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mCurrentPosition.mObjectStoreKey.IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21413); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21414 | } | ||||
| 21415 | |||||
| 21416 | AUTO_PROFILER_LABEL("Cursor::ContinueOp::DoDatabaseWork", DOM)mozilla::AutoProfilerLabel raiiObject21416( "Cursor::ContinueOp::DoDatabaseWork" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21417 | |||||
| 21418 | // We need to pick a query based on whether or not a key was passed to the | ||||
| 21419 | // continue function. If not we'll grab the next item in the database that | ||||
| 21420 | // is greater than (or less than, if we're running a PREV cursor) the current | ||||
| 21421 | // key. If a key was passed we'll grab the next item in the database that is | ||||
| 21422 | // greater than (or less than, if we're running a PREV cursor) or equal to the | ||||
| 21423 | // key that was specified. | ||||
| 21424 | // | ||||
| 21425 | // TODO: The description above is not complete, it does not take account of | ||||
| 21426 | // ContinuePrimaryKey nor Advance. | ||||
| 21427 | // | ||||
| 21428 | // Note: Changing the number or order of SELECT columns in the query will | ||||
| 21429 | // require changes to CursorOpBase::PopulateResponseFromStatement. | ||||
| 21430 | |||||
| 21431 | const uint32_t advanceCount = | ||||
| 21432 | mParams.type() == CursorRequestParams::TAdvanceParams | ||||
| 21433 | ? mParams.get_AdvanceParams().count() | ||||
| 21434 | : 1; | ||||
| 21435 | 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", 21435 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "advanceCount > 0" ")"); do { MOZ_CrashSequence(__null, 21435); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21436 | |||||
| 21437 | bool hasContinueKey = false; | ||||
| 21438 | bool hasContinuePrimaryKey = false; | ||||
| 21439 | |||||
| 21440 | auto explicitContinueKey = Key{}; | ||||
| 21441 | |||||
| 21442 | switch (mParams.type()) { | ||||
| 21443 | case CursorRequestParams::TContinueParams: | ||||
| 21444 | if (!mParams.get_ContinueParams().key().IsUnset()) { | ||||
| 21445 | hasContinueKey = true; | ||||
| 21446 | explicitContinueKey = mParams.get_ContinueParams().key(); | ||||
| 21447 | } | ||||
| 21448 | break; | ||||
| 21449 | case CursorRequestParams::TContinuePrimaryKeyParams: | ||||
| 21450 | 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" , 21450); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().key().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21450); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21451 | 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", 21452 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21452); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 21452 | !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", 21452 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mParams.get_ContinuePrimaryKeyParams().primaryKey().IsUnset()" ")"); do { MOZ_CrashSequence(__null, 21452); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21453 | 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", 21454 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" ")"); do { MOZ_CrashSequence(__null, 21454); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false) | ||||
| 21454 | 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", 21454 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mCursor->mDirection == IDBCursorDirection::Next || mCursor->mDirection == IDBCursorDirection::Prev" ")"); do { MOZ_CrashSequence(__null, 21454); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21455 | hasContinueKey = true; | ||||
| 21456 | hasContinuePrimaryKey = true; | ||||
| 21457 | explicitContinueKey = mParams.get_ContinuePrimaryKeyParams().key(); | ||||
| 21458 | break; | ||||
| 21459 | case CursorRequestParams::TAdvanceParams: | ||||
| 21460 | break; | ||||
| 21461 | default: | ||||
| 21462 | MOZ_CRASH("Should never get here!")do { do { } while (false); MOZ_ReportCrash("" "Should never get here!" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21462 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never get here!" ")"); do { MOZ_CrashSequence(__null, 21462); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); | ||||
| 21463 | } | ||||
| 21464 | |||||
| 21465 | // TODO: Whether it makes sense to preload depends on the kind of the | ||||
| 21466 | // subsequent operations, not of the current operation. We could assume that | ||||
| 21467 | // the subsequent operations are: | ||||
| 21468 | // - the same as the current operation (with the same parameter values) | ||||
| 21469 | // - as above, except for Advance, where we assume the count will be 1 on the | ||||
| 21470 | // next call | ||||
| 21471 | // - basic operations (Advance with count 1 or Continue-without-key) | ||||
| 21472 | // | ||||
| 21473 | // For now, we implement the second option for now (which correspond to | ||||
| 21474 | // !hasContinueKey). | ||||
| 21475 | // | ||||
| 21476 | // Based on that, we could in both cases either preload for any assumed | ||||
| 21477 | // subsequent operations, or only for the basic operations. For now, we | ||||
| 21478 | // preload only for an assumed basic operation. Other operations would require | ||||
| 21479 | // more work on the client side for invalidation, and may not make any sense | ||||
| 21480 | // at all. | ||||
| 21481 | const uint32_t maxExtraCount = hasContinueKey ? 0 : mCursor->mMaxExtraCount; | ||||
| 21482 | |||||
| 21483 | QM_TRY_INSPECT(const auto& stmt,auto tryResult1582 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult1582.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21486, mozilla::dom::quota::Severity::Error); return tryResult1582 .propagateErr(); } const auto& stmt = tryResult1582.inspect (); | ||||
| 21484 | aConnection->BorrowCachedStatement(auto tryResult1582 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult1582.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21486, mozilla::dom::quota::Severity::Error); return tryResult1582 .propagateErr(); } const auto& stmt = tryResult1582.inspect (); | ||||
| 21485 | mCursor->mContinueQueries->GetContinueQuery(auto tryResult1582 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult1582.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21486, mozilla::dom::quota::Severity::Error); return tryResult1582 .propagateErr(); } const auto& stmt = tryResult1582.inspect (); | ||||
| 21486 | hasContinueKey, hasContinuePrimaryKey)))auto tryResult1582 = (aConnection->BorrowCachedStatement( mCursor ->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey ))); if ((__builtin_expect(!!(tryResult1582.isErr()), 0))) { mozilla ::dom::quota::HandleError("aConnection->BorrowCachedStatement( mCursor->mContinueQueries->GetContinueQuery( hasContinueKey, hasContinuePrimaryKey))" , tryResult1582.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21486, mozilla::dom::quota::Severity::Error); return tryResult1582 .propagateErr(); } const auto& stmt = tryResult1582.inspect ();; | ||||
| 21487 | |||||
| 21488 | QM_TRY(MOZ_TO_RESULT(stmt->BindUTF8StringByName({auto tryResult1583 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult1583)::ok_type>); if ((__builtin_expect (!!(tryResult1583.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21490, mozilla::dom::quota::Severity::Error); return tryResult1583 .propagateErr(); }} | ||||
| 21489 | kStmtParamNameLimit,{auto tryResult1583 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult1583)::ok_type>); if ((__builtin_expect (!!(tryResult1583.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21490, mozilla::dom::quota::Severity::Error); return tryResult1583 .propagateErr(); }} | ||||
| 21490 | IntToCString(advanceCount + mCursor->mMaxExtraCount)))){auto tryResult1583 = (ToResult(stmt->BindUTF8StringByName ( kStmtParamNameLimit, IntToCString(advanceCount + mCursor-> mMaxExtraCount)))); static_assert(std::is_empty_v<typename decltype(tryResult1583)::ok_type>); if ((__builtin_expect (!!(tryResult1583.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindUTF8StringByName( kStmtParamNameLimit, IntToCString(advanceCount + mCursor->mMaxExtraCount)))" , tryResult1583.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21490, mozilla::dom::quota::Severity::Error); return tryResult1583 .propagateErr(); }}; | ||||
| 21491 | |||||
| 21492 | QM_TRY(MOZ_TO_RESULT(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))){auto tryResult1584 = (ToResult(stmt->BindInt64ByName(kStmtParamNameId , mCursor->Id()))); static_assert(std::is_empty_v<typename decltype(tryResult1584)::ok_type>); if ((__builtin_expect (!!(tryResult1584.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(stmt->BindInt64ByName(kStmtParamNameId, mCursor->Id()))" , tryResult1584.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21492, mozilla::dom::quota::Severity::Error); return tryResult1584 .propagateErr(); }}; | ||||
| 21493 | |||||
| 21494 | // Bind current key. | ||||
| 21495 | const auto& continueKey = | ||||
| 21496 | hasContinueKey ? explicitContinueKey | ||||
| 21497 | : mCurrentPosition.GetSortKey(mCursor->IsLocaleAware()); | ||||
| 21498 | QM_TRY(MOZ_TO_RESULT({auto tryResult1585 = (ToResult(continueKey.BindToStatement(& *stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v <typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect (!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))" , tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21499, mozilla::dom::quota::Severity::Error); return tryResult1585 .propagateErr(); }} | ||||
| 21499 | continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))){auto tryResult1585 = (ToResult(continueKey.BindToStatement(& *stmt, kStmtParamNameCurrentKey))); static_assert(std::is_empty_v <typename decltype(tryResult1585)::ok_type>); if ((__builtin_expect (!!(tryResult1585.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(continueKey.BindToStatement(&*stmt, kStmtParamNameCurrentKey))" , tryResult1585.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21499, mozilla::dom::quota::Severity::Error); return tryResult1585 .propagateErr(); }}; | ||||
| 21500 | |||||
| 21501 | // Bind range bound if it is specified. | ||||
| 21502 | if (!mCursor->mLocaleAwareRangeBound->IsUnset()) { | ||||
| 21503 | QM_TRY(MOZ_TO_RESULT(mCursor->mLocaleAwareRangeBound->BindToStatement({auto tryResult1586 = (ToResult(mCursor->mLocaleAwareRangeBound ->BindToStatement( &*stmt, kStmtParamNameRangeBound))) ; static_assert(std::is_empty_v<typename decltype(tryResult1586 )::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))" , tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21504, mozilla::dom::quota::Severity::Error); return tryResult1586 .propagateErr(); }} | ||||
| 21504 | &*stmt, kStmtParamNameRangeBound))){auto tryResult1586 = (ToResult(mCursor->mLocaleAwareRangeBound ->BindToStatement( &*stmt, kStmtParamNameRangeBound))) ; static_assert(std::is_empty_v<typename decltype(tryResult1586 )::ok_type>); if ((__builtin_expect(!!(tryResult1586.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCursor->mLocaleAwareRangeBound->BindToStatement( &*stmt, kStmtParamNameRangeBound))" , tryResult1586.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21504, mozilla::dom::quota::Severity::Error); return tryResult1586 .propagateErr(); }}; | ||||
| 21505 | } | ||||
| 21506 | |||||
| 21507 | // Bind object store position if duplicates are allowed and we're not | ||||
| 21508 | // continuing to a specific key. | ||||
| 21509 | if constexpr (IsIndexCursor) { | ||||
| 21510 | if (!hasContinueKey && (mCursor->mDirection == IDBCursorDirection::Next || | ||||
| 21511 | mCursor->mDirection == IDBCursorDirection::Prev)) { | ||||
| 21512 | QM_TRY(MOZ_TO_RESULT(mCurrentPosition.mObjectStoreKey.BindToStatement({auto tryResult1587 = (ToResult(mCurrentPosition.mObjectStoreKey .BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1587 )::ok_type>); if ((__builtin_expect(!!(tryResult1587.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21513, mozilla::dom::quota::Severity::Error); return tryResult1587 .propagateErr(); }} | ||||
| 21513 | &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1587 = (ToResult(mCurrentPosition.mObjectStoreKey .BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1587 )::ok_type>); if ((__builtin_expect(!!(tryResult1587.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mCurrentPosition.mObjectStoreKey.BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1587.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21513, mozilla::dom::quota::Severity::Error); return tryResult1587 .propagateErr(); }}; | ||||
| 21514 | } else if (hasContinuePrimaryKey) { | ||||
| 21515 | QM_TRY(MOZ_TO_RESULT({auto tryResult1588 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1588 )::ok_type>); if ((__builtin_expect(!!(tryResult1588.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1588.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21517, mozilla::dom::quota::Severity::Error); return tryResult1588 .propagateErr(); }} | ||||
| 21516 | mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement({auto tryResult1588 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1588 )::ok_type>); if ((__builtin_expect(!!(tryResult1588.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1588.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21517, mozilla::dom::quota::Severity::Error); return tryResult1588 .propagateErr(); }} | ||||
| 21517 | &*stmt, kStmtParamNameObjectStorePosition))){auto tryResult1588 = (ToResult(mParams.get_ContinuePrimaryKeyParams ().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition ))); static_assert(std::is_empty_v<typename decltype(tryResult1588 )::ok_type>); if ((__builtin_expect(!!(tryResult1588.isErr ()), 0))) { mozilla::dom::quota::HandleError("ToResult(mParams.get_ContinuePrimaryKeyParams().primaryKey().BindToStatement( &*stmt, kStmtParamNameObjectStorePosition))" , tryResult1588.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21517, mozilla::dom::quota::Severity::Error); return tryResult1588 .propagateErr(); }}; | ||||
| 21518 | } | ||||
| 21519 | } | ||||
| 21520 | |||||
| 21521 | // TODO: Why do we query the records we don't need and skip them here, rather | ||||
| 21522 | // than using a OFFSET clause in the query? | ||||
| 21523 | for (uint32_t index = 0; index < advanceCount; index++) { | ||||
| 21524 | QM_TRY_INSPECT(const bool& hasResult,auto tryResult1589 = (::mozilla::ToResultInvokeMember( (& *stmt), &::mozilla::detail::DerefedType<decltype(& *stmt)>::ExecuteStep )); if ((__builtin_expect(!!(tryResult1589 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep )" , tryResult1589.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21525, mozilla::dom::quota::Severity::Error); return tryResult1589 .propagateErr(); } const bool& hasResult = tryResult1589. inspect(); | ||||
| 21525 | MOZ_TO_RESULT_INVOKE_MEMBER(&*stmt, ExecuteStep))auto tryResult1589 = (::mozilla::ToResultInvokeMember( (& *stmt), &::mozilla::detail::DerefedType<decltype(& *stmt)>::ExecuteStep )); if ((__builtin_expect(!!(tryResult1589 .isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (&*stmt), &::mozilla::detail::DerefedType<decltype(&*stmt)>::ExecuteStep )" , tryResult1589.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21525, mozilla::dom::quota::Severity::Error); return tryResult1589 .propagateErr(); } const bool& hasResult = tryResult1589. inspect();; | ||||
| 21526 | |||||
| 21527 | if (!hasResult) { | ||||
| 21528 | mResponse = void_t(); | ||||
| 21529 | return NS_OK; | ||||
| 21530 | } | ||||
| 21531 | } | ||||
| 21532 | |||||
| 21533 | Key previousKey; | ||||
| 21534 | auto* const optPreviousKey = | ||||
| 21535 | IsUnique(mCursor->mDirection) ? &previousKey : nullptr; | ||||
| 21536 | |||||
| 21537 | auto helper = CursorOpBaseHelperBase<CursorType>{*this}; | ||||
| 21538 | QM_TRY_INSPECT(const auto& responseSize, helper.PopulateResponseFromStatement(auto tryResult1590 = (helper.PopulateResponseFromStatement( & *stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1590 .isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)" , tryResult1590.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21539, mozilla::dom::quota::Severity::Error); return tryResult1590 .propagateErr(); } const auto& responseSize = tryResult1590 .inspect(); | ||||
| 21539 | &*stmt, true, optPreviousKey))auto tryResult1590 = (helper.PopulateResponseFromStatement( & *stmt, true, optPreviousKey)); if ((__builtin_expect(!!(tryResult1590 .isErr()), 0))) { mozilla::dom::quota::HandleError("helper.PopulateResponseFromStatement( &*stmt, true, optPreviousKey)" , tryResult1590.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21539, mozilla::dom::quota::Severity::Error); return tryResult1590 .propagateErr(); } const auto& responseSize = tryResult1590 .inspect();; | ||||
| 21540 | |||||
| 21541 | helper.PopulateExtraResponses(&*stmt, maxExtraCount, responseSize, | ||||
| 21542 | "ContinueOp"_ns, optPreviousKey); | ||||
| 21543 | |||||
| 21544 | return NS_OK; | ||||
| 21545 | } | ||||
| 21546 | |||||
| 21547 | Utils::Utils() | ||||
| 21548 | #ifdef DEBUG1 | ||||
| 21549 | : mActorDestroyed(false) | ||||
| 21550 | #endif | ||||
| 21551 | { | ||||
| 21552 | AssertIsOnBackgroundThread(); | ||||
| 21553 | } | ||||
| 21554 | |||||
| 21555 | 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", 21555 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "mActorDestroyed" ")" ); do { MOZ_CrashSequence(__null, 21555); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); } | ||||
| 21556 | |||||
| 21557 | void Utils::ActorDestroy(ActorDestroyReason aWhy) { | ||||
| 21558 | AssertIsOnBackgroundThread(); | ||||
| 21559 | 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", 21559 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { MOZ_CrashSequence(__null, 21559); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21560 | |||||
| 21561 | #ifdef DEBUG1 | ||||
| 21562 | mActorDestroyed = true; | ||||
| 21563 | #endif | ||||
| 21564 | } | ||||
| 21565 | |||||
| 21566 | mozilla::ipc::IPCResult Utils::RecvDeleteMe() { | ||||
| 21567 | AssertIsOnBackgroundThread(); | ||||
| 21568 | 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", 21568 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { MOZ_CrashSequence(__null, 21568); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21569 | |||||
| 21570 | QM_WARNONLY_TRY(OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))){auto tryResult1591 = (OkIf(PBackgroundIndexedDBUtilsParent:: Send__delete__(this))); static_assert(std::is_empty_v<typename decltype(tryResult1591)::ok_type>); if ((__builtin_expect (!!(tryResult1591.isErr()), 0))) { mozilla::dom::quota::HandleError ("OkIf(PBackgroundIndexedDBUtilsParent::Send__delete__(this))" , tryResult1591.unwrapErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21570, mozilla::dom::quota::Severity::Warning); }}; | ||||
| 21571 | |||||
| 21572 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 21573 | } | ||||
| 21574 | |||||
| 21575 | mozilla::ipc::IPCResult Utils::RecvGetFileReferences( | ||||
| 21576 | const PersistenceType& aPersistenceType, const nsACString& aOrigin, | ||||
| 21577 | const nsAString& aDatabaseName, const int64_t& aFileId, int32_t* aRefCnt, | ||||
| 21578 | int32_t* aDBRefCnt, bool* aResult) { | ||||
| 21579 | AssertIsOnBackgroundThread(); | ||||
| 21580 | 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" , 21580); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aRefCnt" ")" ); do { MOZ_CrashSequence(__null, 21580); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21581 | 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" , 21581); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aDBRefCnt" ")"); do { MOZ_CrashSequence(__null, 21581); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21582 | 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" , 21582); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aResult" ")" ); do { MOZ_CrashSequence(__null, 21582); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21583 | 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", 21583 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!mActorDestroyed" ")"); do { MOZ_CrashSequence(__null, 21583); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21584 | |||||
| 21585 | if (NS_WARN_IF(!IndexedDatabaseManager::Get())NS_warn_if_impl(!IndexedDatabaseManager::Get(), "!IndexedDatabaseManager::Get()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21585 )) { | ||||
| 21586 | return IPC_FAIL(this, "No IndexedDatabaseManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No IndexedDatabaseManager active!" )); | ||||
| 21587 | } | ||||
| 21588 | |||||
| 21589 | if (NS_WARN_IF(!QuotaManager::Get())NS_warn_if_impl(!QuotaManager::Get(), "!QuotaManager::Get()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21589)) { | ||||
| 21590 | return IPC_FAIL(this, "No QuotaManager active!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No QuotaManager active!" )); | ||||
| 21591 | } | ||||
| 21592 | |||||
| 21593 | 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", 21593 )) { | ||||
| 21594 | return IPC_FAIL(this, "IndexedDB is not in testing mode!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("IndexedDB is not in testing mode!" )); | ||||
| 21595 | } | ||||
| 21596 | |||||
| 21597 | if (NS_WARN_IF(!IsValidPersistenceType(aPersistenceType))NS_warn_if_impl(!IsValidPersistenceType(aPersistenceType), "!IsValidPersistenceType(aPersistenceType)" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21597 )) { | ||||
| 21598 | return IPC_FAIL(this, "PersistenceType is not valid!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("PersistenceType is not valid!" )); | ||||
| 21599 | } | ||||
| 21600 | |||||
| 21601 | if (NS_WARN_IF(aOrigin.IsEmpty())NS_warn_if_impl(aOrigin.IsEmpty(), "aOrigin.IsEmpty()", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21601)) { | ||||
| 21602 | return IPC_FAIL(this, "Origin is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("Origin is empty!" )); | ||||
| 21603 | } | ||||
| 21604 | |||||
| 21605 | if (NS_WARN_IF(aDatabaseName.IsEmpty())NS_warn_if_impl(aDatabaseName.IsEmpty(), "aDatabaseName.IsEmpty()" , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21605 )) { | ||||
| 21606 | return IPC_FAIL(this, "DatabaseName is empty!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DatabaseName is empty!" )); | ||||
| 21607 | } | ||||
| 21608 | |||||
| 21609 | if (NS_WARN_IF(aFileId == 0)NS_warn_if_impl(aFileId == 0, "aFileId == 0", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21609)) { | ||||
| 21610 | return IPC_FAIL(this, "No FileId!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("No FileId!" )); | ||||
| 21611 | } | ||||
| 21612 | |||||
| 21613 | nsresult rv = | ||||
| 21614 | DispatchAndReturnFileReferences(aPersistenceType, aOrigin, aDatabaseName, | ||||
| 21615 | aFileId, aRefCnt, aDBRefCnt, aResult); | ||||
| 21616 | 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" , 21616)) { | ||||
| 21617 | return IPC_FAIL(this, "DispatchAndReturnFileReferences failed!")mozilla::ipc::IPCResult::Fail(WrapNotNull(this), __func__, ("DispatchAndReturnFileReferences failed!" )); | ||||
| 21618 | } | ||||
| 21619 | |||||
| 21620 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 21621 | } | ||||
| 21622 | |||||
| 21623 | mozilla::ipc::IPCResult Utils::RecvDoMaintenance( | ||||
| 21624 | DoMaintenanceResolver&& aResolver) { | ||||
| 21625 | AssertIsOnBackgroundThread(); | ||||
| 21626 | |||||
| 21627 | QM_TRY(MOZ_TO_RESULT(!QuotaManager::IsShuttingDown()),{auto tryResult1592 = (ToResult(!QuotaManager::IsShuttingDown ())); static_assert(std::is_empty_v<typename decltype(tryResult1592 )::ok_type>); if ((__builtin_expect(!!(tryResult1592.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1592 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21628, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, ResolveNSResultAndReturn(aResolver)); }} | ||||
| 21628 | ResolveNSResultAndReturn(aResolver)){auto tryResult1592 = (ToResult(!QuotaManager::IsShuttingDown ())); static_assert(std::is_empty_v<typename decltype(tryResult1592 )::ok_type>); if ((__builtin_expect(!!(tryResult1592.isErr ()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1592 .unwrapErr(); mozilla::dom::quota::HandleError("ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21628, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "ToResult(!QuotaManager::IsShuttingDown())" , tryTempError, ResolveNSResultAndReturn(aResolver)); }}; | ||||
| 21629 | |||||
| 21630 | QM_TRY(QuotaManager::EnsureCreated(), ResolveNSResultAndReturn(aResolver)){auto tryResult1593 = (QuotaManager::EnsureCreated()); static_assert (std::is_empty_v<typename decltype(tryResult1593)::ok_type >); if ((__builtin_expect(!!(tryResult1593.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1593.unwrapErr (); mozilla::dom::quota::HandleError("QuotaManager::EnsureCreated()" , tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21630, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "QuotaManager::EnsureCreated()" , tryTempError, ResolveNSResultAndReturn(aResolver)); }}; | ||||
| 21631 | |||||
| 21632 | QuotaClient* quotaClient = QuotaClient::GetInstance(); | ||||
| 21633 | QM_TRY(MOZ_TO_RESULT(quotaClient), QM_IPC_FAIL(this)){auto tryResult1594 = (ToResult(quotaClient)); static_assert( std::is_empty_v<typename decltype(tryResult1594)::ok_type> ); if ((__builtin_expect(!!(tryResult1594.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult1594.unwrapErr(); mozilla::dom::quota::HandleError("ToResult(quotaClient)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21633 , 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))); }}; | ||||
| 21634 | |||||
| 21635 | quotaClient->DoMaintenance()->Then( | ||||
| 21636 | GetCurrentSerialEventTarget(), __func__, | ||||
| 21637 | [self = RefPtr(this), resolver = std::move(aResolver)]( | ||||
| 21638 | const BoolPromise::ResolveOrRejectValue& aValue) { | ||||
| 21639 | if (!self->CanSend()) { | ||||
| 21640 | return; | ||||
| 21641 | } | ||||
| 21642 | |||||
| 21643 | if (aValue.IsResolve()) { | ||||
| 21644 | resolver(NS_OK); | ||||
| 21645 | } else { | ||||
| 21646 | resolver(aValue.RejectValue()); | ||||
| 21647 | } | ||||
| 21648 | }); | ||||
| 21649 | |||||
| 21650 | return IPC_OK()mozilla::ipc::IPCResult::Ok(); | ||||
| 21651 | } | ||||
| 21652 | |||||
| 21653 | #ifdef DEBUG1 | ||||
| 21654 | |||||
| 21655 | 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" , 21655); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 21655 ); __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", 21655 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 21655); __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", 21655 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 21655 ); __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", 21655 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"DEBUGThreadSlower\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 21655); __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" , 21655); 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; } | ||||
| 21656 | |||||
| 21657 | NS_IMETHODIMPnsresult | ||||
| 21658 | 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", 21658 ); AnnotateMozCrashReason("MOZ_CRASH(" "Should never be called!" ")"); do { MOZ_CrashSequence(__null, 21658); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } | ||||
| 21659 | |||||
| 21660 | NS_IMETHODIMPnsresult | ||||
| 21661 | DEBUGThreadSlower::OnProcessNextEvent(nsIThreadInternal* /* aThread */, | ||||
| 21662 | bool /* aMayWait */) { | ||||
| 21663 | return NS_OK; | ||||
| 21664 | } | ||||
| 21665 | |||||
| 21666 | NS_IMETHODIMPnsresult | ||||
| 21667 | DEBUGThreadSlower::AfterProcessNextEvent(nsIThreadInternal* /* aThread */, | ||||
| 21668 | bool /* aEventWasProcessed */) { | ||||
| 21669 | 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", 21669 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "kDEBUGThreadSleepMS" ")"); do { MOZ_CrashSequence(__null, 21669); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21670 | |||||
| 21671 | 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", 21672 ); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" ")"); do { MOZ_CrashSequence(__null, 21672); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false) | ||||
| 21672 | 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", 21672 ); AnnotateMozCrashReason("MOZ_CRASH(" "PR_Sleep(PR_MillisecondsToInterval(kDEBUGThreadSleepMS)) == PR_SUCCESS" ")"); do { MOZ_CrashSequence(__null, 21672); __attribute__(( nomerge)) ::abort(); } while (false); } while (false); } } while (false); | ||||
| 21673 | return NS_OK; | ||||
| 21674 | } | ||||
| 21675 | |||||
| 21676 | #endif // DEBUG | ||||
| 21677 | |||||
| 21678 | nsresult FileHelper::Init() { | ||||
| 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 | auto fileDirectory = mFileManager->GetCheckedDirectory(); | ||||
| 21682 | if (NS_WARN_IF(!fileDirectory)NS_warn_if_impl(!fileDirectory, "!fileDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21682)) { | ||||
| 21683 | return NS_ERROR_FAILURE; | ||||
| 21684 | } | ||||
| 21685 | |||||
| 21686 | auto journalDirectory = mFileManager->EnsureJournalDirectory(); | ||||
| 21687 | if (NS_WARN_IF(!journalDirectory)NS_warn_if_impl(!journalDirectory, "!journalDirectory", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21687)) { | ||||
| 21688 | return NS_ERROR_FAILURE; | ||||
| 21689 | } | ||||
| 21690 | |||||
| 21691 | DebugOnly<bool> exists; | ||||
| 21692 | 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", 21692 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->Exists(&exists))), 1)))" ")"); do { MOZ_CrashSequence(__null, 21692); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21693 | 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" , 21693); AnnotateMozCrashReason("MOZ_ASSERT" "(" "exists" ")" ); do { MOZ_CrashSequence(__null, 21693); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21694 | |||||
| 21695 | DebugOnly<bool> isDirectory; | ||||
| 21696 | 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", 21696 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "((bool)(__builtin_expect(!!(!NS_FAILED_impl(journalDirectory->IsDirectory(&isDirectory))), 1)))" ")"); do { MOZ_CrashSequence(__null, 21696); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21697 | 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" , 21697); AnnotateMozCrashReason("MOZ_ASSERT" "(" "isDirectory" ")"); do { MOZ_CrashSequence(__null, 21697); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21698 | |||||
| 21699 | mFileDirectory.init(WrapNotNullUnchecked(std::move(fileDirectory))); | ||||
| 21700 | mJournalDirectory.init(WrapNotNullUnchecked(std::move(journalDirectory))); | ||||
| 21701 | |||||
| 21702 | return NS_OK; | ||||
| 21703 | } | ||||
| 21704 | |||||
| 21705 | nsCOMPtr<nsIFile> FileHelper::GetFile(const DatabaseFileInfo& aFileInfo) { | ||||
| 21706 | 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", 21706 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21706); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21707 | |||||
| 21708 | return mFileManager->GetFileForId(mFileDirectory->get(), aFileInfo.Id()); | ||||
| 21709 | } | ||||
| 21710 | |||||
| 21711 | nsCOMPtr<nsIFile> FileHelper::GetJournalFile( | ||||
| 21712 | const DatabaseFileInfo& aFileInfo) { | ||||
| 21713 | 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", 21713 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21713); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21714 | |||||
| 21715 | return mFileManager->GetFileForId(mJournalDirectory->get(), aFileInfo.Id()); | ||||
| 21716 | } | ||||
| 21717 | |||||
| 21718 | nsresult FileHelper::CreateFileFromStream(nsIFile& aFile, nsIFile& aJournalFile, | ||||
| 21719 | nsIInputStream& aInputStream, | ||||
| 21720 | bool aCompress, | ||||
| 21721 | const Maybe<CipherKey>& aMaybeKey) { | ||||
| 21722 | 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", 21722 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21722); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21723 | |||||
| 21724 | QM_TRY_INSPECT(const auto& exists,auto tryResult1595 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::Exists )); if ((__builtin_expect(!!(tryResult1595.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists )" , tryResult1595.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21725, mozilla::dom::quota::Severity::Error); return tryResult1595 .propagateErr(); } const auto& exists = tryResult1595.inspect (); | ||||
| 21725 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, Exists))auto tryResult1595 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::Exists )); if ((__builtin_expect(!!(tryResult1595.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::Exists )" , tryResult1595.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21725, mozilla::dom::quota::Severity::Error); return tryResult1595 .propagateErr(); } const auto& exists = tryResult1595.inspect ();; | ||||
| 21726 | |||||
| 21727 | // DOM blobs that are being stored in IDB are cached by calling | ||||
| 21728 | // IDBDatabase::GetOrCreateFileActorForBlob. So if the same DOM blob is stored | ||||
| 21729 | // again under a different key or in a different object store, we just add | ||||
| 21730 | // a new reference instead of creating a new copy (all such stored blobs share | ||||
| 21731 | // the same id). | ||||
| 21732 | // However, it can happen that CreateFileFromStream failed due to quota | ||||
| 21733 | // exceeded error and for some reason the orphaned file couldn't be deleted | ||||
| 21734 | // immediately. Now, if the operation is being repeated, the DOM blob is | ||||
| 21735 | // already cached, so it has the same file id which clashes with the orphaned | ||||
| 21736 | // file. We could do some tricks to restore previous copy loop, but it's safer | ||||
| 21737 | // to just delete the orphaned file and start from scratch. | ||||
| 21738 | // This corner case is partially simulated in test_file_copy_failure.js | ||||
| 21739 | if (exists) { | ||||
| 21740 | QM_TRY_INSPECT(const auto& isFile,auto tryResult1596 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::IsFile )); if ((__builtin_expect(!!(tryResult1596.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile )" , tryResult1596.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21741, mozilla::dom::quota::Severity::Error); return tryResult1596 .propagateErr(); } const auto& isFile = tryResult1596.inspect (); | ||||
| 21741 | MOZ_TO_RESULT_INVOKE_MEMBER(aFile, IsFile))auto tryResult1596 = (::mozilla::ToResultInvokeMember( (aFile ), &::mozilla::detail::DerefedType<decltype(aFile)> ::IsFile )); if ((__builtin_expect(!!(tryResult1596.isErr()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aFile), &::mozilla::detail::DerefedType<decltype(aFile)>::IsFile )" , tryResult1596.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21741, mozilla::dom::quota::Severity::Error); return tryResult1596 .propagateErr(); } const auto& isFile = tryResult1596.inspect ();; | ||||
| 21742 | |||||
| 21743 | QM_TRY(OkIf(isFile), NS_ERROR_FAILURE){auto tryResult1597 = (OkIf(isFile)); static_assert(std::is_empty_v <typename decltype(tryResult1597)::ok_type>); if ((__builtin_expect (!!(tryResult1597.isErr()), 0))) { [[maybe_unused]] auto tryTempError = tryResult1597.unwrapErr(); mozilla::dom::quota::HandleError ("OkIf(isFile)", tryTempError, "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21743, mozilla::dom::quota::Severity::Error); [[maybe_unused ]] constexpr const auto& func = __func__; return mozilla:: dom::quota::HandleCustomRetVal(func, "OkIf(isFile)", tryTempError , NS_ERROR_FAILURE); }}; | ||||
| 21744 | |||||
| 21745 | QM_TRY_INSPECT(const auto& journalExists,auto tryResult1598 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::Exists )); if ((__builtin_expect(!!(tryResult1598.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists )" , tryResult1598.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21746, mozilla::dom::quota::Severity::Error); return tryResult1598 .propagateErr(); } const auto& journalExists = tryResult1598 .inspect(); | ||||
| 21746 | MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, Exists))auto tryResult1598 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::Exists )); if ((__builtin_expect(!!(tryResult1598.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::Exists )" , tryResult1598.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21746, mozilla::dom::quota::Severity::Error); return tryResult1598 .propagateErr(); } const auto& journalExists = tryResult1598 .inspect();; | ||||
| 21747 | |||||
| 21748 | QM_TRY(OkIf(journalExists), NS_ERROR_FAILURE){auto tryResult1599 = (OkIf(journalExists)); static_assert(std ::is_empty_v<typename decltype(tryResult1599)::ok_type> ); if ((__builtin_expect(!!(tryResult1599.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult1599.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalExists)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21748 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(journalExists)", tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 21749 | |||||
| 21750 | QM_TRY_INSPECT(const auto& journalIsFile,auto tryResult1600 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::IsFile )); if ((__builtin_expect(!!(tryResult1600.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile )" , tryResult1600.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21751, mozilla::dom::quota::Severity::Error); return tryResult1600 .propagateErr(); } const auto& journalIsFile = tryResult1600 .inspect(); | ||||
| 21751 | MOZ_TO_RESULT_INVOKE_MEMBER(aJournalFile, IsFile))auto tryResult1600 = (::mozilla::ToResultInvokeMember( (aJournalFile ), &::mozilla::detail::DerefedType<decltype(aJournalFile )>::IsFile )); if ((__builtin_expect(!!(tryResult1600.isErr ()), 0))) { mozilla::dom::quota::HandleError("::mozilla::ToResultInvokeMember( (aJournalFile), &::mozilla::detail::DerefedType<decltype(aJournalFile)>::IsFile )" , tryResult1600.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21751, mozilla::dom::quota::Severity::Error); return tryResult1600 .propagateErr(); } const auto& journalIsFile = tryResult1600 .inspect();; | ||||
| 21752 | |||||
| 21753 | QM_TRY(OkIf(journalIsFile), NS_ERROR_FAILURE){auto tryResult1601 = (OkIf(journalIsFile)); static_assert(std ::is_empty_v<typename decltype(tryResult1601)::ok_type> ); if ((__builtin_expect(!!(tryResult1601.isErr()), 0))) { [[ maybe_unused]] auto tryTempError = tryResult1601.unwrapErr(); mozilla::dom::quota::HandleError("OkIf(journalIsFile)", tryTempError , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21753 , mozilla::dom::quota::Severity::Error); [[maybe_unused]] constexpr const auto& func = __func__; return mozilla::dom::quota:: HandleCustomRetVal(func, "OkIf(journalIsFile)", tryTempError, NS_ERROR_FAILURE); }}; | ||||
| 21754 | |||||
| 21755 | IDB_WARNING("Deleting orphaned file!")do { nsPrintfCString s("Deleting orphaned file!"); mozilla::dom ::indexedDB::ReportInternalError("/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21755, s.get()); NS_DebugBreak(NS_DEBUG_WARNING, s.get(), nullptr , "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp", 21755 ); } while (0); | ||||
| 21756 | |||||
| 21757 | QM_TRY(MOZ_TO_RESULT(mFileManager->SyncDeleteFile(aFile, aJournalFile))){auto tryResult1602 = (ToResult(mFileManager->SyncDeleteFile (aFile, aJournalFile))); static_assert(std::is_empty_v<typename decltype(tryResult1602)::ok_type>); if ((__builtin_expect (!!(tryResult1602.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(mFileManager->SyncDeleteFile(aFile, aJournalFile))" , tryResult1602.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21757, mozilla::dom::quota::Severity::Error); return tryResult1602 .propagateErr(); }}; | ||||
| 21758 | } | ||||
| 21759 | |||||
| 21760 | // Create a journal file first. | ||||
| 21761 | QM_TRY(MOZ_TO_RESULT(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))){auto tryResult1603 = (ToResult(aJournalFile.Create(nsIFile:: NORMAL_FILE_TYPE, 0644))); static_assert(std::is_empty_v<typename decltype(tryResult1603)::ok_type>); if ((__builtin_expect (!!(tryResult1603.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(aJournalFile.Create(nsIFile::NORMAL_FILE_TYPE, 0644))" , tryResult1603.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21761, mozilla::dom::quota::Severity::Error); return tryResult1603 .propagateErr(); }}; | ||||
| 21762 | |||||
| 21763 | // Now try to copy the stream. | ||||
| 21764 | QM_TRY_UNWRAP(nsCOMPtr<nsIOutputStream> fileOutputStream,auto tryResult1604 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult1604.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult1604.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21767, mozilla::dom::quota::Severity::Error); return tryResult1604 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult1604.unwrap(); | ||||
| 21765 | CreateFileOutputStream(mFileManager->Type(),auto tryResult1604 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult1604.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult1604.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21767, mozilla::dom::quota::Severity::Error); return tryResult1604 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult1604.unwrap(); | ||||
| 21766 | mFileManager->OriginMetadata(),auto tryResult1604 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult1604.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult1604.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21767, mozilla::dom::quota::Severity::Error); return tryResult1604 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult1604.unwrap(); | ||||
| 21767 | Client::IDB, &aFile))auto tryResult1604 = (CreateFileOutputStream(mFileManager-> Type(), mFileManager->OriginMetadata(), Client::IDB, & aFile)); if ((__builtin_expect(!!(tryResult1604.isErr()), 0)) ) { mozilla::dom::quota::HandleError("CreateFileOutputStream(mFileManager->Type(), mFileManager->OriginMetadata(), Client::IDB, &aFile)" , tryResult1604.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21767, mozilla::dom::quota::Severity::Error); return tryResult1604 .propagateErr(); } nsCOMPtr<nsIOutputStream> fileOutputStream = tryResult1604.unwrap();; | ||||
| 21768 | |||||
| 21769 | AutoTArray<char, kFileCopyBufferSize> buffer; | ||||
| 21770 | const auto actualOutputStream = | ||||
| 21771 | [aCompress, &aMaybeKey, &buffer, | ||||
| 21772 | baseOutputStream = | ||||
| 21773 | std::move(fileOutputStream)]() mutable -> nsCOMPtr<nsIOutputStream> { | ||||
| 21774 | if (aMaybeKey) { | ||||
| 21775 | baseOutputStream = | ||||
| 21776 | MakeRefPtr<EncryptingOutputStream<IndexedDBCipherStrategy>>( | ||||
| 21777 | std::move(baseOutputStream), kEncryptedStreamBlockSize, | ||||
| 21778 | *aMaybeKey); | ||||
| 21779 | } | ||||
| 21780 | |||||
| 21781 | if (aCompress) { | ||||
| 21782 | auto snappyOutputStream = | ||||
| 21783 | MakeRefPtr<SnappyCompressOutputStream>(baseOutputStream); | ||||
| 21784 | |||||
| 21785 | buffer.SetLength(snappyOutputStream->BlockSize()); | ||||
| 21786 | |||||
| 21787 | return snappyOutputStream; | ||||
| 21788 | } | ||||
| 21789 | |||||
| 21790 | buffer.SetLength(kFileCopyBufferSize); | ||||
| 21791 | return std::move(baseOutputStream); | ||||
| 21792 | }(); | ||||
| 21793 | |||||
| 21794 | QM_TRY(MOZ_TO_RESULT(SyncCopy(aInputStream, *actualOutputStream,{auto tryResult1605 = (ToResult(SyncCopy(aInputStream, *actualOutputStream , buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v <typename decltype(tryResult1605)::ok_type>); if ((__builtin_expect (!!(tryResult1605.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))" , tryResult1605.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21795, mozilla::dom::quota::Severity::Error); return tryResult1605 .propagateErr(); }} | ||||
| 21795 | buffer.Elements(), buffer.Length()))){auto tryResult1605 = (ToResult(SyncCopy(aInputStream, *actualOutputStream , buffer.Elements(), buffer.Length()))); static_assert(std::is_empty_v <typename decltype(tryResult1605)::ok_type>); if ((__builtin_expect (!!(tryResult1605.isErr()), 0))) { mozilla::dom::quota::HandleError ("ToResult(SyncCopy(aInputStream, *actualOutputStream, buffer.Elements(), buffer.Length()))" , tryResult1605.inspectErr(), "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21795, mozilla::dom::quota::Severity::Error); return tryResult1605 .propagateErr(); }}; | ||||
| 21796 | |||||
| 21797 | return NS_OK; | ||||
| 21798 | } | ||||
| 21799 | |||||
| 21800 | class FileHelper::ReadCallback final : public nsIInputStreamCallback { | ||||
| 21801 | public: | ||||
| 21802 | 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: | ||||
| 21803 | |||||
| 21804 | ReadCallback() | ||||
| 21805 | : mMutex("ReadCallback::mMutex"), | ||||
| 21806 | mCondVar(mMutex, "ReadCallback::mCondVar"), | ||||
| 21807 | mInputAvailable(false) {} | ||||
| 21808 | |||||
| 21809 | NS_IMETHODvirtual nsresult | ||||
| 21810 | OnInputStreamReady(nsIAsyncInputStream* aStream) override { | ||||
| 21811 | mozilla::MutexAutoLock autolock(mMutex); | ||||
| 21812 | |||||
| 21813 | mInputAvailable = true; | ||||
| 21814 | mCondVar.Notify(); | ||||
| 21815 | |||||
| 21816 | return NS_OK; | ||||
| 21817 | } | ||||
| 21818 | |||||
| 21819 | nsresult AsyncWait(nsIAsyncInputStream* aStream, uint32_t aBufferSize, | ||||
| 21820 | nsIEventTarget* aTarget) { | ||||
| 21821 | 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" , 21821); AnnotateMozCrashReason("MOZ_ASSERT" "(" "aStream" ")" ); do { MOZ_CrashSequence(__null, 21821); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21822 | mozilla::MutexAutoLock autolock(mMutex); | ||||
| 21823 | |||||
| 21824 | nsresult rv = aStream->AsyncWait(this, 0, aBufferSize, aTarget); | ||||
| 21825 | 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" , 21825)) { | ||||
| 21826 | return rv; | ||||
| 21827 | } | ||||
| 21828 | |||||
| 21829 | mInputAvailable = false; | ||||
| 21830 | while (!mInputAvailable) { | ||||
| 21831 | mCondVar.Wait(); | ||||
| 21832 | } | ||||
| 21833 | |||||
| 21834 | return NS_OK; | ||||
| 21835 | } | ||||
| 21836 | |||||
| 21837 | private: | ||||
| 21838 | ~ReadCallback() = default; | ||||
| 21839 | |||||
| 21840 | mozilla::Mutex mMutex MOZ_UNANNOTATED; | ||||
| 21841 | mozilla::CondVar mCondVar; | ||||
| 21842 | bool mInputAvailable; | ||||
| 21843 | }; | ||||
| 21844 | |||||
| 21845 | 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" , 21845); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) >= 0" ") (" "illegal refcnt" ")"); do { MOZ_CrashSequence(__null, 21845 ); __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" , 21845); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 21845); __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; }; | ||||
| 21846 | 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" , 21846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "int32_t(mRefCnt) > 0" ") (" "dup release" ")"); do { MOZ_CrashSequence(__null, 21846 ); __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" , 21846); AnnotateMozCrashReason("MOZ_ASSERT" "(" "\"FileHelper::ReadCallback\" != nullptr" ") (" "Must specify a name" ")"); do { MOZ_CrashSequence(__null , 21846); __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; }; | ||||
| 21847 | |||||
| 21848 | 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" , 21848); MOZ_PretendNoReturn(); } } while (0); nsISupports* foundInterface ; | ||||
| 21849 | NS_INTERFACE_MAP_ENTRY(nsIInputStreamCallback)if (aIID.Equals(mozilla::detail::kImplementedIID<std::remove_reference_t <decltype(*this)>, nsIInputStreamCallback>)) foundInterface = static_cast<nsIInputStreamCallback*>(this); else | ||||
| 21850 | 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 | ||||
| 21851 | 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" , 21851); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!aIID.Equals((nsISupports::kIID))" ")"); do { MOZ_CrashSequence(__null, 21851); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); status = NS_NOINTERFACE; } else { (foundInterface)->AddRef(); status = NS_OK; } *aInstancePtr = foundInterface; return status; } | ||||
| 21852 | |||||
| 21853 | nsresult FileHelper::SyncRead(nsIInputStream& aInputStream, char* const aBuffer, | ||||
| 21854 | const uint32_t aBufferSize, | ||||
| 21855 | uint32_t* const aRead) { | ||||
| 21856 | 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", 21856 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21856); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21857 | |||||
| 21858 | // Let's try to read, directly. | ||||
| 21859 | nsresult rv = aInputStream.Read(aBuffer, aBufferSize, aRead); | ||||
| 21860 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) || rv != NS_BASE_STREAM_WOULD_BLOCK) { | ||||
| 21861 | return rv; | ||||
| 21862 | } | ||||
| 21863 | |||||
| 21864 | // We need to proceed async. | ||||
| 21865 | nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(&aInputStream); | ||||
| 21866 | if (!asyncStream) { | ||||
| 21867 | return rv; | ||||
| 21868 | } | ||||
| 21869 | |||||
| 21870 | if (!mReadCallback) { | ||||
| 21871 | mReadCallback.init(MakeNotNull<RefPtr<ReadCallback>>()); | ||||
| 21872 | } | ||||
| 21873 | |||||
| 21874 | // We just need any thread with an event loop for receiving the | ||||
| 21875 | // OnInputStreamReady callback. Let's use the I/O thread. | ||||
| 21876 | nsCOMPtr<nsIEventTarget> target = | ||||
| 21877 | do_GetService(NS_STREAMTRANSPORTSERVICE_CONTRACTID"@mozilla.org/network/stream-transport-service;1"); | ||||
| 21878 | 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" , 21878); AnnotateMozCrashReason("MOZ_ASSERT" "(" "target" ")" ); do { MOZ_CrashSequence(__null, 21878); __attribute__((nomerge )) ::abort(); } while (false); } } while (false); | ||||
| 21879 | |||||
| 21880 | rv = (*mReadCallback)->AsyncWait(asyncStream, aBufferSize, target); | ||||
| 21881 | 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" , 21881)) { | ||||
| 21882 | return rv; | ||||
| 21883 | } | ||||
| 21884 | |||||
| 21885 | return SyncRead(aInputStream, aBuffer, aBufferSize, aRead); | ||||
| 21886 | } | ||||
| 21887 | |||||
| 21888 | nsresult FileHelper::SyncCopy(nsIInputStream& aInputStream, | ||||
| 21889 | nsIOutputStream& aOutputStream, | ||||
| 21890 | char* const aBuffer, const uint32_t aBufferSize) { | ||||
| 21891 | 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", 21891 ); AnnotateMozCrashReason("MOZ_ASSERT" "(" "!IsOnBackgroundThread()" ")"); do { MOZ_CrashSequence(__null, 21891); __attribute__(( nomerge)) ::abort(); } while (false); } } while (false); | ||||
| 21892 | |||||
| 21893 | AUTO_PROFILER_LABEL("FileHelper::SyncCopy", DOM)mozilla::AutoProfilerLabel raiiObject21893( "FileHelper::SyncCopy" , nullptr, JS::ProfilingCategoryPair::DOM); | ||||
| 21894 | |||||
| 21895 | nsresult rv; | ||||
| 21896 | |||||
| 21897 | do { | ||||
| 21898 | uint32_t numRead; | ||||
| 21899 | rv = SyncRead(aInputStream, aBuffer, aBufferSize, &numRead); | ||||
| 21900 | 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" , 21900)) { | ||||
| 21901 | break; | ||||
| 21902 | } | ||||
| 21903 | |||||
| 21904 | if (!numRead) { | ||||
| 21905 | break; | ||||
| 21906 | } | ||||
| 21907 | |||||
| 21908 | uint32_t numWrite; | ||||
| 21909 | rv = aOutputStream.Write(aBuffer, numRead, &numWrite); | ||||
| 21910 | if (rv == NS_ERROR_FILE_NO_DEVICE_SPACE) { | ||||
| 21911 | rv = NS_ERROR_DOM_INDEXEDDB_QUOTA_ERR; | ||||
| 21912 | } | ||||
| 21913 | 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" , 21913)) { | ||||
| 21914 | break; | ||||
| 21915 | } | ||||
| 21916 | |||||
| 21917 | if (NS_WARN_IF(numWrite != numRead)NS_warn_if_impl(numWrite != numRead, "numWrite != numRead", "/root/firefox-clang/dom/indexedDB/ActorsParent.cpp" , 21917)) { | ||||
| 21918 | rv = NS_ERROR_FAILURE; | ||||
| 21919 | break; | ||||
| 21920 | } | ||||
| 21921 | } while (true); | ||||
| 21922 | |||||
| 21923 | if (NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1)))) { | ||||
| 21924 | rv = aOutputStream.Flush(); | ||||
| 21925 | 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" , 21925)) { | ||||
| 21926 | return rv; | ||||
| 21927 | } | ||||
| 21928 | } | ||||
| 21929 | |||||
| 21930 | nsresult rv2 = aOutputStream.Close(); | ||||
| 21931 | 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" , 21931)) { | ||||
| 21932 | return NS_SUCCEEDED(rv)((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))) ? rv2 : rv; | ||||
| 21933 | } | ||||
| 21934 | |||||
| 21935 | return rv; | ||||
| 21936 | } | ||||
| 21937 | |||||
| 21938 | } // namespace dom::indexedDB | ||||
| 21939 | } // namespace mozilla | ||||
| 21940 | |||||
| 21941 | #undef IDB_MOBILE | ||||
| 21942 | #undef IDB_DEBUG_LOG |